百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

cloudnative-pg

> 数据库
开源

CloudNativePG 是一款全面的平台,旨在无缝管理 PostgreSQL 数据库在 Kubernetes 环境中,涵盖整个运营生命周期。

9.1K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

CloudNativePG 是一款全面的平台,旨在无缝管理 PostgreSQL 数据库在 Kubernetes 环境中,涵盖整个运营生命周期。

[][cncf-landscape] [][latest-release] [][license] [][openssf] [][openssf] [![OpenSSF Scorecard Badge][openssf-scorecard-badge]][openssf-socrecard-view] [![Documentation][documentation-badge]][documentation] [][stackoverflow] [![FOSSA Status][fossa-badge]][fossa] # Welcome to the CloudNativePG Project! **CloudNativePG (CNPG)** is an open-source platform designed to seamlessly manage [PostgreSQL](https://www.postgresql.org/) databases in Kubernetes environments. It covers the entire operational lifecycle—from deployment to ongoing maintenance—through its core component, the CloudNativePG operator. ## Table of Contents - [Code of Conduct](CODE_OF_CONDUCT.md) - [Governance Policies](https://github.com/cloudnative-pg/governance/blob/main/GOVERNANCE.md) - [Contributing](CONTRIBUTING.md) - [Adopters](ADOPTERS.md) - [Commercial Support](https://cloudnative-pg.io/support/) - [License](LICENSE) ## Getting Started The best way to get started is the [Quickstart Guide](https://cloudnative-pg.io/docs/devel/quickstart/). ## Scope ### Mission CloudNativePG aims to increase PostgreSQL adoption within Kubernetes by making it an integral part of the development process and GitOps-driven CI/CD automation. ### Core Principles & Features Designed by PostgreSQL experts for Kubernetes administrators, CloudNativePG follows a Kubernetes-native approach to PostgreSQL primary/standby cluster management. Instead of relying on external high-availability tools (like Patroni, repmgr, or Stolon), it integrates directly with the Kubernetes API to automate database operations that a skilled DBA would perform manually. Key design decisions include: - Direct integration with Kubernetes API: The PostgreSQL cluster’s status is available directly in the `Cluster` resource, allowing users to inspect it via the Kubernetes API. - Operator pattern: The operator ensures that the desired PostgreSQL state is reconciled automatically, following Kubernetes best practices. - Immutable application containers: Updates follow an immutable infrastructure model, as explained in ["Why EDB Chose Immutable Application Containers"](https://www.enterprisedb.com/blog/why-edb-chose-immutable-application-containers). ### How CloudNativePG Works The operator continuously monitors and updates the PostgreSQL cluster state. Examples of automated actions include: - Failover management: If the primary instance fails, the operator elects a new primary, updates the cluster status, and orchestrates the transition. - Scaling read replicas: When the number of desired replicas changes, the operator provisions or removes resources such as persistent volumes, secrets, and config maps while managing streaming replication. - Service updates: Kubernetes remains the single source of truth, ensuring that PostgreSQL service endpoints are always up to date. - Rolling updates: When an image is updated, the operator follows a rolling strategy—first updating replica pods before performing a controlled switchover for the primary. CloudNativePG manages additional Kubernetes resources to enhance PostgreSQL management, including: `Backup`, `ClusterImageCatalog`, `Database`, `ImageCatalog`, `Pooler`, `Publication`, `ScheduledBackup`, and `Subscription`. ## Out of Scope - **Kubernetes only:** CloudNativePG is dedicated to vanilla Kubernetes maintained by the [Cloud Native Computing Foundation (CNCF)](https://kubernetes.io/). - **PostgreSQL only:** CloudNativePG is dedicated to vanilla PostgreSQL maintained by the [PostgreSQL Global Development Group (PGDG)](https://www.postgresql.org/about/). - **No support for forks:** Features from PostgreSQL forks will only be considered if they can be integrated as extensions or pluggable frameworks. - **Not a general-purpose database operator:** CloudNativePG does not support other databases (e.g., MariaDB). CloudNativePG can be extended via the [CNPG-I plugin interface](https://github.com/cloudnative-pg/cnpg-i). ## Communications Please refer to the [Getting in touch](https://github.com/cloudnative-pg#getting-in-touch) section on the GitHub organization page. ## Community Meetings Everyone is welcome, no invitation needed. For details, see the [Community Meetings](https://github.com/cloudnative-pg#cloudnativepg-community-meetings) section on the GitHub organization page. ## Resources - [Roadmap](ROADMAP.md) - [Website](https://cloudnative-pg.io) - [FAQ](docs/src/faq.md) - [Blog](https://cloudnative-pg.io/blog/) - [CloudNativePG plugin Interface (CNPG-I)](https://github.com/cloudnative-pg/cnpg-i). ## Adopters A list of publicly known users of the CloudNativePG operator is in [ADOPTERS.md](ADOPTERS.md). Help us grow our community and CloudNativePG by adding yourself and your organization to this list! ### CloudNativePG at KubeCon - March 25, 2026, KubeCon Europe 2026 in Amsterdam: ["Cloud Native Theater / Data on Kubernetes Day: From VMs to Kubernetes in a Large Global Bank: A DBA's Journey"](https://kccnceu2026.sched.com/event/2EG01/cloud-native-theater-data-on-kubernetes-day-from-vms-to-kubernetes-in-a-large-global-bank-a-dbas-journey-gabriele-bartolini-edb-laurent-parodi-hsbc) - Gabriele Bartolini, EDB & Laurent Parodi, HSBC - March 23, 2026, Data on Kubernetes Day at KubeCon Europe 2026 in Amsterdam: ["Beyond the DBaaS Trap: Achieving Data Sovereignty with Kubernetes and CloudNativePG"](https://colocatedeventseu2026.sched.com/event/2H5Uc/beyond-the-dbaas-trap-achieving-data-sovereignty-with-kubernetes-and-cloudnativepg-floor-drees-gabriele-bartolini-edb) - Floor Drees & Gabriele Bartolini, EDB - March 23, 2026, KubeCon Europe 2026 in Amsterdam: ["Project Lightning Talk: Five Minutes by CloudNativePG River"](https://kccnceu2026.sched.com/event/2EWIB/project-lightning-talk-five-minutes-by-cloudnativepg-river-gabriele-quaresima-contributor) - Gabriele Quaresima, Contributor - November 10, 2025, KubeCon North America 2025 in Atlanta: ["Project Lightning Talk: CloudNativePG: Running Postgres The Kubernetes Way"](https://www.youtube.com/watch?v=pYwYwehQX3U&t=4s) - Gabriele Bartolini, EDB - November 11, 2025, KubeCon North America 2025 in Atlanta: ["Modern PostgreSQL Authorization With Keycloak: Cloud Native Identity Meets Database Security"](https://www.youtube.com/watch?v=TYgPemq06fg) - Yoshiyuki Tabata, Hitachi, Ltd. & Gabriele Bartolini, EDB - November 13, 2025, KubeCon North America 2025 in Atlanta: ["Quorum-Based Consistency for Cluster Changes With CloudNativePG Operator"](https://www.youtube.com/watch?v=iQUOO3-JRK4&list=PLj6h78yzYM2MLSW4tUDO2gs2pR5UpiD0C&index=67) - Jeremy Schneider, GEICO Tech & Gabriele Bartolini, EDB - April 4, 2025, KubeCon Europe in London: ["Consistent Volume Group Snapshots, Unraveling the Magic"](https://sched.co/1tx8g) - Leonardo Cecchi (EDB) and Xing Yang (VMware) - November 11, 2024, Cloud Native Rejekts NA 2024: ["Maximising Microservice Databases with Kubernetes, Postgres, and CloudNativePG"](https://www.youtube.com/watch?v=uBzl_stoxoc&ab_channel=CloudNativeRejekts) - Gabriele Bartolini (EDB) and Leonardo Cecchi (EDB) - March 21, 2024, KubeCon Europe 2024 in Paris: ["Scaling Heights: Mastering Postgres Database Vertical Scalability with Kubernetes Storage Magic"](https://kccnceu2024.sched.com/event/1YeM4/scaling-heights-mastering-postgres-database-vertical-scalability-with-kubernetes-storage-magic-gabriele-bartolini-edb-gari-singh-google) - Gari Singh, Google & Gabriele Bartolini, EDB - March 19, 2024, Data on Kubernetes Day at KubeCon Europe 2024 in Paris: ["From Zero to Hero: Scaling Postgres in Kubernetes Using the Power of CloudNativePG"](https://colocatedeventseu2024.sched.com/event/1YFha/from-zero-to-hero-scaling-postgres-in-kubernetes-using-the-power-of-cloudnativepg-gabriele-bartolini-edb) - Gabriele Bartolini, EDB - November 7, 2023, KubeCon North America 2023 in Chicago: ["Disaster Recovery with Very Large Postgres Databases (in Kubernetes)"](https://kccncna2023.sched.com/event/1R2ml/disaster-recovery-with-very-large-postgres-databases-gabriele-bartolini-edb-michelle-au-google) - Michelle Au, Google & Gabriele Bartolini, EDB - October 27, 2022, KubeCon North America 2022 in Detroit: ["Data On Kubernetes, Deploying And Running PostgreSQL And Patterns For Databases In a Kubernetes Cluster"](https://kccncna2022.sched.com/event/182GB/data-on-kubernetes-deploying-and-running-postgresql-and-patterns-for-databases-in-a-kubernetes-cluster-chris-milsted-ondat-gabriele-bartolini-edb) - Chris Milsted, Ondat & Gabriele Bartolini, EDB ### Useful links - ["Quorum-Based Consistency for Cluster Changes With CloudNativePG Operator"](https://www.youtube.com/watch?v=sRF09UMAlsI) (webinar) - Jeremy Schneider, GEICO Tech & Leonardo Cecchi, EDB - [Data on Kubernetes (DoK) Community](https://dok.community/) - ["Cloud Neutral Postgres Databases with Kubernetes and CloudNativePG" by Gabriele Bartolini](https://www.cncf.io/blog/2024/11/20/cloud-neutral-postgres-databases-with-kubernetes-and-cloudnativepg/) (November 2024) - ["How to migrate your PostgreSQL database in Kubernetes with ~0 downtime from anywhere" by Gabriele Bartolini](https://gabrielebartolini.it/articles/2024/03/cloudnativepg-recipe-5-how-to-migrate-your-postgresql-database-in-kubernetes-with-~0-downtime-from-anywhere/) (March 2024) - ["Maximizing Microservice Databases with Kubernetes, Postgres, and CloudNativePG" by Gabriele Bartolini](https://gabrielebartolini.it/articles/2024/02/maximizing-microservice-databases-with-kubernetes-postgres-and-cloudnativepg/) (February 2024) - ["Recommended Architectures for PostgreSQL in Kubernetes" by Gabriele Bartolini](https://www.cncf.io/blog/2023/09/29/recommended-architectures-for-postgresql-in-kubernetes/) (September 2023) - ["The Current State of Major PostgreSQL Upgrades with CloudNativePG" by Gabriele Bartolini](https://www.enterprisedb.com/blog/current-state-major-postgresql-upgrades-cloudnativepg-kubernetes) (August 2023) - ["The Rise of the Kubernetes Native Database" by Jeff Carpenter](https://thenewstack.io/the-rise-of-the-kubernetes-native-database/) (December 2022) - ["Why Run Postgres in Kubernetes?" by Gabriele Bartolini](https://cloudnativenow.com/kubecon-cnc-eu-2022/why-run-postgres-in-kubernetes/) (May 2022) - ["Shift-Left Security: The Path To PostgreSQL On Kubernetes" by Gabriele Bartolini](https://www.tfir.io/shift-left-security-the-path-to-postgresql-on-kubernetes/) (April 2021) - ["Local Persistent Volumes and PostgreSQL usage in Kubernetes" by Gabriele Bartolini](https://www.2ndquadrant.com/en/blog/local-persistent-volumes-and-postgresql-usage-in-kubernetes/) (June 2020) ---

We are a Cloud Native Computing Foundation Sandbox project.

---

CloudNativePG was originally built and sponsored by EDB.

---

Postgres, PostgreSQL, and the Slonik Logo are trademarks or registered trademarks of the PostgreSQL Community Association of Canada, and used wi

GitHub Issues· 0 开放

在 GitHub 查看全部

暂无开放 Issues,或尚未同步最近议题。

核心特点

  • •Code of Conduct
  • •Governance Policies
  • •Contributing
  • •Adopters
  • •Commercial Support
  • •Direct integration with Kubernetes API: The PostgreSQL cluster’s status is
  • •Operator pattern: The operator ensures that the desired PostgreSQL state is
  • •Immutable application containers: Updates follow an immutable infrastructure
  • •Failover management: If the primary instance fails, the operator elects a new
  • •Scaling read replicas: When the number of desired replicas changes, the

> 标签

Goautomated-failoverbusiness-continuitydatabasedatabase-management

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库