Shell/Bash: kubernetes check current namespace Example


Shell/Bash Example: This is the "kubernetes check current namespace" Example. compiled from many sources on the internet by

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

kubernetes get namespace

# Get Namespaces for current cluster
kubectl get namespaces

* Summary: This "kubernetes check current namespace" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!