User Tools

Site Tools


сервис_postgresql

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
сервис_postgresql [2025/10/06 06:34]
val [Kubernetes]
сервис_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 125: Line 125:
  
 # sudo -u postgres psql # sudo -u postgres psql
 +
 +postgres=# SELECT version();
  
 postgres=# ALTER USER postgres WITH PASSWORD '​strongpassword';​ postgres=# ALTER USER postgres WITH PASSWORD '​strongpassword';​
Line 131: 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';​
сервис_postgresql.1759721655.txt.gz · Last modified: 2025/10/06 06:34 by val