List all pods across namespaces
All pods with node placement and IPs
kubectl get pods -A -o wide
More kubectl commands
-
kubectl describe pod <name> -n <ns>Full details: events, conditions, volume mounts
-
kubectl logs -f <pod> -n <ns>Stream logs in real time; add -c <container> for multi-container pods
-
kubectl logs <pod> --previous -n <ns>Logs from the last crashed/restarted container instance
-
kubectl exec -it <pod> -n <ns> -- bashInteractive shell inside a running container
-
kubectl port-forward svc/<name> 8080:80 -n <ns>Tunnel a cluster service port to localhost