change the namespace in kubernetes code example
Example 1: kubectl change namespace
kubectl config set-context --current --namespace=my-namespace
Example 2: kubernetes get namespace
# Get Namespaces for current cluster
kubectl get namespaces
kubectl config set-context --current --namespace=my-namespace
# Get Namespaces for current cluster
kubectl get namespaces