diff --git a/charts/redis-ha/templates/redis-haproxy-deployment.yaml b/charts/redis-ha/templates/redis-haproxy-deployment.yaml index 8ca265c..10c7113 100644 --- a/charts/redis-ha/templates/redis-haproxy-deployment.yaml +++ b/charts/redis-ha/templates/redis-haproxy-deployment.yaml @@ -11,7 +11,11 @@ metadata: {{- end }} spec: strategy: - type: RollingUpdate + {{- if .Values.haproxy.deploymentStrategy }} +{{ toYaml .Values.haproxy.deploymentStrategy | indent 4 }} +{{- else }} + type: RollingUpdate + {{- end }} revisionHistoryLimit: 1 replicas: {{ .Values.haproxy.replicas }} selector: diff --git a/charts/redis-ha/values.yaml b/charts/redis-ha/values.yaml index 0f14820..f7e23fd 100644 --- a/charts/redis-ha/values.yaml +++ b/charts/redis-ha/values.yaml @@ -79,10 +79,15 @@ haproxy: enabled: false port: 6380 replicas: 3 + rollingUpdate: + maxUnavailable: 1 image: repository: haproxy tag: 2.6.9 pullPolicy: IfNotPresent + + # -- Deployment strategy for the haproxy deployment + deploymentStrategy: {} ## Custom labels for the haproxy pod labels: {}