PGO(The Postgres Operator from Crunchy Data)5.3.1がリリースされたのでアップグレード。
PostgreSQL 15.2、PgBouncer 1.18がサポートされている。
アップグレード方法はこれまでと同じ。
kustomizeマニフェストの変更点は下記の通り。
1 file changed, 4 insertions(+), 4 deletions(-)
pgo5/kustomize/hip15a/postgres.yaml | 8 ++++----
modified pgo5/kustomize/hip15a/postgres.yaml
@@ -3,7 +3,7 @@ kind: PostgresCluster
metadata:
name: hip15a
spec:
- image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-15.1-0
+ image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-15.2-0
postgresVersion: 15
instances:
- name: hip15a
@@ -27,7 +27,7 @@ spec:
proxy:
pgBouncer:
- image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:ubi8-1.17-5
+ image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:ubi8-1.18-0
replicas: 1
affinity:
podAntiAffinity:
@@ -42,7 +42,7 @@ spec:
backups:
pgbackrest:
- image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.41-2
+ image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.41-4
configuration:
- secret:
name: pgo-s3-creds
バージョン確認
kubectl pgo -n pgo5 version
Client Version: v0.2.0
Operator Version: v5.3.1
PGPASSWORD=$(kubectl get secrets -n pgo5 hip15a-pguser-postgres -o go-template='{{.data.password | base64decode}}') psql -h localhost -U postgres
psql (15.2 (Homebrew))
SSL接続(プロトコル: TLSv1.3、暗号化方式: TLS_AES_256_GCM_SHA384、圧縮: オフ)
"help"でヘルプを表示します。
postgres=# select version();
version
---------------------------------------------------------------------------------------------------------
PostgreSQL 15.2 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-16), 64-bit
(1 行)