<p>Is it possible to configure a default namespace (other than "default") for a user in kubernetes?</p>

<p>Thank you.</p>

<p>Yes, just set <code>.contexts[].context.namespace</code> in the kubeconfig file of the user.</p>

<p>You can do that manually with a text editor (<code>~/.kube/config</code>):</p>

<pre><code>apiVersion: v1
clusters:
...
contexts:
- context:
    cluster: development
    namespace: frontend
    user: developer
  name: dev-frontend
current-context: dev-frontend
kind: Config
preferences: {}
users:
...
</code></pre>

<p>Or with <code>kubectl config</code>. This example sets the namespace to <code>frontend</code> in the current context:</p>

<pre><code>kubectl config set "contexts."`kubectl config current-context`".namespace" frontend
</code></pre>

<p>For more details and explanation see this <a href="https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/" rel="noreferrer">document</a>.</p>
