Hey, is there any trick to check the path of the static-pod.yamls?

Samir:
hey, is there any trick to check the path of the static-pod.yamls ?

Fernando Jimenez:
Tell a bit more. I am not quite sure I have identified what you are after.

Fernando Jimenez:
Do you mean like the configuration yaml file that lives in the node?

Samir:
I just a question they wanted that I delete a static pod. I knew that I need to find that file but I did not know how to find it

unnivkn:
cat /var/lib/kubelet/config.yaml | grep -i static

Fernando Jimenez:
I remember that question. :wink:
There is no trick. Use ps auxw | grep kubelet and look for the config entry, like: --config=/var/lib/kubelet/config.yaml , then as root look for the entry staticPodPath in that /var/lib/kubelet/config.yaml

Samir:
thank you very much!

Madhan Kumar:
first you can look for --pod-manifest-path entry in the kubelet parameters if it is missing then look for the --config entry as explained above .