Uninstall Everest¶
You can run the commands below to remove all Everest resources including:
- All Kubernetes objects created by Everest
- All downloaded binaries and files like everestctl.
Warning
Uninstalling Everest will remove all database clusters and associated data from the Kubernetes cluster, including backups!
Before proceeding with Custom Resource Definitions (CRD) cleanup, check that any custom resources linked with CRDs are removed. This is a crucial step because deleting CRDs can potentially cause issues with any custom resources that depend on those definitions within the cluster.
To uninstall Everest:
-
Uninstall Everest:
everestctl uninstall -
Remove ALL created database clusters:
kubectl delete db --all -n percona-everest -
Remove ALL backups:
kubectl -n percona-everest delete job --all kubectl -n percona-everest delete pxc-backup --all kubectl -n percona-everest delete psmdb-backup --all kubectl -n percona-everest delete pg-backup --all kubectl -n percona-everest delete pod --all -
Remove ALL PVCs:
kubectl delete pvc --all -n percona-everest -
List CSVs and remove those with a “percona” and “everest” prefix, or remove ALL operators:
kubectl delete sub --all -n percona-everest kubectl delete ip --all -n percona-everest kubectl delete csv --all -n percona-everest -
List ALL CRDs that will be removed using the following command. Keep in mind that this command will exclusively list CRDs linked to Everest and skip any CRDs associated with standalone Percona Operators. This distinction is crucial because if there are instances of standalone Percona Operators existing within any namespace in your Kubernetes environment, you should avoid inadvertently deleting their CRDs.
kubectl get crd -l="operators.coreos.com/percona-server-mongodb-operator.percona-everest" --ignore-not-found=true --no-headers | awk '{print $1}' && kubectl get crd -l="operators.coreos.com/percona-postgresql-operator.percona-everest" --ignore-not-found=true --no-headers | awk '{print $1}' && kubectl get crd -l="operators.coreos.com/percona-xtradb-cluster-operator.percona-everest" --ignore-not-found=true --no-headers | awk '{print $1}' -
Remove ALL created CRD individually, or use:
echo $(kubectl get crd -l="operators.coreos.com/percona-server-mongodb-operator.percona-everest" --ignore-not-found=true --no-headers | awk '{print $1}' && kubectl get crd -l="operators.coreos.com/percona-postgresql-operator.percona-everest" --ignore-not-found=true --no-headers | awk '{print $1}' && kubectl get crd -l="operators.coreos.com/percona-xtradb-cluster-operator.percona-everest" --ignore-not-found=true --no-headers | awk '{print $1}') | xargs kubectl delete crd -
Remove Everest OLM catalog:
kubectl delete -f https://raw.githubusercontent.com/percona/percona-everest-cli/v0.4.1/data/crds/olm/percona-dbaas-catalog.yaml -
Remove OLM installation (Do not delete it if it was installed without Everest support):
kubectl delete -f https://raw.githubusercontent.com/percona/percona-everest-cli/v0.4.1/data/crds/olm/crds.yamlkubectl delete -f https://raw.githubusercontent.com/percona/percona-everest-cli/v0.4.1/data/crds/olm/olm.yaml -
Remove percona-everest namespace:
kubectl delete ns percona-everest
Get expert help¶
If you need assistance, visit the community forum for comprehensive and free database knowledge, or contact our Percona Database Experts for professional support and services.