<p>I created a pod with context:  </p>

<pre><code>kubectl config set-context DevDan-context \
--cluster=kubernetes \
--namespace=development \
--user=DevDan  
</code></pre>

<p>I see the pod if I run <code>kubectl --context=DevDan-context get pods</code>.  </p>

<p>But if I run just <code>kubectl get pods</code>  I don't see the pod.  </p>

<p>Is there a way to show all the pods with the column of context?<br>
I know there is <code>kubectl get pods --all-namespaces</code> but it just show the pods and doesn't write what context each pod has:  </p>

<pre><code>ubuntu@HOST:~$ kubectl get pods --all-namespaces
NAMESPACE     NAME                                       READY     STATUS    RESTARTS   AGE
development   nginx-8586cf59-plq29                       1/1       Running   0          19h
kube-system   etcd-HOST                                  1/1       Running   1          9d
kube-system   kube-apiserver-HOST                        1/1       Running   1          9d
kube-system   kube-controller-manager-HOST               1/1       Running   1          9d
kube-system   kube-dns-6f4fd4bdf-25ddh                   3/3       Running   3          9d
kube-system   kube-flannel-ds-5vgd9                      1/1       Running   1          9d
kube-system   kube-flannel-ds-vvstn                      1/1       Running   0          9d
kube-system   kube-proxy-62xrx                           1/1       Running   1          9d
kube-system   kube-proxy-g7w7l                           1/1       Running   0          9d
kube-system   kube-scheduler-HOST                        1/1       Running   1          9d
</code></pre>

<p>The workaround is to run <code>kubectl config get-contexts</code> and then take each context and run <code>kubectl --context=&lt;my_context&gt; get pods</code> but if I have lots of context it can be problematic.  </p>

<p>I also tried to run </p>

E235
<p>To fetch all pods along with configuration:</p>

<pre><code>kubectl describe pods --all-namespaces
</code></pre>
