hey, is there any trick to check the path of the static-pod.yamls ?
Tell a bit more. I am not quite sure I have identified what you are after.
Do you mean like the configuration yaml file that lives in the node?
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
cat /var/lib/kubelet/config.yaml | grep -i static
I remember that question.
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
thank you very much!
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 .