71 lines
1.2 KiB
YAML
71 lines
1.2 KiB
YAML
image:
|
|
registry: docker.io
|
|
repository: postgres
|
|
tag: "18.1-alpine3.22"
|
|
pullPolicy: IfNotPresent
|
|
|
|
# レプリケーション設定
|
|
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
|
|
port: 5432
|
|
|
|
postgres:
|
|
database: mydb
|
|
user: postgres
|
|
replicationUser: replicator
|
|
existingSecret: ""
|
|
passwordKey: "postgres-password"
|
|
replicationPasswordKey: "replication-password"
|
|
|
|
# バックアップ設定
|
|
backup:
|
|
enabled: false
|
|
schedule: "0 2 * * *" # 毎日午前2時
|
|
retention: 7 # 保持日数
|
|
storage:
|
|
storageClass: ""
|
|
size: 20Gi
|
|
resources:
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512Mi
|
|
requests:
|
|
cpu: 250m
|
|
memory: 256Mi
|