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

And to delete them:

helm uninstall keysafe5-ui --namespace=nshieldkeysafe5
helm uninstall keysafe5-istio --namespace=nshieldkeysafe5
helm uninstall keysafe5-backend --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 by agent_mgmt.dbName, codesafe_mgmt.dbName, hsm_mgmt.dbName, and sw_mgmt.dbName 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

MongoDB

If you have used the provided Bitnami MongoDB Helm chart, you can delete the MongoDB instance and all its data by uninstalling the mongo-chart Helm chart as shown below.

helm uninstall mongo-chart --namespace=mongons

# Get a list of MongoDB Secrets
kubectl get secrets --namespace=mongons

# Remove the MongoDB Secrets
kubectl --namespace=mongons delete secret <secret-name>

# Get a list of MongoDB Persistent Volume Claims
kubectl get pvc --namespace=mongons

# Remove the MongoDB Persistent Volume Claims
kubectl --namespace=mongons delete pvc <pvc-name>