kubernetes find out which container crashes in a pod

3/28/2019

I have a pod with multiple containers. Now it reports CrashLoopBackOff. How can I find out which container crashes. It is possible that all containers crash. But I just want to make sure.

-- Mr Pang
kubernetes

2 Answers

3/28/2019

You can describe pod to see detail

kubectl describe pod POD_NAME
-- nhancao
Source: StackOverflow

3/28/2019
kubectl get events 

This command will help you to check all the events including crash

-- error404
Source: StackOverflow