Tip: Create a short alias for kubectl and enable shell autocompletion to speed up commands while troubleshooting.
- Kubernetes concepts: https://kubernetes.io/docs/concepts/overview/what-is-kubernetes/
- Static Pod manifests: https://kubernetes.io/docs/tasks/configure-pod-container/static-pod/
1) Symptom: Application Pod is Pending (unscheduled)
Start by checking node and Deployment status:kubectl get deploy output (relevant lines):
Pending with Node: <none>, it means the Pod has not been scheduled — scheduling is kube-scheduler’s responsibility.
Check the kube-system namespace for scheduler health:
command (executable name).
Static Pod manifests live on the host at:
command. Example incorrect manifest snippet:
kube-scheduler), save the file, and kubelet will automatically recreate the Pod from the updated manifest:
Running and Ready, it will assign unscheduled Pods to nodes and the application Pod should transition out of Pending.
Warning: When editing static Pod manifests on control plane hosts, ensure syntax is valid YAML and paths match the node filesystem. kubelet will manage restarts automatically; a malformed file can prevent the component from coming back up.
2) Symptom: Scaling the Deployment does not add replicas
Attempting to scale the Deployment:CrashLoopBackOff, inspect it:
--kubeconfig argument in the command args. Example incorrect line:
/etc/kubernetes/controller-manager.conf, update the manifest to point to the correct file:
Running and Ready, it will process scaling operations and create new Pods for the Deployment.
3) Symptom: Controller manager still failing to reconcile (missing certs volume)
If the controller manager is still unable to reconcile objects despite fixing the kubeconfig, check its logs again:volumeMounts and volumes in /etc/kubernetes/manifests/kube-controller-manager.yaml. Example problematic configuration:
/etc/kubernetes/WRONG-PKI-DIRECTORY for the k8s-certs volume, correct it to the actual PKI directory on the host (/etc/kubernetes/pki):
Running and Ready:
4) Verify the application now scales correctly
After fixing:- kube-scheduler command typos,
- kube-controller-manager
--kubeconfigpath, - any incorrect
hostPathmounts for certificates,
3/3 READY) and all Pods are in Running state.
Troubleshooting checklist (summary)
Final notes
- Always inspect
kubectl describeandkubectl logsfor component-level errors. - When editing static Pod manifests, prefer small, well-validated edits and monitor
kubectl get pods -n kube-systemuntil control plane components are healthy. - If multiple control plane hosts exist, ensure files and mounts are consistent across all control plane nodes.