Issue:
Have pod stuck at Pending.
$ kubectl get pods -n=default
<pending state>
Resolution Tasks:
If it just happened:
$ kubectl get events
Otherwise, check the pod events:
$ kubectl describe pods | grep -A7 ^Events
(all pods)
- or -
$ kubectl describe pod nginx-test-4d485ba4a8- | grep Events
and
$ kubectl logs pod nginx-test-4d485ba4a8-
Confirm the scheduler is running:
$ kubectl get pods -n=kube-system
If kube-scheduler-k8master is not running, check it's pod:
$ kubectl logs pod kube-scheduler-k8master
and check the kubelet service on the master:
$ systemctl status kubelet
and
$ journalctl -u kublet
Remote into the worker node (host) via SSH and check the scheduler logs:
$ cd /var/log/pods/
$ cd /default_nginx-test-4d485ba4a8-2qrjc_752e4f92-930f-40c2-9ccb-834d647bd726
$ cd /nginx-test/
$ sudo tail 0.log/
<check for issue - note that current latest number may be different>
$ cd ../../
$ pwd
</var/log/pods>
$ cd kube-system_kube-scheduler-k8master1_1e1ad6c5b41a60a131353157588ab020
$ cd kube-scheduler
$ tail 21.log
< check for issue - note that current latest number may be different>
previous page
|