kubectl view namespaces code example
Example 1: kubectl create namespace
# Create Namespace in current cluster
kubectl create namespace my-namespace
Example 2: kubernetes get namespace
# Get Namespaces for current cluster
kubectl get namespaces
# Create Namespace in current cluster
kubectl create namespace my-namespace
# Get Namespaces for current cluster
kubectl get namespaces