销毁集群
本指南将删除部署 Kubernetes 章节中根据文档所创建的所有资源。
卸载 GreptimeDB Operator
执行以下命令使用 Helm 卸载 GreptimeDB Operator:
1. helm uninstall greptimedb-operator -n greptimedb-admin
卸载 GreptimeDB 集群
对于使用 Helm 安装的 GreptimeDB 集群,请使用以下命令:
1. helm uninstall greptimedb -n greptimedb-cluster
如果使用 kubectl 安装了 GreptimeDB 集群,请使用以下命令进行删除:
1. kubectl delete greptimedbcluster greptimedb -n greptimedb-cluster
卸载 etcd
请运行以下命令使用 Helm 删除 etcd:
1. # 卸载 etcd。
2. helm uninstall etcd -n etcd-cluster
删除自定义资源定义 (CRDs)
提示
除非在 Helm 安装命令中设置了 crds.keep=false,否则卸载发布时默认不会删除 CRDs。
1. kubectl delete crds greptimedbclusters.greptime.io
2. kubectl delete crds greptimedbstandalones.greptime.io
清理 namespace
最后,删除相关的命名空间:
1. kubectl delete namespace greptimedb-admin
2. kubectl delete namespace etcd-cluster
3. kubectl delete namespace greptimedb-cluster
