Goal
Understand Kubernetes architecture so debugging becomes logical instead of guessing.
The mental model
- control plane (API server + scheduler + controllers)
- nodes (kubelet + container runtime)
- workloads (pods, deployments)
Flow:
kubectl -> API Server -> etcd + controllers -> scheduler -> kubelet -> pods
Commands you will use daily
kubectl get nodes
kubectl get pods -A
kubectl describe pod <name>
kubectl logs <pod> -c <container> --tail=200
kubectl get events -A --sort-by=.lastTimestamp | tail
What breaks most often
- image pull issues
- bad env vars/secrets
- missing permissions (RBAC)
- readiness probe failing
- resource limits too low
Next Step
Deploy and roll out safely with probes and rollout strategies.