Pod status field shows as pending
If the pod Status field shows Pending state, it indicates that Kubernetes is not able to schedule the pod. To check use the following command:
$ kubectl get all -n netbackup-operator-system
The output is something like:
NAME READY STATUS RESTARTS AGE pod/msdp-operator- controller-manager- 65d8fd7c4d-bsgms 2/2 Running 0 12m pod/netbackup- operator-controller- manager-6c9dc8d87f -pq8mr 0/2 Pending 0 15s
For more details use the following pod describe command:
$ kubectl describe pod/netbackup-operator-controller-manager-6c9dc8d87f-pq8mr -n netbackup-operator-system
The output is something like:
Type Reason Age Message
---- ------ ---- -------
Warning FailedScheduling 56s (x3 over 2m24s) 0/4 nodes are
available:1 node(s)
had taint {node-
role.kubernetes.
io/master: }, that
the pod didn't
tolerate, 3 node(s)
didn't match
Pod's node
affinity/selector.
To resolve this issue, you can edit the operator deployment using the following command and verify the nodeSelector:
kubectl edit deployment netbackup-operator-controller-manager -n netbackup-operator-system