Skip to content

Commit

Permalink
Update storage and access modes for PV and PVC
Browse files Browse the repository at this point in the history
  • Loading branch information
Flagro committed Mar 2, 2024
1 parent a75d7ba commit ecb18ed
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions helm/templates/db_pv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ metadata:
{{- include "flatchart.labels" . | nindent 4 }}
spec:
capacity:
storage: 5Gi
storage: {{ .Values.pv.dbPv.storageRequest }}

Check failure on line 9 in helm/templates/db_pv.yaml

View workflow job for this annotation

GitHub Actions / python-lint

9:16 [braces] too many spaces inside braces

Check failure on line 9 in helm/templates/db_pv.yaml

View workflow job for this annotation

GitHub Actions / python-lint

9:47 [braces] too many spaces inside braces
accessModes:
- ReadWriteOnce
- {{ .Values.pv.dbPv.accessModes }}

Check failure on line 11 in helm/templates/db_pv.yaml

View workflow job for this annotation

GitHub Actions / python-lint

11:9 [braces] too many spaces inside braces
persistentVolumeReclaimPolicy: Retain
storageClassName: standard
hostPath:
Expand Down
4 changes: 2 additions & 2 deletions helm/templates/web_pv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 7 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ecb18ed

Please sign in to comment.