Preliminary version. The functionality may change, but the basic features will be preserved. Compatibility with future versions is ensured, but may require additional migration actions.

How to check the module’s operability?

To do this, you need to check the conditions status of the Postgres resource in the user namespace. All Type should be in True status

kubectl -n <users-ns> get postgres <cluster_name> -owide -w

Which PostgreSQL versions are supported by the module?

See Supported PostgreSQL Versions.

How to connect to the database in a PG cluster?

To connect to the database, services are available in the namespace: rw service - d8ms-pg-<cluster_name>-rw, which always points to the master instance and allows read/write operations ro service - d8ms-pg-<cluster_name>-ro, which points to slave instances and allows read operations from replica.

In case of creating a user with the storeCredsToSecret field specified, a connection string in the format <db_name>-dsn will be stored in the namespaced secret with the corresponding name

  test-dsn: 'pgsql:host=d8ms-pg-test-rw;port=5432;dbname=test;user=test-ro;password=123'