shlogg · Early preview
Ibrahim S @ibrahimsi

Kubernetes Troubleshooting Guide: Common Pod Issues & Log Locations

Kubernetes troubleshooting made easy! Use `kubectl logs`, `kubectl exec`, `/var/log/kube-apiserver.log` & `/var/log/kube-kubelet.log` to fix common issues like Pod Stuck in Pending, ImagePullBackOff and CrashLoopBackOff.

Kubernetes offers powerful tools, but when things go wrong with your pods, the right commands and log locations can save you a ton of time. Here’s a quick guide to some common issues and how to handle them:
Commands to Check Logs:
For specific pod logs:
kubectl logs pod_name container_name
To exec into the pod's container :
kubectl exec pod_name -c container_name -- /bin/sh
Important Log Locations:
/var/log/kube-apiserver.log
/var/log/kube-kubelet.log
/var/log/kube-controller-manager.log
—————————————————————————-
Common Pod Issues:
Pod Stuck in Pending:
Usually resource-related, like insuffic...