<p>I use <code>kops export kubecfg ${NAME} </code> to create a context for <code>kubectl</code> , however, I would like to change the default namespace.</p>
<p>I know I can create a namespace in a new context with something like:</p>
<p><code>kubectl config set-context my-context --namespace=myNamespace</code></p>
<p>But how could I change the default namespace in an already existing context?</p>

zeh
<p>Turns out that <code>set-context</code> is a misnomer and it can be user to modify a context, so the following will do just what is needed to change de default namespace in <code>kubectl</code> from <code>kops</code> command:</p>
<p><code>kubectl config set-context ${NAME} --namespace=myNamespace</code></p>
