Skip to content

Commit

Permalink
Fix formatting of uninstall.md (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha authored Jan 3, 2018
1 parent ac0bcc4 commit 33e15c1
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions docs/setup/uninstall.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ product_name: stash
menu_name: product_stash_0.6.1
section_menu_id: setup
---

# Uninstall Stash

Please follow the steps below to uninstall Stash:

1. Delete the deployment and service used for Stash operator.
- Delete the deployment and service used for Stash operator.

```console
$ ./hack/deploy/uninstall.sh
$ curl -fsSL https://raw.githubusercontent.com/appscode/stash/0.6.1/hack/deploy/uninstall.sh | bash

+ kubectl delete deployment -l app=stash -n kube-system
deployment "stash-operator" deleted
+ kubectl delete service -l app=stash -n kube-system
Expand All @@ -34,22 +36,26 @@ No resources found
initializerconfiguration "stash-initializer" deleted
```

2. Now, wait several seconds for Stash to stop running. To confirm that Stash operator pod(s) have stopped running, run:
- Now, wait several seconds for Stash to stop running. To confirm that Stash operator pod(s) have stopped running, run:

```console
$ kubectl get pods --all-namespaces -l app=stash
```

3. To keep a copy of your existing `Restic` objects, run:
- To keep a copy of your existing `Restic` objects, run:

```console
kubectl get restic.stash.appscode.com --all-namespaces -o yaml > data.yaml
```

4. To delete existing `Restic` objects from all namespaces, run the following command in each namespace one by one.
- To delete existing `Restic` objects from all namespaces, run the following command in each namespace one by one.

```
kubectl delete restic.stash.appscode.com --all --cascade=false
```

5. Delete the old CRD-registration.
- Delete the old CRD-registration.

```console
kubectl delete crd -l app=stash
```

0 comments on commit 33e15c1

Please sign in to comment.