You are looking at the documentation of a prior release. To read the documentation of the latest release, please
visit here.
New to KubeDB? Please start here.
Please follow the steps below to uninstall KubeDB:
$ kubectl delete deployment -l app=kubedb -n <operator-namespace>
$ kubectl delete service -l app=kubedb -n <operator-namespace>
# Delete RBAC objects, if --rbac flag was used.
$ kubectl delete serviceaccount -l app=kubedb -n <operator-namespace>
$ kubectl delete clusterrolebindings -l app=kubedb -n <operator-namespace>
$ kubectl delete clusterrole -l app=kubedb -n <operator-namespace>
$ kubectl get pods --all-namespaces -l app=kubedb
kubectl get postgres.kubedb.com --all-namespaces -o yaml > postgres.yaml
kubectl get elasticsearch.kubedb.com --all-namespaces -o yaml > elastic.yaml
kubectl get snapshot.kubedb.com --all-namespaces -o yaml > snapshot.yaml
kubectl get dormant-database.kubedb.com --all-namespaces -o yaml > data.yaml
kubectl delete postgres.kubedb.com --all --cascade=false
kubectl delete elasticsearch.kubedb.com --all --cascade=false
kubectl delete snapshot.kubedb.com --all --cascade=false
kubectl delete dormant-database.kubedb.com --all --cascade=false
kubectl delete crd -l app=kubedb