Pod

Pod CrashLoopBackOff/Pending/ImagePullBackOff ?

Solutions

Recommended

# 1. Pod kubectl get pod <pod-name> -o wide # 2. ( Events )
kubectl describe pod <pod-name> # 3. kubectl logs <pod-name>
#, kubectl logs <pod-name> --previous # 4. kubectl get events --sort-by=.lastTimestamp # 5. kubectl describe resourcequota -n <namespace>

→ → →,. describe Events.

: Pod

ImagePullBackOff

# kubectl describe pod <pod-name> | grep -A5 'Events' # imagePullSecrets kubectl get pod <pod-name> -o jsonpath='{.spec.imagePullSecrets}' # kubectl create secret docker-registry regcred \ --docker-server=registry.example.com \ --docker-username=user \ --docker-password=pass

ImagePullBackOff,.

: Pod

Pending

# kubectl describe pod <pod-name> | grep -A10 'Events' # kubectl top nodes
kubectl describe nodes | grep -A5 'Allocated resources' # kubectl describe nodes | grep Taints

Pending (CPU/), PVC.

: Pod Pending

--previous,
,

Related Commands