diff --git a/website/content/docs/k8s/installation/install.mdx b/website/content/docs/k8s/installation/install.mdx index 11bb78029..b7858192f 100644 --- a/website/content/docs/k8s/installation/install.mdx +++ b/website/content/docs/k8s/installation/install.mdx @@ -124,7 +124,7 @@ controller: Once you've created your `config.yaml` file, run `helm install` with the `-f` flag: ```shell-session -$ helm install consul hashicorp/consul -f config.yaml +$ helm install consul hashicorp/consul --create-namespace -n consul -f config.yaml NAME: consul ... ``` diff --git a/website/content/docs/k8s/operations/uninstall.mdx b/website/content/docs/k8s/operations/uninstall.mdx index f570b0e35..ececce827 100644 --- a/website/content/docs/k8s/operations/uninstall.mdx +++ b/website/content/docs/k8s/operations/uninstall.mdx @@ -12,11 +12,18 @@ You can uninstall Consul using Helm commands or the Consul K8s CLI. Run the `helm uninstall` **and** manually remove resources that Helm does not delete. -1. First, run `helm uninstall`: + +1. (Optional) If Consul is installed in a dedicated namespace, set the kubeConfig context to the `consul` namespace. Otherwise, subsequent commands will need to include `-n consul`. + + ``` + kubectl config set-context --current --namespace=consul + ``` + +1. Run the `helm uninstall ` command and specify the release name you've installed Consul with, e.g.,: ```shell-session - $ helm uninstall hashicorp - release "hashicorp" uninstalled + $ helm uninstall consul + release "consul" uninstalled ``` 1. After deleting the Helm release, you need to delete the `PersistentVolumeClaim`'s