Kubernetes 101 : Static pods and the Kubelet service



Deploying a static pod does not involve the kubernetes scheduler, the static pod is managed directly by the kubelet server of the worker node on which the static pod is deployed.

The API-server can see the static pod, but can't "manage" it.
Below is the configuration Yaml file of the static pod "pod.yaml"


Configuring the kubelet to start the static pod:

We change the configuration file of the kubelet service "/etc/systemd/system/kubelet.service" so that it starts the static pod"/etc/systemd/system/kubelet.service"


Then we restart the systemctl daemon using the below command:


If we want just to restart the kubelet service, we use the below command, so it reads its configuration file:


Comments

Leave as a comment:

Archive