docs: Reformat Uninstall steps (#11040)

* docs: Reformat Uninstall steps

Reformatting uninstall as steps to make uninstall instructions more clear.
This commit is contained in:
David Yu 2021-09-15 11:59:02 -07:00 committed by GitHub
parent 02051c141e
commit f58418f811
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ up some resources that Helm does not delete.
release "hashicorp" uninstalled release "hashicorp" uninstalled
``` ```
1. After deleting the Helm release, you need to delete the `PersistentVolumeClaim`'s 2. After deleting the Helm release, you need to delete the `PersistentVolumeClaim`'s
for the persistent volumes that store Consul's data. These are not deleted by Helm due to a [bug](https://github.com/helm/helm/issues/5156). for the persistent volumes that store Consul's data. These are not deleted by Helm due to a [bug](https://github.com/helm/helm/issues/5156).
To delete, run: To delete, run:
@ -36,7 +36,7 @@ up some resources that Helm does not delete.
~> **NOTE:** This will delete **all** data stored in Consul and it can't be ~> **NOTE:** This will delete **all** data stored in Consul and it can't be
recovered unless you've taken other backups. recovered unless you've taken other backups.
1. If installing with ACLs enabled, you will need to then delete the ACL secrets: 3. If installing with ACLs enabled, you will need to then delete the ACL secrets:
```shell-session ```shell-session
$ kubectl get secret | grep consul | grep Opaque $ kubectl get secret | grep consul | grep Opaque
@ -49,8 +49,8 @@ consul-federation Opaque 4
consul-mesh-gateway-acl-token Opaque 1 41m consul-mesh-gateway-acl-token Opaque 1 41m
``` ```
Ensure that the secrets you're about to delete are all created by Consul and not 4. Ensure that the secrets you're about to delete are all created by Consul and not
created by someone else that happen to have the word `consul`. created by someone else that happen to have the word `consul`:
```shell-session ```shell-session
$ kubectl get secret | grep consul | grep Opaque | awk '{print $1}' | xargs kubectl delete secret $ kubectl get secret | grep consul | grep Opaque | awk '{print $1}' | xargs kubectl delete secret
@ -64,7 +64,7 @@ secret "consul-mesh-gateway-acl-token" deleted
secret "consul-gossip-encryption-key" deleted secret "consul-gossip-encryption-key" deleted
``` ```
If installing with `tls.enabled` then there will be a `ServiceAccount` that is left behind: 5. If installing with `tls.enabled` then there will be a `ServiceAccount` that is left behind:
```shell-session ```shell-session
$ kubectl get serviceaccount consul-tls-init $ kubectl get serviceaccount consul-tls-init