Skip to content

Commit

Permalink
docs: consul-k8s uninstall with namespace (#11478)
Browse files Browse the repository at this point in the history
* docs:  consul-k8s uninstall with namespace

Uninstall with namespace

* change release name to consul in uninstall

* Update website/content/docs/k8s/operations/uninstall.mdx

Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com>

* add --create-namespace command to install for custom values file

Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com>
  • Loading branch information
david-yu and trujillo-adam committed Nov 3, 2021
1 parent 7e80484 commit 8f80553
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion website/content/docs/k8s/installation/install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
...
```
Expand Down
13 changes: 10 additions & 3 deletions website/content/docs/k8s/operations/uninstall.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <release-name>` 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
Expand Down

0 comments on commit 8f80553

Please sign in to comment.