Skip to content

Kubectl set namespace

Note

A better solution is to use something like [kubectx + kubens](https://github.com/ahmetb/kubectx)

Why

When you're running several commands in the same namespace (That isn't default) it gets annoying having to always specify the name space

Solution

admin config set-context --current --namespace=<insert-namespace-name-here>

Want to make this site better? Open a PR or help fund hosting costs