Commit 48ee367d authored by Nils Goroll's avatar Nils Goroll Committed by Geoff Simmons

Support custum volumes/volumeMounts for service containers

parent 125d1847
......@@ -131,6 +131,9 @@ spec:
- name: persistent-storage
mountPath: "/run/varnish-home/persistent-storage"
{{- end }}
{{- if .Values.vikingService.varnish.volumeMounts }}
{{- toYaml .Values.vikingService.varnish.volumeMounts | nindent 12 }}
{{- end }}
securityContext:
readOnlyRootFilesystem: true
resources:
......@@ -186,6 +189,9 @@ spec:
mountPath: "/run/haproxy"
- name: tmp
mountPath: "/tmp"
{{- if .Values.vikingService.haproxy.volumeMounts }}
{{- toYaml .Values.vikingService.haproxy.volumeMounts | nindent 12 }}
{{- end }}
securityContext:
readOnlyRootFilesystem: true
resources:
......@@ -227,3 +233,6 @@ spec:
- name: tmp
emptyDir:
medium: "Memory"
{{- if .Values.vikingService.volumes }}
{{- toYaml .Values.vikingService.volumes | nindent 8 }}
{{- end }}
\ No newline at end of file
......@@ -28,6 +28,9 @@ vikingService:
# Possible fields as above for liveness probes
readinessProbeConfig: {}
# Additional volumeMounts to be added to varnish containers
volumeMounts: []
haproxy:
image:
repository: registry.gitlab.com/uplex/varnish/k8s-ingress/varnish-ingress/haproxy
......@@ -45,6 +48,9 @@ vikingService:
# Configuration of the haproxy readiness probe, as above for Varnish
readinessProbeConfig: {}
# Additional volumeMounts to be added to haproxy containers
volumeMounts: []
# Choose from Deployment or StatefulSet
kind: Deployment
......@@ -207,6 +213,9 @@ vikingService:
http: ""
https: ""
# Additional volumes to be added to viking service pods
volumes: []
## Rollback limit
##
revisionHistoryLimit: 10
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment