Helm Uninstall

Uninstall Voithos
Note: Voithos data persists through helm upgrades, but not through uninstalls.

Uninstall a Voithos Helm installation

To uninstall Voithos from your cluster, you can run the following command. Importantly, this will remove the data that Voithos has stored!

helm uninstall voithos -n voithos-system

Cleanup

The helm uninstallation does not remove the CRD and Voithos Autoscaling Group resources from your cluster.

kubectl -n voithos-system patch cassandradatacenters.cassandra.datastax.com dc1 \
    --type="json" \
    -p '[{ "op": "replace", "path": "/metadata/finalizers", "value": null}]'
kubectl -n voithos-system patch replicatedsecrets.replication.k8ssandra.io cassandra \
    --type="json" \
    -p '[{ "op": "replace", "path": "/metadata/finalizers", "value": null}]'
kubectl -n voithos-system patch k8ssandraclusters.k8ssandra.io cassandra \
    --type="json" \
    -p '[{ "op": "replace", "path": "/metadata/finalizers", "value": null}]'
kubectl -n voithos-system delete statefulset cassandra-dc1-default-sts

Finally, remove all voithosautoscalinggroups resources, CRDs, and the namespace:

kubectl delete ag --all
kubectl delete crd -l app.kubernetes.io/managed-by=voithos
kubectl delete ns voithos-system

If you did not have any pre-existing cert-manager resources installed in your cluster, you can follow these instructions to remove them.