Hi how do i add values in to kube-api ? when i try it pulls an error kubectl . . .

Yossef BaruchEL:
hi

how do i add values in to kube-api ? when i try it pulls an error

kubectl apply -f /tmp/kubectl-edit-nvt7z.yaml
Warning: kubectl apply should be used on resource created by either kubectl create --save-config or kubectl apply
The Pod “http://kube-apiserver-docker-k8s01.r.il|kube-apiserver-docker-k8s01.r.il” is invalid: spec: Forbidden: pod updates may not change fields other than spec.containers[*].image, spec.initContainers[*].image, spec.activeDeadlineSeconds or spec.tolerations (only additions to existing tolerations)

i tried to add enable-aggregator-routing=true

Javier:
Be sure that you deleted the pod before apply the new yaml

Yossef BaruchEL:
delete the api pod?

Lakshminarayanan Krishnan:
kube-apiserver runs as a static pod (if installed by kubeadm) … you need to edit the static-pod yaml file that should be located under /etc/kubernetes/manifests