oken: $(kubectl get secret $(kubectl get sa ${NAMESPACE}-user -n $NAMESPACE -o jsonpath={.secrets..name}) -n $NAMESPACE -o jsonpath={.data.token} | base64 --decode)

contexts:
- context:
    cluster: ${NAMESPACE}-cluster
    namespace: ${NAMESPACE}
    user: ${NAMESPACE}-user
  name: ${NAMESPACE}

current-context: ${NAMESPACE}
EOF
</code></pre></li><li><p>Set the <code>KUBECONFIG</code> environment variable for the <code>${NAMESPACE}-user-config.yaml</code>
configuration file:</p><pre><code class=language-b