KubernetesCommand
Show Previous Pod Logs
Type this command
kubectl logs my-pod --previousDumps the logs of the previous container instantiation.
The Kubernetes command to show previous pod logs is kubectl logs my-pod --previous.
kubectl logs my-pod --previouskubectl logs my-pod --previousDumps the logs of the previous container instantiation.
Run kubectl logs my-pod --previous.
Run kubectl logs my-pod --previous.
Type it in the terminal or command-line interface used by Kubernetes.
Yes. The command text is the same on both platforms when the tool is installed.