Skip to content

Commit

Permalink
[stable/redis-ha] add maxUnavailable value for the ha-proxy rollingUp…
Browse files Browse the repository at this point in the history
…date config, fix issue DandyDeveloper#249.

Signed-off-by: Martijn van der Ploeg <[email protected]>
  • Loading branch information
martijnvdp committed May 9, 2023
1 parent bb6cb8f commit db5e99c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion charts/redis-ha/templates/redis-haproxy-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions charts/redis-ha/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}
Expand Down

0 comments on commit db5e99c

Please sign in to comment.