how to see a namespace in kubernetes cluster code example
Example 1: 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
Example 2: kubernetes get namespace
# Get Namespaces for current cluster
kubectl get namespaces