<p>I need to know what are the all possible <code>STATUS</code> a <code>kubernetes</code> <code>pod</code> can have.</p>

<p><strong>My Problem: - I found these status by using <code>kubectl get pods</code> command</strong></p>

<ul>
<li>Running</li>
<li>Pending</li>
<li>ImagePullBackOff</li>
<li>CrashLoopBackOff</li>
<li>Completed</li>
</ul>

<p><strong>But when I open the <code>yaml</code> file for a pod which it says <code>Completed</code> in its STATUS, <code>yaml</code> definition is Succeeded. This is its <code>phase</code></strong></p>

<p>So that means, it in <code>yaml</code> there is another value and when I use <code>kubectl get pods</code> it gives another value.</p>

<p>These are the <code>pod phases</code> in <code>yaml</code> definitions:</p>

<ul>
<li>Pending</li>
<li>Running</li>
<li>Succeeded</li>
<li>Failed</li>
<li>Unknown</li>
</ul>

<p><strong>I want to know what would I get as the equivalence to these above commands when I execute <code>kubectl get pods</code> (eg: I get <code>Completed</code> for <code>Succeeded</code>) ?</strong></p>

Jananath Banuka
<p>Kubernetes is setting a Status to the pod (so status is Primary), status itself can have Phase.
So for example <strong>Status</strong> <code>Completed</code> can be assigned to Phase <code>Succeeded</code> and Phase <code>Failed</code>, While <strong>Status</strong> <code>Running</code>  can't be assigned to this phase.</p>
<p>But in general, it's almost the same Running is Running, Pending is Pending. Phases <code>Unknown</code> as far as I remember means node is unreachable, and can't report pod status.</p>
<p>As official documentation states:</p>
<blockquote>
<p>A Pod’s status field is a PodStatus object, which has a phase field.</p>
<p>The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The phase is not intended to be a comprehensive rollup of observations of Container or Pod state, nor is it intended to be a comprehensive state machine.</p>
<p>The number and meanings of Pod phase values are tightly guarded. Other than what is documented here, nothing should be assumed about Pods that have a given phase value.</p>
</blockquote>
<p><a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/</a></p>
