跳到主要内容
版本:nightly

销毁集群

本指南将删除部署 Kubernetes 章节中根据文档所创建的所有资源。

卸载 GreptimeDB Operator

执行以下命令使用 Helm 卸载 GreptimeDB Operator:

helm uninstall greptimedb-operator -n greptimedb-admin

卸载 GreptimeDB 集群

对于使用 Helm 安装的 GreptimeDB 集群,请使用以下命令:

helm uninstall greptimedb -n greptimedb-cluster

如果使用 kubectl 安装了 GreptimeDB 集群,请使用以下命令进行删除:

kubectl delete greptimedbcluster greptimedb -n greptimedb-cluster

卸载 etcd

请运行以下命令使用 Helm 删除 etcd:

# 卸载 etcd。
helm uninstall etcd -n etcd-cluster

删除自定义资源定义 (CRDs)

提示

除非在 Helm 安装命令中设置了 crds.keep=false,否则卸载发布时默认不会删除 CRDs。

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

清理 namespace

最后,删除相关的命名空间:

kubectl delete namespace greptimedb-admin
kubectl delete namespace etcd-cluster
kubectl delete namespace greptimedb-cluster