<p>I have 1 master and 2 nodes running and kube-proxy to debug.</p>
<pre><code>kube-m1:/$ kubectl get pod -n kube-system kube-proxy-tmt58
NAME               READY   STATUS    RESTARTS   AGE
kube-proxy-tmt58   1/1     Running   6          439d
</code></pre>
<p>How can I specify a namespace to get <code>kubectl logs</code> to debug a pod?</p>
<pre><code>kube-m1:/$ kubectl logs kube-proxy-tmt58
Error from server (NotFound): pods &quot;kube-proxy-tmt58&quot; not found
</code></pre>
<p>I am new in kubernetes so, also would be great and very helpful to get some good and working guides or materials about pods and nodes debugging :)</p>
<p>Thanks a lot.</p>

Artur Dino
<p>Just like you did it to get a pod, to specify a namespace you can pass <code>-n</code> | <code>--namespace</code> flag, so your command would look like</p>
<pre><code>kubectl logs kube-proxy-tmt58 -n kube-system
</code></pre>
