Skip to content

Commit

Permalink
Standartize the persistent volume variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Flagro committed Mar 2, 2024
1 parent fa09795 commit 5e9f30c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 18 deletions.
6 changes: 3 additions & 3 deletions helm/templates/db_pv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ spec:
capacity:
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:
- {{ .Values.pv.dbPv.accessModes }}
persistentVolumeReclaimPolicy: {{ .Values.pv.dbPv.reclaimPolicy }}
storageClassName: {{ .Values.pv.dbPv.storageClass }}
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
storageClassName: standard
hostPath:
path: {{ .Values.pv.dbPv.hostPath | quote }}

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

View workflow job for this annotation

GitHub Actions / python-lint

15:13 [braces] too many spaces inside braces

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

View workflow job for this annotation

GitHub Actions / python-lint

15:46 [braces] too many spaces inside braces
2 changes: 1 addition & 1 deletion helm/templates/db_pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ spec:
resources:
requests:
storage: {{ .Values.pvc.dbPvc.storageRequest | quote }}
storageClassName: {{ .Values.pvc.dbPvc.storageClass | quote }}
storageClassName: standard
6 changes: 3 additions & 3 deletions helm/templates/web_pv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ spec:
capacity:
storage: {{ .Values.pv.staticPv.storageRequest }}
accessModes:
- {{ .Values.pv.staticPv.accessModes }}
persistentVolumeReclaimPolicy: {{ .Values.pv.staticPv.reclaimPolicy }}
storageClassName: {{ .Values.pv.staticPv.storageClass }}
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
storageClassName: standard
hostPath:
path: {{ .Values.pv.staticPv.hostPath | quote }}
2 changes: 1 addition & 1 deletion helm/templates/web_pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ spec:
resources:
requests:
storage: {{ .Values.pvc.staticPvc.storageRequest | quote }}
storageClassName: {{ .Values.pvc.staticPvc.storageClass | quote }}
storageClassName: standard
10 changes: 0 additions & 10 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ backendService:
type: ClusterIP
dbConfig:
postgresHost: phrinifluent-db-service
postgresName: postgres
postgresPort: "5432"
dbDeployment:
phrinifluentDb:
image:
Expand Down Expand Up @@ -56,22 +54,14 @@ nginxDeployment:
pv:
dbPv:
storageRequest: 5Gi
storageClass: standard
reclaimPolicy: Retain
accessModes: ReadWriteOnce
hostPath: /var/lib/docker/volumes/phrinifluent-db-pv/_data
staticPv:
storageRequest: 2Gi
storageClass: standard
reclaimPolicy: Retain
accessModes: ReadWriteMany
hostPath: /var/lib/docker/volumes/phrinifluent-static-pv/_data
pvc:
dbPvc:
storageClass: standard
storageRequest: 5Gi
staticPvc:
storageClass: standard
storageRequest: 2Gi
staticService:
ports:
Expand Down

0 comments on commit 5e9f30c

Please sign in to comment.