MongoShardDB Cleanup
-
Remove the Mongo ShardDB using the command below.
helm uninstall avx-mongo -n avx -
Delete the StatefulSet resource by executing the command below.
kubectl delete sts mongo-shareddb mongo-configdb mongo-routerdb -n avx --force -
Delete the specified Kubernetes services (service objects) in the cluster by
executing the command below.
kubectl delete svc mongo-shareddb-service mongo-configdb-service mongo-routerdb-service -n avx --force -
Delete the MongoShardDB related PVCs by executing the commands
below.
kubectl delete pvc mongo-configdb-persistent-storage-claim-mongo-configdb-0 mongo-configdb-persistent-storage-claim-mongo-configdb-1 mongo-configdb-persistent-storage-claim-mongo-configdb-2 -n avx --forcekubectl delete pvc mongo-shareddb-persistent-storage-claim-mongo-shareddb-0 mongo-shareddb-persistent-storage-claim-mongo-shareddb-1 mongo-shareddb-persistent-storage-claim-mongo-shareddb-2 -n avx --force -
Delete the MongoShardDB related kubernetes secrets using the commands
below.
kubectl delete secret mongo-key -n avx --force
