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-cluster

Deleting Custom Resource Definitions (CRDs)

Destroy the Cluster - 图1NOTE

The CRDs will not be deleted by default when you uninstall the release unless you set crds.keep=false in the Helm installation command.

  1. kubectl delete crds greptimedbclusters.greptime.io
  2. kubectl delete crds greptimedbstandalones.greptime.io

Cleaning Up Namespaces

Finally, delete the associated namespaces:

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