title: How to debug a kubernetes pod whose status is error
body: <p>I am building my docker image and then deployed using kubernetes.</p>
  <p>When i execute below command:</p>
  <pre><code>kubectl get pods 
  
  NAME                          READY   STATUS    RESTARTS   AGE
  lmhfhfhf-def-abc            0/1     Error   0          2m
  </code></pre>
  <p>I am almost sure that, it's because of my code changes .
  How do i debug this pod to find out the logical error in my code.Please Help.</p>