Reputation: 12352
I am running kubernetes inside 'Docker Desktop' on Mac OS High Sierra.
Is it possible to change the flags given to the kubernetes api-server with this setup?
I can see that the api-server is running.
I am able to exec into the api-server container. When I kill the api-server so I could run it with my desired flags, the container is immediately killed.
Upvotes: 1
Views: 3779
Reputation: 81
I there is no a deployment for kube-apiserver
since those pods are static so they are created and managed by kubelet
.
The way to change kube-api
's parameters is like @hanx mentioned:
/etc/kubernetes/manifests/
;
As soon as you save the file, the changes will take effect.Upvotes: 2
Reputation: 9012
Try this to find the name of kube-apiserver pod name:
kubectl -n kube-system get pods | grep apiserver
Grab the name of the pod and edit its configuration:
kubectl -n kube-system edit pod APISERVER_POD_NAME
When you do that, the editor will open and you can change apiserver command line flags from there. After editing you should save and close the editor, your changes will be applied.
Upvotes: 3
Reputation: 5
You do not need to kill the api-server to modify desired flags. api-server is a pod as @alex mentioned.
just modify api-server manifest file and save it for the changes to take effect.
Upvotes: 0