How to Uninstall Wallaroo

How to Uninstall Wallaroo

If the install procedure for Wallaroo goes awry, one option is to uninstall the incomplete Wallaroo installation and start again. The following procedure will remove Wallaroo from a Kubernetes cluster.

  1. Remove all Kubernetes namespaces that correlate to a Wallaroo pipeline with the kubectl delete namespaces {list of namespaces}command except the following : default, kube* (any namespaces with kube before it), and wallaroo. wallaroo will be removed in the next step.

    For example, in the following environment model1 and model2 would be deleted with the following:

      -> kubectl get namespaces
        NAME			    STATUS        AGE
        default		        Active        7d4h
        kube-node-lease	    Active		    7d4h
        kube-public		    Active		    7d4h
        model1               Active         4h23m
        model2               Active         4h23m
        wallaroo             Active         3d6h
    
        kubectl delete namespaces model1 model2
    
  2. Use the following bash script or run the commands individually. Warning: If the selector is incorrect or missing from the kubectl command, the cluster could be damaged beyond repair.

    #!/bin/bash
    kubectl delete ns wallaroo && kubectl delete all,secret,configmap,clusterroles,clusterrolebindings,storageclass,crd --selector app.kubernetes.io/part-of=wallaroo --selector kots.io/app-slug=wallaroo
    
  3. Once complete, the kubectl get namespaces will return only the default namespaces:

    ❯ kubectl get namespaces
    NAME              STATUS   AGE
    default           Active   3h47m
    kube-node-lease   Active   3h47m
    kube-public       Active   3h47m
    kube-system       Active   3h47m
    

Wallaroo can now be reinstalled into this environment.