add webapp extraVolumes and extraVolumeMounts

This commit is contained in:
nicktrn
2025-07-02 12:53:51 +01:00
parent f699c86d7e
commit f184e26177
2 changed files with 26 additions and 0 deletions
+6
View File
@@ -324,6 +324,9 @@ spec:
volumeMounts:
- name: shared
mountPath: /home/node/shared
{{- with .Values.webapp.extraVolumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
volumes:
- name: shared
{{- if .Values.persistence.shared.enabled }}
@@ -332,6 +335,9 @@ spec:
{{- else }}
emptyDir: {}
{{- end }}
{{- with .Values.webapp.extraVolumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.webapp.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
+20
View File
@@ -115,6 +115,26 @@ webapp:
# name: my-secret
# key: secret-key
# Extra volumes for the webapp pod
extraVolumes:
[]
# - name: config-volume
# configMap:
# name: my-config
# - name: secret-volume
# secret:
# secretName: my-secret
# Extra volume mounts for the webapp container
extraVolumeMounts:
[]
# - name: config-volume
# mountPath: /etc/config
# readOnly: true
# - name: secret-volume
# mountPath: /etc/secrets
# readOnly: true
# ServiceMonitor for Prometheus monitoring
serviceMonitor:
enabled: false