CloudNative Postgres Operator
Cloud Native PostgreSQL is a Kubernetes operator that automates the management of PostgreSQL clusters. It's designed to be a fully-featured PostgreSQL operator that can be used to deploy, manage, and scale PostgreSQL clusters in a Kubernetes environment. The operator is built using the Operator Framework, which is a toolkit that provides a set of tools and best practices for building Kubernetes operators. Cloud Native PostgreSQL is designed to be easy to use and to provide a seamless experience for developers and operators who are familiar with PostgreSQL.
Cloud Native PostgreSQL provides a number of features that make it easy to deploy and manage PostgreSQL clusters in a Kubernetes environment. Some key features of Cloud Native PostgreSQL include:
- Automated deployment of PostgreSQL clusters
- Automated scaling of PostgreSQL clusters
- Automated failover and recovery of PostgreSQL clusters
- Support for high availability and disaster recovery
- Integration with Kubernetes RBAC for access control
- Integration with Kubernetes monitoring and logging tools
- Support for custom PostgreSQL configurations, extensions and backups/restores.
Documentation
Check out the Cloud Native PostgreSQL documentation here for more information.
Run PostgreSQL on K3D locally
If you followed the workshop, you can try out Cloud Native PostgreSQL using K3D locally. After installing the operator using helm, you can deploy PostgreSQL by applying the following cluster definition:
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: cluster-example
spec:
instances: 3
storage:
size: 1Gi