Refer to the Installation and upgrades topic in the CloudNativePG documentation and use this topic for specifics regarding EDB Postgres for Kubernetes usage.
Don't want to install anything locally just yet? Try a demonstration directly in your browser:
Red Hat OpenShift Container Platform users can test the certified operator for EDB Postgres for Kubernetes on the Red Hat CodeReady Containers (CRC) for OpenShift.
The instructions contained in this section are for demonstration, testing, and practice purposes only and must not be used in production.
Like any other Kubernetes application, EDB Postgres for Kubernetes is deployed using regular manifests written in YAML.
By following these instructions you should be able to start a PostgreSQL cluster on your local Kubernetes/Openshift installation and experiment with it.
If you are running Openshift, use
oc every time
kubectl is mentioned
in this documentation.
kubectl commands are compatible with
This section covers the installation of CRC. For Kind or Minikube, refer to the upstream documentation for CloudNativePG.
Download Red Hat CRC and move the binary inside a directory in your
Run the following commands:
crc startoutput explains how to proceed.
Execute the output of the
Log in as
kubeadminwith the printed
oc logincommand. You can also open the web console running
crc console. User and password are the same as for the
CRC doesn't come with a StorageClass, so one has to be configured. Follow the Dynamic volume provisioning wiki page and install
Now that you have a Kubernetes or OpenShift installation up and running on your laptop, you can proceed with EDB Postgres for Kubernetes installation.
Refer to the Installation and upgrades topic in the CloudNativePG documentation and then proceed with the deployment of a PostgreSQL cluster.
As with any other deployment in Kubernetes, to deploy a PostgreSQL cluster
you need to apply a configuration file that defines your desired
cluster-example.yaml sample file
defines a simple
Cluster using the default storage class to allocate
For more detailed information about the available options, please refer to the "API Reference" section.