Why is the POD in a pending state?
Inspect the environment for various kubernetes control plane components.
Run the command: kubectl get pods --namespace kube-system
to see the status of scheduler
pod. We have removed the scheduler from this Kubernetes cluster. As a result, as it stands, the pod will remain in a pending state forever.
k describe pod nginx
k get pods --namespace kube-system
디버깅
kube-schduler 가 없다.
nodeName 은 spec 안에
root@controlplane:~# cat nginx.yaml
---
apiVersion: v1
kind: Pod
metadata:
name: nginx
spec:
containers:
- image: nginx
name: nginx
nodeName: node01