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.
WARNING
This procedure will delete all Wallaroo data from the Kubernetes environment. Make sure that all data is backed up before proceeding with the uninstall process.-
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 withkube
before it), andwallaroo
.wallaroo
will be removed in the next step.For example, in the following environment
model1
andmodel2
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
-
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
-
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.