This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
сервис_postgresql [2025/10/28 07:40] val [Клиент psql] |
сервис_postgresql [2025/12/04 08:14] (current) val [Kubernetes] |
||
|---|---|---|---|
| Line 100: | Line 100: | ||
| kube1# watch kubectl -n my-pgcluster-ns get all | kube1# watch kubectl -n my-pgcluster-ns get all | ||
| - | kube1# ###kubectl -n my-pgcluster-ns exec -it pod/my-pgcluster-1 -- psql | + | kube1# kubectl -n my-pgcluster-ns exec -it pod/my-pgcluster-1 -- psql |
| kube1# ###psql postgres://keycloak:strongpassword@my-pgcluster-rw.my-pgcluster-ns:5432/keycloak | kube1# ###psql postgres://keycloak:strongpassword@my-pgcluster-rw.my-pgcluster-ns:5432/keycloak | ||
| Line 133: | Line 133: | ||
| postgres=# \l | postgres=# \l | ||
| + | postgres=> SELECT datname FROM pg_database; | ||
| postgres=# CREATE USER keycloak WITH PASSWORD 'strongpassword'; | postgres=# CREATE USER keycloak WITH PASSWORD 'strongpassword'; | ||