Skip to content

Uninstall Everest

No matter why you need to uninstall Everest, you can run the commands below to remove all the Everest resources including:

  • All Kubernetes objects created by Everest
  • All Docker containers created by Everest
  • All downloaded binaries and files like everestctl, quickstart.yml.

Warning

Uninstalling Everest will remove all database clusters and associated data from the Kubernetes cluster!

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:

Warning

Follow these cleanup instructions after unprovisioning Everest via CLI.

  1. Remove ALL created database clusters:

    kubectl delete db --all -n percona-everest
    
  2. Remove ALL PVCs:

    kubectl delete pvc --all -n percona-everest
    
  3. 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
    
  4. List ALL CRDs that will be removed:

    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}'
    
  5. 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
    
  6. Remove Everest OLM catalog:

    kubectl delete -f https://raw.githubusercontent.com/percona/percona-everest-cli/v0.3.0/data/crds/olm/percona-dbaas-catalog.yaml
    
  7. 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.3.0/data/crds/olm/crds.yaml
    
    kubectl delete -f https://raw.githubusercontent.com/percona/percona-everest-cli/v0.3.0/data/crds/olm/olm.yaml
    
  8. Stop Docker containers:

    docker compose -f quickstart.yml down
    
  9. 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.


Last update: 2023-10-16