Destroy the Cluster

This guide will remove all resources created by the documentation in this Deploy on Kubernetes chapter.

Uninstall the GreptimeDB Operator

To uninstall the GreptimeDB Operator using Helm, execute:

  1. helm uninstall greptimedb-operator -n greptimedb-admin

uninstall the GreptimeDB Cluster

For Helm installations of the GreptimeDB cluster, use:

  1. helm uninstall greptimedb -n greptimedb-cluster

If the GreptimeDB cluster was installed with kubectl, remove it with:

  1. kubectl delete greptimedbcluster greptimedb -n greptimedb-cluster

Uninstall etcd

To remove etcd with Helm, run:

  1. # Uninstall etcd.
  2. helm uninstall etcd -n etcd

Deleting Custom Resource Definitions (CRDs)

  1. kubectl delete crds greptimedbclusters.greptime.io

Cleaning Up Namespaces

Finally, delete the associated namespaces:

  1. kubectl delete namespace greptimedb-admin
  2. kubectl delete namespace etcd
  3. kubectl delete namespace greptimedb-cluster