Skip to main content

Set default namespace

How to set the default namespace

This is usefull if you work in a special namespace for many commands/tasks

kubectl config set-context --current --namespace=<namespace>
# Example
kubectl config set-context --current --namespace=nginx