Skip to content

Commit c6f88fc

Browse files
authored
Merge pull request #165 from imgproxy/deployment-strategy
Deployment strategy
2 parents 93842f7 + 65db699 commit c6f88fc

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

imgproxy/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ spec:
3030
selector:
3131
matchLabels:
3232
app: {{ template "imgproxy.fullname" $ }}
33+
strategy: {{ toYaml .Values.resources.deployment.strategy | nindent 4 }}
3334
template:
3435
metadata:
3536
{{- with .Values.resources.pod }}

imgproxy/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@ resources:
9696
# The setting MUST be set if `minCount < maxCount` only.
9797
cpuUtilization: 80
9898

99+
# See https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
100+
strategy:
101+
rollingUpdate:
102+
maxSurge: 25%
103+
maxUnavailable: 25%
104+
type: RollingUpdate
105+
99106
# A node selector label.
100107
nodeSelector: {}
101108

0 commit comments

Comments
 (0)