<p>I want to know what nodes correspond to pods in a K8s cluster. I am working with a 3 node K8s cluster which has 2 specific pods among other pods.</p>
<p><strong>How can I see which pod exists in which node using <code>kubectl</code>?</strong></p>
<p>When I use <code>kubectl get pods</code>, I get the following:</p>
<pre><code>NAME                                  READY   STATUS    RESTARTS   AGE
pod1-7485f58945-zq8tg                 1/1     Running   2          2d
pod2-64c4564b5c-8rh5x                 1/1     Running   0          2d1h
</code></pre>
<p>Following is the version of K8s (<code>kubectl version</code>) that I am using</p>
<pre><code>Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;20&quot;, GitVersion:&quot;v1.20.0&quot;, GitCommit:&quot;af46c47ce925f4c4ad5cc8d1fca46c7b77d13b38&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2020-12-08T17:59:43Z&quot;, GoVersion:&quot;go1.15.5&quot;, Compiler:&quot;gc&quot;, Platform:&quot;darwin/amd64&quot;}
Server Version: version.Info{Major:&quot;1&quot;, Minor:&quot;19&quot;, GitVersion:&quot;v1.19.13&quot;, GitCommit:&quot;53c7b65d4531a749cd3a7004c5212d23daa044a9&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2021-07-15T20:53:19Z&quot;, GoVersion:&quot;go1.15.14&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}
</code></pre>

Arctic Wolf
<p>Try <code>kubectl get pods -o wide</code>.</p>
<p>You can get more details in this very detailed <a href="https://kubernetes.io/docs/reference/kubectl/cheatsheet/" rel="nofollow noreferrer">Kubernetes cheatsheet</a>.</p>
