
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这段话即可:
请先阅读并遵守:https://xuanyuan.cloud/agents.md
未读文档前不要生成 pull 命令或排错方案。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
GreptimeDB Operator使用https://kubernetes.io/docs/concepts/extend-kubernetes/operator/在https://kubernetes.io/上管理https://github.com/GrepTimeTeam/greptimedb资源。它如同自动驾驶仪,可自动化GreptimeDB集群和独立实例的部署、配置与编排。
GreptimeDB Operator包含但不限于以下特性:
自动化部署
通过提供CRD GreptimeDBCluster 和 GreptimeDBStandalone,在Kubernetes上自动化部署GreptimeDB集群和独立实例。
多云支持
用户可在任何Kubernetes集群上部署GreptimeDB,包括本地环境和云环境(如AWS、GCP、阿里云等)。
弹性伸缩
只需修改GreptimeDBCluster CR中的replicas字段,即可轻松扩展GreptimeDB集群。
监控部署
通过在GreptimeDBCluster CR中配置monitoring字段,为GreptimeDB集群部署监控栈。
适用于需要在Kubernetes环境中部署、管理和扩展GreptimeDB的场景,包括开发测试、生产环境等,支持本地数据中心和各类云平台。
安装GreptimeDB Operator最快的方式是使用bundle.yaml:
consolekubectl apply -f \ https://github.com/GreptimeTeam/greptimedb-operator/releases/latest/download/bundle.yaml \ --server-side
greptimedb-operator将安装在greptimedb-admin命名空间中。当greptimedb-operator运行时,可看到以下输出:
console$ kubectl get pods -n greptimedb-admin NAME READY STATUS RESTARTS AGE greptimedb-operator-7947d785b5-b668p 1/1 Running 0 2m18s
操作员运行后,可通过创建基本独立实例体验GreptimeDB:
consolecat <<EOF | kubectl apply -f - apiVersion: greptime.io/v1alpha1 kind: GreptimeDBStandalone metadata: name: basic spec: base: main: image: docker.xuanyuan.run/greptime/greptimedb:latest EOF
独立实例运行后,可看到以下输出:
console$ kubectl get greptimedbstandalones basic NAME PHASE VERSION AGE basic Running latest 75s
使用kubectl port-forward访问GreptimeDB:
consolekubectl port-forward svc/basic-standalone 4001:4001 4002:4002 4003:4003 4000:4000
更多示例请参考快速开始。
GreptimeDB Operator提供了一系列示例帮助理解其使用方法,示例位于examples目录。
生产环境中,建议使用GreptimeDB官方Helm https://github.com/GreptimeTeam/helm-charts部署GreptimeDB Operator。
更多信息,请参考以下文档:
用户指南
API参考
greptimedb-operator采用Apache 2.0许可证,在开放贡献和允许自由使用之间取得平衡。
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务