<ol>
<li>I have deployed a pod in K8 cluster.</li>
<li>Now i wish to know the Availablity domain in which the Pod is deployed.</li>
<li>I have not used any node affinity, can I find this out?</li>
</ol>

himanshu
<p>A <code>Pod</code> itself is scheduled on a <code>Node</code>. The <code>Node</code> is the actual (virtual) machine which is deployed into a special availability zone.</p>
<p>The availability zone of a node can usually be read from the labels <code>topology.kubernetes.io/zone</code> (new) or <code>failure-domain.beta.kubernetes.io/zone</code> (old)</p>
<p>So in order to find out in which availability zone your pod is, you'll have to find out on which node it was scheduled and then check that node for those labels.</p>
<p>You can do it like this:</p>
<pre><code>kubectl get pod -o wide
</code></pre>
<p>Copy the name of the node and then paste it into the following command:</p>
<pre><code>kubectl describe node &lt;node-name&gt;
</code></pre>
<p>Under the section <code>labels</code>, you can then check for the labels described above to find out in which availability zone the node lives and hence - where your pod was scheduled.</p>
