kubectl 1.37 reference · 5 entries
kubectl Debugging
Find out what's wrong with kubectl logs, exec, port-forward, events and debug.
| Name | Description | Since |
|---|---|---|
kubectl logs |
Print a container's logs from a pod, deployment or job; follow them, limit lines, or read the previous crashed container. | |
kubectl exec |
Run a command in a container of a running pod, for example a shell, a database client or a quick check. | |
kubectl port-forward |
Forward a local port to a pod or Service for testing and debugging without exposing it publicly. | |
kubectl events |
List recent cluster events (scheduling, image pulls, probe failures, kills) for a namespace or one resource, sorted by time. | |
kubectl debug |
Debug pods and nodes with ephemeral containers or copies, even when the image has no shell or tools. |