From 6b7301e9f5692cd2f0e71bc74bb4c2e0be61c304 Mon Sep 17 00:00:00 2001 From: pieter Date: Sat, 7 Feb 2026 00:15:38 +0000 Subject: [PATCH] =?UTF-8?q?values.yaml=20=E3=82=92=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- values.yaml | 68 +++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 53 insertions(+), 15 deletions(-) diff --git a/values.yaml b/values.yaml index 4308f6f..0ca8f7f 100644 --- a/values.yaml +++ b/values.yaml @@ -4,7 +4,42 @@ image: tag: "18.1-alpine3.22" pullPolicy: IfNotPresent -replicaCount: 1 +# レプリケーション設定 +replication: + enabled: false + replicaCount: 2 + synchronousCommit: "on" + numSynchronousReplicas: 1 + +# プライマリ設定 +primary: + resources: + limits: + cpu: 1000m + memory: 1Gi + requests: + cpu: 500m + memory: 512Mi + persistence: + enabled: true + storageClass: "" + accessMode: ReadWriteOnce + size: 8Gi + +# レプリカ設定 +replica: + resources: + limits: + cpu: 800m + memory: 1Gi + requests: + cpu: 400m + memory: 512Mi + persistence: + enabled: true + storageClass: "" + accessMode: ReadWriteOnce + size: 8Gi service: type: ClusterIP @@ -13,20 +48,23 @@ service: postgres: database: mydb user: postgres - # パスワードは必ずSecretで管理してください + replicationUser: replicator existingSecret: "" passwordKey: "postgres-password" + replicationPasswordKey: "replication-password" -persistence: - enabled: true - storageClass: "" - accessMode: ReadWriteOnce - size: 8Gi - -resources: - limits: - cpu: 1000m - memory: 1Gi - requests: - cpu: 500m - memory: 512Mi +# バックアップ設定 +backup: + enabled: false + schedule: "0 2 * * *" # 毎日午前2時 + retention: 7 # 保持日数 + storage: + storageClass: "" + size: 20Gi + resources: + limits: + cpu: 500m + memory: 512Mi + requests: + cpu: 250m + memory: 256Mi