Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

CloudNativePG is a Kubernetes operator that covers the full lifecycle of a PostgreSQL database cluster with a primary/standby architecture, using native streaming replication

License

NotificationsYou must be signed in to change notification settings

EnterpriseDB/cloudnative-pg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

CNCF LandscapeLatest ReleaseGitHub LicenseOpenSSF Best PracticesOpenSSF Scorecard BadgeDocumentationStack OverflowFOSSA Status

Welcome to the CloudNativePG Project!

CloudNativePG (CNPG) is an open-source platform designed to seamlesslymanagePostgreSQL databases in Kubernetesenvironments. It covers the entire operational lifecycle—from deployment toongoing maintenance—through its core component, the CloudNativePG operator.

Table of Contents

Getting Started

The best way to get started is theQuickstart Guide.

Scope

Mission

CloudNativePG aims to increase PostgreSQL adoption within Kubernetes by makingit an integral part of the development process and GitOps-driven CI/CDautomation.

Core Principles & Features

Designed by PostgreSQL experts for Kubernetes administrators, CloudNativePGfollows a Kubernetes-native approach to PostgreSQL primary/standby clustermanagement. Instead of relying on external high-availability tools (likePatroni, repmgr, or Stolon), it integrates directly with the Kubernetes API toautomate database operations that a skilled DBA would perform manually.

Key design decisions include:

  • Direct integration with Kubernetes API: The PostgreSQL cluster’s status isavailable directly in theCluster resource, allowing users to inspect itvia the Kubernetes API.
  • Operator pattern: The operator ensures that the desired PostgreSQL state isreconciled automatically, following Kubernetes best practices.
  • Immutable application containers: Updates follow an immutable infrastructuremodel, as explained in"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 newprimary, updates the cluster status, and orchestrates the transition.
  • Scaling read replicas: When the number of desired replicas changes, theoperator 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, ensuringthat PostgreSQL service endpoints are always up to date.
  • Rolling updates: When an image is updated, the operator follows a rollingstrategy—first updating replica pods before performing a controlledswitchover for the primary.

CloudNativePG manages additional Kubernetes resources to enhance PostgreSQLmanagement, including:Backup,ClusterImageCatalog,Database,ImageCatalog,Pooler,Publication,ScheduledBackup, andSubscription.

Out of Scope

  • Kubernetes only: CloudNativePG is dedicated to vanilla Kubernetesmaintained by theCloud Native Computing Foundation(CNCF).
  • PostgreSQL only: CloudNativePG is dedicated to vanilla PostgreSQLmaintained by thePostgreSQL Global Development Group(PGDG).
  • No support for forks: Features from PostgreSQL forks will only beconsidered if they can be integrated as extensions or pluggable frameworks.
  • Not a general-purpose database operator: CloudNativePG does not supportother databases (e.g., MariaDB).

CloudNativePG can be extended via theCNPG-I plugin interface.

Communications

Resources

Adopters

A list of publicly known users of the CloudNativePG operator is inADOPTERS.md.Help us grow our community and CloudNativePG by adding yourself and yourorganization to this list!

CloudNativePG at KubeCon

Useful links


We are aCloud Native Computing Foundation Sandbox project.

CNCF logo


CloudNativePG was originally built and sponsored byEDB.

EDB logo


Postgres, PostgreSQL, and the Slonik Logoare trademarks or registered trademarks of the PostgreSQL Community Associationof Canada, and used with their permission.


About

CloudNativePG is a Kubernetes operator that covers the full lifecycle of a PostgreSQL database cluster with a primary/standby architecture, using native streaming replication

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go98.4%
  • Shell1.2%
  • Other0.4%

[8]ページ先頭

©2009-2025 Movatter.jp