Interview Prep/Kubernetes/Pod startup failures

Pod is `Pending` forever with no events, but it was created by a Deployment that has `schedulerName: custom-scheduler`.

AdvancedTroubleshootingPod startup failures
Answer

Likely causes → No scheduler with that name is running, so nobody ever picks up the Pod. The default scheduler ignores Pods with a different schedulerName, so you see no FailedScheduling events at all. The same "no events" symptom appears when the default kube-scheduler itself is down.

Diagnose →

kubectl get pod web-x -o jsonpath='{.spec.schedulerName}{"\n"}'
kubectl get pods -n kube-system -l component=kube-scheduler
kubectl get lease -n kube-system kube-scheduler -o jsonpath='{.spec.holderIdentity}'

Fix → Remove the schedulerName or deploy the custom scheduler. If kube-scheduler is down, check its static Pod logs on the control plane (crictl logs).

Prevent → Alert on Pods Pending longer than N minutes with zero scheduling events, and on scheduler leader lease not renewing.

All Kubernetes questions Roadmap: Kubernetes core

More on Pod startup failures