Uninstall Stash

Please follow the steps below to uninstall Stash:

  1. Delete the deployment and service used for Stash operator. ```console $ ./hack/deploy/uninstall.sh
  2. kubectl delete deployment -l app=stash -n kube-system deployment “stash-operator” deleted
  3. kubectl delete service -l app=stash -n kube-system service “stash-operator” deleted
  4. kubectl delete secret -l app=stash -n kube-system No resources found
  5. kubectl delete serviceaccount -l app=stash -n kube-system No resources found
  6. kubectl delete clusterrolebindings -l app=stash -n kube-system No resources found
  7. kubectl delete clusterrole -l app=stash -n kube-system No resources found
  8. kubectl delete initializerconfiguration -l app=stash initializerconfiguration “stash-initializer” deleted ```

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

    $ kubectl get pods --all-namespaces -l app=stash
    
  10. To keep a copy of your existing Restic objects, run:

    kubectl get restic.stash.appscode.com --all-namespaces -o yaml > data.yaml
    
  11. 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
    
  12. Delete the old CRD-registration.

    kubectl delete crd -l app=stash
    

Take your team where it needs to go.

Create your cluster in minutes. Our team is here to help and would be happy to chat with you.