Big Bang Deployment: Uninstall & Cleanup Guideπ
This guide explains how to remove your Big Bang deploymentβincluding all Helm releases, namespaces, persistent data, and custom resourcesβfrom your Kubernetes cluster.
Note: There may be potential items that will need to be removed manually if the helm commands failes to delete them. Please check the namespaces for any of these items. * services * configmap * secret * serviceaccount * lease * clusterrolebinding * clusterrole
1. Uninstall the Big Bang Helm Releaseπ
helm uninstall bigbang -n bigbang
2. Delete the Big Bang Namespaceπ
kubectl delete namespace bigbang
3. Remove FluxCD Resourcesπ
flux uninstall –namespace=flux-system –silent kubectl delete namespace flux-system
4. Delete Other Namespaces Created by Big Bang Packagesπ
Check for and delete any additional namespaces (e.g., istio-system
, keycloak
, gitlab
, etc.):
kubectl get namespaces
kubectl delete namespace
5. Remove Stuck Namespaces (if any)π
If a namespace is stuck in “Terminating”, remove its finalizers:
kubectl get namespace
Or use the helper script if available:
https://repo1.dso.mil/big-bang/bigbang/-/blob/master/scripts/remove-ns-finalizer.sh
6. Delete Persistent Volume Claims and Persistent Volumesπ
kubectl get pvc –all-namespaces
kubectl delete pvc
7. Remove Custom Resource Definitions (CRDs)π
To remove CRDs installed by Big Bang or its packages:
kubectl get crd | grep -E ‘istio|keycloak|gitlab|neuvector|anchore’ | awk ‘{print $1}’ | xargs kubectl delete crd
8. Verify Cleanupπ
Check for any remaining resources:
kubectl get all –all-namespaces kubectl get namespaces
Delete any remaining resources as needed.
Note:
If you used additional override files or installed extra components, ensure you remove their resources and namespaces as well.
Cluster Resource Stats (Example)π
-
Pods:
kubectl get pods --all-namespaces | wc -l
-
Namespaces:
kubectl get namespaces | wc -l
-
Persistent Volume Claims:
kubectl get pvc --all-namespaces | wc -l
-
Persistent Volumes:
kubectl get pv | wc -l
-
Custom Resource Definitions:
kubectl get crd | wc -l