diff --git a/helm/templates/db_pv.yaml b/helm/templates/db_pv.yaml index 733749d..0e85c95 100644 --- a/helm/templates/db_pv.yaml +++ b/helm/templates/db_pv.yaml @@ -6,9 +6,9 @@ metadata: {{- include "flatchart.labels" . | nindent 4 }} spec: capacity: - storage: 5Gi + storage: {{ .Values.pv.dbPv.storageRequest }} accessModes: - - ReadWriteOnce + - {{ .Values.pv.dbPv.accessModes }} persistentVolumeReclaimPolicy: Retain storageClassName: standard hostPath: diff --git a/helm/templates/web_pv.yaml b/helm/templates/web_pv.yaml index 67b7019..5bf249e 100644 --- a/helm/templates/web_pv.yaml +++ b/helm/templates/web_pv.yaml @@ -6,9 +6,9 @@ metadata: {{- include "flatchart.labels" . | nindent 4 }} spec: capacity: - storage: 2Gi + storage: {{ .Values.pvc.staticPvc.storageClass }} accessModes: - - ReadWriteMany + - {{ .Values.pvc.staticPvc.accessModes }} persistentVolumeReclaimPolicy: Retain storageClassName: standard hostPath: diff --git a/helm/values.yaml b/helm/values.yaml index 93c7188..b394e20 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -53,6 +53,13 @@ nginxDeployment: repository: nginx tag: latest replicas: 1 +pv: + dbPv: + storageRequest: 5Gi + accessModes: ReadWriteOnce + staticPv: + storageRequest: 2Gi + accessModes: ReadWriteMany pvc: dbPvc: storageClass: standard