Answers for "How to get current namespace in Kubernetes"

6

kubectl switch namespace command

kubectl config set-context --current --namespace=<insert-namespace-name-here>
# Validate it
kubectl config view --minify | grep namespace:
Posted by: Guest on March-06-2020

Code answers related to "How to get current namespace in Kubernetes"

Browse Popular Code Answers by Language