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 with the kubectl delete namespaces {list of namespaces}command except the following : default, kube* (any namespaces with kube before it).

    For example, in the following environment wallaroo, 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 wallaroo model1 model2
    
  2. Use the following bash script or run the commands individually:

    #!/bin/bash
    
    kubectl delete namespace minio-operator
    kubectl delete clusterrole/minio-operator-role
    kubectl delete clusterrole/console-sa-role
    kubectl delete clusterrolebinding/minio-operator-binding
    kubectl delete clusterrolebinding/console-sa-binding
    kubectl delete crd/modelconfigs.wallaroo.ai
    kubectl delete crd/tenants.minio.min.io
    
  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.