kubectl 1.37 · Clusters and contexts

Set the default namespace

Use a namespace for the current context so you can skip -n.

kubectl config set-context --current --namespace=dev

Official kubectl 1.37 documentation

More clusters and contexts commands

All clusters and contexts commands · kubectl 1.37 cheatsheet

Was this page helpful?