update postgres

This commit is contained in:
2023-01-12 08:45:38 +11:00
parent 396776a8e1
commit ea2d49bae2
+16 -16
View File
@@ -21,11 +21,10 @@ spec:
postgresqlDatabase: home
global:
storageClass: nfs-client
# storageClass: local-storage
postgresql:
auth:
database: junv-db
# TODO: need to UPDATE DATA before update this image tag
# error: DETAIL: The data directory was initialized by PostgreSQL version 11, which is not compatible with this version 14.1.
image:
@@ -96,22 +95,23 @@ spec:
cpu: 250m
persistence:
mountPath: /bitnami/postgresql
storageClass: nfs-client
size: 20Gi
# nodeSelector:
# kubernetes.io/hostname: server-1
# tolerations:
# - key: "node"
# operator: "Equal"
# value: "special"
# effect: "NoSchedule"
# - key: node-role.kubernetes.io/master
# operator: Equal
# value: ""
# effect: NoSchedule
storageClass: local-storage
matchLabels:
name: postgres
nodeSelector:
kubernetes.io/hostname: server-3
tolerations:
- key: "node"
operator: "Equal"
value: "special"
effect: "NoSchedule"
- key: node-role.kubernetes.io/master
operator: Equal
value: ""
effect: NoSchedule
readReplicas:
replicaCount: 0
replicaCount: 1
persistence:
enabled: true
storageClass: nfs-client