Slide 13
Slide 13 text
デモ(紙芝居)
13
4. PostgreSQL クラスタに接続する
> kubectl get secret cluster-sample-app -ojsonpath="{.data.pgpass}" | base64 -d
cluster-sample-rw:5432:app:app:7i2mRAGBmJGnsVZwwedUu8ZZCFhD30ZYTOvCygQkCOkg7LTbDhWqdC3o06jxlW1e
> kubectl exec --stdin --tty cluster-sample-1 -c postgres --\
psql -h cluster-sample-rw -p 5432 -U app app
Password for user app:
psql (17.2 (Debian 17.2-1.pgdg110+1))
SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, compression: off, ALPN: postgresql)
Type "help" for help.
app=>