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: ...@@ -131,6 +131,9 @@ spec:
- name: persistent-storage - name: persistent-storage
mountPath: "/run/varnish-home/persistent-storage" mountPath: "/run/varnish-home/persistent-storage"
{{- end }} {{- end }}
{{- if .Values.vikingService.varnish.volumeMounts }}
{{- toYaml .Values.vikingService.varnish.volumeMounts | nindent 12 }}
{{- end }}
securityContext: securityContext:
readOnlyRootFilesystem: true readOnlyRootFilesystem: true
resources: resources:
...@@ -186,6 +189,9 @@ spec: ...@@ -186,6 +189,9 @@ spec:
mountPath: "/run/haproxy" mountPath: "/run/haproxy"
- name: tmp - name: tmp
mountPath: "/tmp" mountPath: "/tmp"
{{- if .Values.vikingService.haproxy.volumeMounts }}
{{- toYaml .Values.vikingService.haproxy.volumeMounts | nindent 12 }}
{{- end }}
securityContext: securityContext:
readOnlyRootFilesystem: true readOnlyRootFilesystem: true
resources: resources:
...@@ -227,3 +233,6 @@ spec: ...@@ -227,3 +233,6 @@ spec:
- name: tmp - name: tmp
emptyDir: emptyDir:
medium: "Memory" medium: "Memory"
{{- if .Values.vikingService.volumes }}
{{- toYaml .Values.vikingService.volumes | nindent 8 }}
{{- end }}
\ No newline at end of file
...@@ -28,6 +28,9 @@ vikingService: ...@@ -28,6 +28,9 @@ vikingService:
# Possible fields as above for liveness probes # Possible fields as above for liveness probes
readinessProbeConfig: {} readinessProbeConfig: {}
# Additional volumeMounts to be added to varnish containers
volumeMounts: []
haproxy: haproxy:
image: image:
repository: registry.gitlab.com/uplex/varnish/k8s-ingress/varnish-ingress/haproxy repository: registry.gitlab.com/uplex/varnish/k8s-ingress/varnish-ingress/haproxy
...@@ -45,6 +48,9 @@ vikingService: ...@@ -45,6 +48,9 @@ vikingService:
# Configuration of the haproxy readiness probe, as above for Varnish # Configuration of the haproxy readiness probe, as above for Varnish
readinessProbeConfig: {} readinessProbeConfig: {}
# Additional volumeMounts to be added to haproxy containers
volumeMounts: []
# Choose from Deployment or StatefulSet # Choose from Deployment or StatefulSet
kind: Deployment kind: Deployment
...@@ -207,6 +213,9 @@ vikingService: ...@@ -207,6 +213,9 @@ vikingService:
http: "" http: ""
https: "" https: ""
# Additional volumes to be added to viking service pods
volumes: []
## Rollback limit ## Rollback limit
## ##
revisionHistoryLimit: 10 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