Overview
This guide provides step-by-step instructions to fully remove an existing Virtru Private Keystore deployment from Kubernetes.
This includes:
- Deleting the Helm release
- Removing pods and services
- Deleting associated secrets
- Removing the namespace
⚠️ Important Notes
- This action is destructive
- All the VPK data, keys, and configuration in the cluster will be removed
- This will ensure you can cleanly reinstall the application
- Ensure you have backups of:
- RSA keys
send_to_virtru.tar.gz- Any required configuration
Step 1: Identify Existing Deployment
Check if CKS is currently deployed:
helm list -n virtru
Check running pods:
kubectl get pods -n virtru
Step 2: Uninstall the Helm Release
This removes:
- Deployments
- Pods
- Services
- Ingress resources
helm uninstall cks -n virtru
Verify:
helm list -n virtru
Step 3: Confirm Pods Are Removed
kubectl get pods -n virtru
Wait approximately 5 minutes and the expected output should be:
No resources found
Step 4: Remove Remaining Resources (Optional Cleanup)
Sometimes resources may remain.
Delete secrets (example)
kubectl delete secret cks-tls-secret -n virtru
List all remaining resources:
kubectl get all -n virtru
Step 5: Delete the Namespace
Once everything is removed:
kubectl delete namespace virtru
Wait approximately 5 minutes and verify:
kubectl get ns
Step 6: Confirm Full Cleanup
Run:
kubectl get all -A | grep virtru
Expected:
- No resources returned