Uninstall

Central platform

To fully remove the KeySafe 5 application from your Kubernetes cluster, use helm uninstall. This uninstalls all KeySafe 5 Helm charts.

You can use helm list to see which charts are installed. If you do not know the namespace, use --all-namespaces to show charts from all namespaces.

$ helm list -n nshieldkeysafe5 --short
keysafe5-backend
keysafe5-istio
keysafe5-ui
keysafe5-prometheus
keysafe5-alertmanager

And to delete them:

helm uninstall keysafe5-ui --namespace=nshieldkeysafe5
helm uninstall keysafe5-istio --namespace=nshieldkeysafe5
helm uninstall keysafe5-backend --namespace=nshieldkeysafe5
helm uninstall keysafe5-prometheus --namespace=nshieldkeysafe5
helm uninstall keysafe5-alertmanager --namespace=nshieldkeysafe5

KeySafe 5 application data remains in your MongoDB database after uninstalling the application. To clear this data from the database, remove the databases that were defined in the helm-keysafe5-backend chart.

Secrets

You can use kubectl get secrets to see the secrets.

kubectl get secrets --namespace=nshieldkeysafe5

And delete them:

kubectl --namespace=nshieldkeysafe5 delete secrets agentcomms-server-certificates
kubectl --namespace=nshieldkeysafe5 delete secret agentcomms-client-certificates
kubectl --namespace=nshieldkeysafe5 delete secret mongodb-demo-client-certificates

Volumes

You can use kubectl get pvc to see the persistent volumes.

kubectl get pvc --namespace=nshieldkeysafe5

And delete them

kubectl --namespace=nshieldkeysafe5 delete pvc data-nshield-keysafe5
kubectl --namespace=nshieldkeysafe5 delete pvc prometheus-data-keysafe5