<p>I have kubernetes pods running as shown in command <em>&quot;kubectl get all -A</em>&quot; :</p>
<p><a href="https://i.stack.imgur.com/zvcJh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/zvcJh.png" alt="enter image description here" /></a></p>
<p>and same pods are shown in command <em>&quot;kubectl get pod -A&quot;</em> :
<a href="https://i.stack.imgur.com/fpvJR.png" rel="noreferrer"><img src="https://i.stack.imgur.com/fpvJR.png" alt="enter image description here" /></a></p>
<p>I want to enter/login to any of these pod (all are in Running state). How can I do that please let me know the command?</p>

<p>In addition to Jonas' answer above;
If you have more than one namespace, you need to specify the namespace your pod is currently using i.e <code>kubectl exec -n &lt;name space here&gt; &lt;pod-name&gt;  -it -- /bin/sh</code></p>
<p>After successfully accessing your pod, you can go ahead and navigate through your container.</p>
