diff --git a/docs/user-guide/namespaces.md b/docs/user-guide/namespaces.md index a25e98c81f6..b59f47b3c8e 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