Can anyone explain me please how to deploy static pods? I am not sure that I am . . .

Samir:
Can anyone explain me please how to deploy static pods? I am not sure that I am doing it the correct. I actually was adding the pod.yaml to /etc/kubernetes/manifests directory. It was correct for the labs but I see in the kubernetes documentation that I should do something like this

KUBELET_ARGS="--cluster-dns=10.254.0.10 --cluster-domain=kube.local --pod-manifest-path=/etc/kubelet.d/"

can anyone please tell me how this exactly works?

Rocky:
--pod-manifest-path takes precedence over staticPodPath defined in the kubelet config file; so if prior is present you go with that.

Fernando Jimenez:
Hi @Samir I would not mess with those settings. I would just do what you tried in the course and place it in the /etc/kubernetes/manifests/ directory, unless that you suspect the kubelet is not setup as that.

Rocky:
https://kodekloud.slack.com/archives/CHMV3P9NV/p1622486033278300?thread_ts=1622485365.273800&cid=CHMV3P9NV

Samir:
my problem is only that it does not work for me like in the documentation

Samir:
I don’t understand why

dxloader:
Did you restart the kubelet?