How to Check If a Pod Is Static
Planted .
- The pod name has the node name appended to it, like
kube-apiserver-controlplanefor example - Run
kubectl get pod <podname> -o yaml- It will have a property :
kubernetes.io/config.source: file kubernetes.io/config.mirrorannotation is also there
- It will have a property :
- Most reliable, under
ownerReferences,kindwill be mentioned asNode. Example:
ownerReferences:
- apiVersion: v1
controller: true
kind: Node
name: controlplane
uid: f27d5339-c033-4a76-965e-c5730e08dac8
- Finally, on the node you can check the manifests directory.