How did you start kube-apiserver? AFAIK usually it's a static pod, defined 
in /etc/kubernetes/manifests, and picked up by kubelet directly. So if you 
want to edit it, you need to edit the spec file in that directory. Changes 
will be applied automatically.


Am Mittwoch, 27. September 2017 22:29:08 UTC+2 schrieb Tommy:
>
> Hello All,
> I would like to patch k8s 1.7 API server with a patch like this:
>
> spec:
>   template:
>     spec:
>       containers:
>       - command:
>         - --runtime-config=batch/v2alpha1=true
>
> using this command:
> *kubectl patch ds kube-apiserver --patch "$(api-server-patch.yml)" -n 
> kube-system*
>
> Result is: Error from server: map: 
> map[command:[--runtime-config=batch/v2alpha1=true]] does not contain 
> declared merge key: name
>
> Any hints?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to