<p>Right now, I deployed some pods on my kubernetes cluster. But sometime, my image may has some bugs which make the pod cannot start correctly.</p>

<p>For example:
nats-1                              0/1       CrashLoopBackOff   121        10h</p>

<p>I also cannot see any error in the kubectl log.</p>

<p>So is there any way to access this pod? Or is there any tools or tech can allow to to enter the container?</p>

<p>Thanks a lot all! :)</p>

<p>You can <code>kubectl describe</code> to get the events, it sometimes might show some errors there. Otherwise you can probably also make the deployment/pod run a command like <code>sleep 3600</code> to keep it open for you to exec into it to investigate further.</p>
