Hi, how can we identify static pods in a huge cluster wherein the static pods can be running on many nodes including master and worker nodes?
Grepping the node names for all the nodes in the below command would be too tedious:
kubectl get pods --all-namespaces | grep controlplane (here controlplane is the node name of master)
I don’t think it’s available in all namespaces instead of kube-system namespaces and it contains node-name at the end.
Thank you for your response. Still it seems to be tough task to find the static pods using the below command (used kube-system namespace) incase the no. of static pods are huge due to many no. of nodes in the Prod like environment.
kubectl get pods -n kube-system | grep controlplane
Was thinking if we have some other easier/quicker way to find the static pods, because grepping hostname for say 100s of nodes would be tough, just to find the static pods.