Kubernetes

How to switch to another namespace? In other words how to change active namespace?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

kubectl config set-context --current --namespace=some-namespace and validate with kubectl config view --minify | grep namespace:

OR

kubens some-namespace