diff --git a/charts/templates/deployment.yaml b/charts/templates/deployment.yaml index e279bd7..d30938f 100644 --- a/charts/templates/deployment.yaml +++ b/charts/templates/deployment.yaml @@ -87,6 +87,9 @@ spec: mountPath: /etc/sentinel/broker.yaml subPath: broker.yaml readOnly: true + {{- with .Values.extraVolumeMounts }} + {{- toYaml . | nindent 10 }} + {{- end }} resources: {{- toYaml .Values.resources | nindent 12 }} volumes: @@ -96,6 +99,9 @@ spec: - name: broker-config configMap: name: {{ include "sentinel.fullname" . }}-broker-config + {{- with .Values.extraVolumes }} + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/charts/values.yaml b/charts/values.yaml index de639a9..95296cb 100644 --- a/charts/values.yaml +++ b/charts/values.yaml @@ -68,6 +68,16 @@ tolerations: [] # Affinity affinity: {} +# Extra volumes to add to the pod +extraVolumes: [] +# - name: example-volume +# emptyDir: {} + +# Extra volume mounts to add to the container +extraVolumeMounts: [] +# - name: example-volume +# mountPath: /example + # PodDisruptionBudget configuration # See: https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget podDisruptionBudget: