Experimental version. The functionality may undergo significant changes. Compatibility with future versions is not guaranteed.
How to check module health?
To do this, you need to check the status of the pods in the d8-managed-postgres
namespace. All pods should be in the Running
or Completed
state.
kubectl -n d8-managed-postgres get pod -owide -w
Which PostgreSQL versions are supported by the module?
See Supported PostgreSQL versions.
How to connect to the database in the PG cluster?
All credentials for the connection are stored in the secret <cluster-name>-<database-name>
. For example, to get them for the database app
in cluster pg-test
in the pg-test
namespace, use the following command:
kubectl get secret -n pg-test pg-test-app -o go-template='{{range $k,$v := .data}}{{printf "%s: " $k}}{{if not $v}}{{$v}}{{else}}{{$v | base64decode}}{{end}}{{"\n"}}{{end}}'
Which database does the module create by default?
In every PG cluster the database app
is created by default with the owner (user) flant
. The password for the user is generated automatically and can be found in the secret <cluster-name>-<database-name>
.