One liner command to get restart reason for a POD in Kubernetes
Run:
kubectl describe pod -n <namespace> <Pod name> | grep -A2 -B2 Reason
For e.g.:
kubectl describe pod -n myns my-pod-6d9bdcfbfc-k9jqw | grep -A2 -B2 Reason
Run:
kubectl describe pod -n <namespace> <Pod name> | grep -A2 -B2 Reason
For e.g.:
kubectl describe pod -n myns my-pod-6d9bdcfbfc-k9jqw | grep -A2 -B2 Reason
Comments