Answers for "kubectl change namespace"

14

kubectl change namespace

kubectl config set-context --current --namespace=my-namespace
Posted by: Guest on July-10-2020
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
4

kubectl create namespace

# Create Namespace in current cluster
kubectl create namespace my-namespace
Posted by: Guest on October-19-2020
0

kubernetes create namespace

# Create NS
kubectl create namespace my-namespace
# Select NS
kubectl config set-context --current --namespace=my-namespace
# Check current NS
kubectl config view | grep namespace
Posted by: Guest on June-04-2021

Code answers related to "kubectl change namespace"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language