Databases — Connecting with psql¶
1. Get the credentials¶
Open the item apps/<team>/postgres-<env>/<name> in the
DevOps portal (Secrets). Copy uri, or host / port /
database / username / password.
portis read-write;ro_portgoes to a read-only replica — use it for reporting and ad-hoc queries.
2. Connect¶
TODO
Confirm whether direct access from laptops over the VPN is allowed per environment, or whether
to use kubectl port-forward / a bastion.
Or keep the password out of your shell history with ~/.pgpass:
Monitoring¶
The database's drawer in the portal links to its Database dashboard in Grafana, filtered to this database and including query statistics (Monitoring).
GUI clients¶
DBeaver, DataGrip, TablePlus and pgAdmin all work with the same details. Set SSL mode to
require.