Kubernetes
Pods Commands
Work with the basic unit of Kubernetes deployment. Learn to create, inspect, debug, and manage pods, understand their lifecycle, and troubleshoot common issues.
22 commands
Pro Tips
Use 'kubectl get pods -o wide' to see node placement and IP addresses along with pod status.
Use 'kubectl describe pod' when a pod won't start - the Events section shows scheduling and startup issues.
For quick debugging, run 'kubectl run debug --rm -it --image=busybox -- sh' for a temporary debug pod.
Common Mistakes
Pods are ephemeral - don't store important data in pods. Use PersistentVolumes for persistent storage.
Avoid creating standalone pods. Use Deployments or StatefulSets for proper management and recovery.