Answers for "kubernetes get namespace"

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
3

kubernetes get namespace

# Get Namespaces for current cluster
kubectl get namespaces
Posted by: Guest on October-20-2020
4

kubectl create namespace

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

kubernetes check current 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 "kubernetes get namespace"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language