GreptimeDB Operator

安装 GreptimeDB Operator

通过利用 Operator pattern, GreptimeDB Operator 可以有效管理 Kubernetes 上的 GreptimeDB 集群。 这个 operator 可以抽象出维护高可用 GreptimeDB 集群的模式。

你可以使用 Helm 来安装 GreptimeDB Operator。

1. helm upgrade \
2. --install oci://greptime-registry.cn-hangzhou.cr.aliyuncs.com/charts/greptimedb-operator greptimedb-operator \
3. --set image.registry=greptime-registry.cn-hangzhou.cr.aliyuncs.com \
4. --create-namespace \
5. -n greptimedb-admin

CRD 的安装和升级

Helm 被设计为无法自动更新 <chart>/crds,为了方便部署,GreptimeDB 支持使用 Chart 自动安装和升级 CRD。你可以在安装 Chart 时使用 --set crds.install=false 来禁用这个行为:

1. helm upgrade \
2. --install oci://greptime-registry.cn-hangzhou.cr.aliyuncs.com/charts/greptimedb-operator greptimedb-operator \
3. --set image.registry=greptime-registry.cn-hangzhou.cr.aliyuncs.com \
4. --set crds.install=false \
5. --create-namespace \
6. -n greptimedb-admin \
7. --set crds.install=false

当你卸载 GreptimeDB Operator 时,默认不会删除 CRD。

Next steps