ghcr.io/zalando/postgres-operator-ui:v1.14.0
ghcr.iolinux/amd64v1.14.0大小: 215.92 MB更新于 2026年11月8日
Postgres Operator
Postgres Operator 基于 https://github.com/zalando/patroni 驱动,可在 Kubernetes(K8s)上轻松运行高可用的 https://www.postgresql.org/ 集群。它仅通过 Postgres 清单(CRD)完成配置,可无缝接入自动化 CI/CD 流水线,无需直接访问 Kubernetes API,优先实现基础设施即代码而非手动操作。
Operator 特性
- Postgres 集群变更时执行滚动更新,包含快速的小版本升级
- 无需重启 Pod 即可实现卷在线扩容(支持 AWS EBS、PVC)
- 内置 PGBouncer 实现数据库连接池
- 支持快速原地大版本升级,支持全局升级所有集群
- 引导阶段提供 Pod 保护,支持配置维护窗口
- 支持在 AWS、GCS 和 Azure 上恢复和克隆 Postgres 集群
- 可额外配置将逻辑备份存储至 S3 或 GCS 存储桶
- 支持通过 S3 或 GCS WAL 归档文件、远程主机创建备用集群
- 可针对非云环境进行配置
- 在 K8s 中实现基础凭证与用户管理,简化应用部署流程
- 支持自定义 TLS 证书
- 提供 UI 界面,用于创建和编辑 Postgres 集群清单
- 兼容 OpenShift
- 支持多架构部署
PostgreSQL 特性
- 从 PostgreSQL 14 及以上版本开始,目前已支持至 PostgreSQL 18
- 基于 Patroni 实现流复制集群
- 支持通过 https://www.postgresql.org/docs/18/app-pgbasebackup.html 实现时间点恢复
- 预装预加载库:https://github.com/CyberDem0n/bg_mon、https://www.postgresql.org/docs/18/pgstatstatements.html、https://github.com/dimitri/pgextwlist、https://github.com/RafiaSabih/pg_auth_mon
- 内置大量常用 Postgres 扩展,包括 https://github.com/debezium/postgres-decoderbufs、https://github.com/HypoPG/hypopg、https://github.com/citusdata/pg_cron、https://github.com/reorg/pg_repack、https://github.com/pgpartman/pg_partman、https://github.com/powa-team/pg_stat_kcache、https://github.com/pgaudit/pgaudit、https://github.com/cybertec-postgresql/pgfaceting、https://github.com/pgq/pgq、https://github.com/pgvector/pgvector、https://github.com/okbob/plpgsql_check、https://github.com/plproxy/plproxy、https://postgis.net/、https://github.com/ChenHuajun/pg_roaringbitmap、https://github.com/pgaudit/set_user 和 https://github.com/timescale/timescaledb
Postgres Operator 由 Zalando 开发,已在生产环境中稳定运行超过五年。
支持的 Postgres 与 K8s 版本
| 发行版本 | 支持的 Postgres 版本 | 支持的 K8s 版本 | 依赖的 Golang 版本 |
|---|---|---|---|
| v2.0.3 | 14 → 18 | 1.27+ | 1.26.4 |
| v1.15.1 | 13 → 17 | 1.27+ | 1.25.3 |
| v1.14.0 | 13 → 17 | 1.27+ | 1.23.4 |
| v1.13.0 | 12 → 16 | 1.27+ | 1.22.5 |
| v1.12.0 | 11 → 16 | 1.27+ | 1.22.3 |
| v1.11.0 | 11 → 16 | 1.27+ | 1.21.7 |
快速上手
如需快速体验,可按照该教程中的说明操作。
从 v1 版本 Operator 迁移至 v2 版本
如果您从 v1.x 版本就开始使用 Postgres Operator(非常感谢),请务必在部署 v2 版本 Operator 之前阅读迁移文档。
文档
可访问 https://postgres-operator.readthedocs.io 查看适配浏览器的完整文档版本。
- 实现原理
- 安装指南
- K8s 中的 Postgres 使用体验
- Postgres Operator UI
- DBA 配置选项:从 RBAC 到备份
- Operator 的构建、调试与扩展
- 配置选项说明
- Postgres 清单参考
- 命令行选项与环境变量
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务