@@ -11,13 +11,15 @@ product_name: stash
1111menu_name : product_stash_0.6.1
1212section_menu_id : setup
1313---
14-
1514# Uninstall Stash
15+
1616Please follow the steps below to uninstall Stash:
1717
18- 1 . Delete the deployment and service used for Stash operator.
18+ - Delete the deployment and service used for Stash operator.
19+
1920``` console
20- $ ./hack/deploy/uninstall.sh
21+ $ curl -fsSL https://raw.githubusercontent.com/appscode/stash/0.6.1/hack/deploy/uninstall.sh | bash
22+
2123+ kubectl delete deployment -l app=stash -n kube-system
2224deployment "stash-operator" deleted
2325+ kubectl delete service -l app=stash -n kube-system
@@ -34,22 +36,26 @@ No resources found
3436initializerconfiguration "stash-initializer" deleted
3537```
3638
37- 2 . Now, wait several seconds for Stash to stop running. To confirm that Stash operator pod(s) have stopped running, run:
39+ - Now, wait several seconds for Stash to stop running. To confirm that Stash operator pod(s) have stopped running, run:
40+
3841``` console
3942$ kubectl get pods --all-namespaces -l app=stash
4043```
4144
42- 3 . To keep a copy of your existing ` Restic ` objects, run:
45+ - To keep a copy of your existing ` Restic ` objects, run:
46+
4347``` console
4448kubectl get restic.stash.appscode.com --all-namespaces -o yaml > data.yaml
4549```
4650
47- 4 . To delete existing ` Restic ` objects from all namespaces, run the following command in each namespace one by one.
51+ - To delete existing ` Restic ` objects from all namespaces, run the following command in each namespace one by one.
52+
4853```
4954kubectl delete restic.stash.appscode.com --all --cascade=false
5055```
5156
52- 5 . Delete the old CRD-registration.
57+ - Delete the old CRD-registration.
58+
5359``` console
5460kubectl delete crd -l app=stash
5561```
0 commit comments