diff --git a/manifests/postgres.yaml b/manifests/postgres.yaml index 486e03c..fc7f940 100644 --- a/manifests/postgres.yaml +++ b/manifests/postgres.yaml @@ -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