Skip to content

Commit f184e26

Browse files
committed
add webapp extraVolumes and extraVolumeMounts
1 parent f699c86 commit f184e26

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

hosting/k8s/helm/templates/webapp.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,9 @@ spec:
324324
volumeMounts:
325325
- name: shared
326326
mountPath: /home/node/shared
327+
{{- with .Values.webapp.extraVolumeMounts }}
328+
{{- toYaml . | nindent 12 }}
329+
{{- end }}
327330
volumes:
328331
- name: shared
329332
{{- if .Values.persistence.shared.enabled }}
@@ -332,6 +335,9 @@ spec:
332335
{{- else }}
333336
emptyDir: {}
334337
{{- end }}
338+
{{- with .Values.webapp.extraVolumes }}
339+
{{- toYaml . | nindent 8 }}
340+
{{- end }}
335341
{{- with .Values.webapp.nodeSelector }}
336342
nodeSelector:
337343
{{- toYaml . | nindent 8 }}

hosting/k8s/helm/values.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,26 @@ webapp:
115115
# name: my-secret
116116
# key: secret-key
117117

118+
# Extra volumes for the webapp pod
119+
extraVolumes:
120+
[]
121+
# - name: config-volume
122+
# configMap:
123+
# name: my-config
124+
# - name: secret-volume
125+
# secret:
126+
# secretName: my-secret
127+
128+
# Extra volume mounts for the webapp container
129+
extraVolumeMounts:
130+
[]
131+
# - name: config-volume
132+
# mountPath: /etc/config
133+
# readOnly: true
134+
# - name: secret-volume
135+
# mountPath: /etc/secrets
136+
# readOnly: true
137+
118138
# ServiceMonitor for Prometheus monitoring
119139
serviceMonitor:
120140
enabled: false

0 commit comments

Comments
 (0)