Các lệnh cơ bản: xem Pod, describe events, logs container, exec vào container nếu có shell, xem rollout và endpoints Service. Thứ tự tốt là kiểm status, events, logs, config, network, resource.
Ví dụ:
bash
kubectl get pods -n app
kubectl describe pod api-123 -n app
kubectl logs api-123 -n app --previous
kubectl get endpoints api -n app--previous hữu ích khi container restart.
Nếu image tối giản không có shell, dùng ephemeral debug container khi policy cho phép.