diff --git a/infra/helm/meshdb/templates/postgres.yaml b/infra/helm/meshdb/templates/postgres.yaml index 9f55c0ef..19bc5f51 100644 --- a/infra/helm/meshdb/templates/postgres.yaml +++ b/infra/helm/meshdb/templates/postgres.yaml @@ -72,7 +72,7 @@ spec: volumes: - name: pg-data-vol persistentVolumeClaim: - claimName: {{ .Values.pg.pvc_name }} + claimName: {{ .Values.pg.pvc_name_legacy }} {{- with .Values.pg.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/infra/helm/meshdb/templates/postgres_pvc.yaml b/infra/helm/meshdb/templates/postgres_pvc.yaml index 78116336..57634ac7 100644 --- a/infra/helm/meshdb/templates/postgres_pvc.yaml +++ b/infra/helm/meshdb/templates/postgres_pvc.yaml @@ -1,12 +1,25 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: - name: {{ .Values.pg.pvc_name }} + name: {{ .Values.pg.pvc_name_legacy }} namespace: {{ .Values.meshdb_app_namespace }} spec: accessModes: - ReadWriteOnce storageClassName: longhorn + resources: + requests: + storage: {{ .Values.pg.pvc_size }} +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: {{ .Values.pg.pvc_name }} + namespace: {{ .Values.meshdb_app_namespace }} +spec: + accessModes: + - ReadWriteOnce + storageClassName: longhorn-encrypted resources: requests: storage: {{ .Values.pg.pvc_size }} \ No newline at end of file diff --git a/infra/helm/meshdb/values.yaml b/infra/helm/meshdb/values.yaml index cc7af43b..2f7fe3f8 100644 --- a/infra/helm/meshdb/values.yaml +++ b/infra/helm/meshdb/values.yaml @@ -7,7 +7,8 @@ pg: user: meshdb user_ro: meshdb_ro port: "5432" - pvc_name: "meshdb-postgres-pvc" + pvc_name_legacy: "meshdb-postgres-pvc" + pvc_name: "meshdb-postgres-encyrpted-pvc" pvc_size: "20Gi" liveness_probe: "true" podSecurityContext: {}