diff --git a/docs/user-guide/namespaces.md b/docs/user-guide/namespaces.md index c1a63d14fbd..f45067fee79 100644 --- a/docs/user-guide/namespaces.md +++ b/docs/user-guide/namespaces.md @@ -99,7 +99,9 @@ $ export CONTEXT=$(kubectl config view | grep current-context | awk '{print $2}' Then update the default namespace: ```console -$ kubectl config set-context $(CONTEXT) --namespace= +$ kubectl config set-context $CONTEXT --namespace= +# Validate it +$ kubectl config view | grep namespace: ``` ## Namespaces and DNS