Skip to main content

PostgreSQL

PostgreSQL is a relational database management system (RDBMS) that has become very popular because of its many useful features. It provides a strong, stable platform for storing, organizing, and managing large volumes of structured data. Its SQL compliance and support for a wide range of extensions and plugins make it a good choice for all users.

In the Arvancloud Cloud Container, you can set up a PostgreSQL cluster using operators. This operator uses version 1.23.1 of the CloudNativePG project.

Save the following file with a name of your choice, such as postgrecluster.yaml:

apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: cluster-example
spec:
instances: 3

storage:
size: 1Gi

Then run the following command to deploy it:

kubectl apply -f postgrecluster.yaml -n [namespace]

Replace [namespace] with your project's name in the Arvancloud Cloud Container.

For more details and examples, see the PostgreSQL operator documentation.