hardkubectl
Retrieve logs from the previous terminated instance of a pod container
command
kubectl logs POD_NAME --previousalso accepted
kubectl logs --previouskubectl logs POD_NAME -pkubectl logs -pcommand
kubectl logs POD_NAME --previousalso accepted
kubectl logs --previouskubectl logs POD_NAME -pkubectl logs -pPart of the Kubernetes CLI (kubectl) — Debugging category.
| Flag | Purpose |
|---|---|
--previous | Boolean flag |
Test your recall — not just your reading.
Practice with interactive quiz →