<p>I have multiple contexts and I want to be able to run commands against a context that I have access to but am not pointed to, while in another context.</p>

<p>How do I run a command, say <code>$ kubectl get pods</code> against context B while I'm currently pointed to context A?</p>

<p><code>--context</code> is a global option for all kubectl commands. Simply run:</p>

<pre><code>$ kubectl get pods --context &lt;context_B&gt;
</code></pre>

<p>For a list of all global kubectl options, run <code>$ kubectl options</code></p>
