Skip to content

Commit 8211598

Browse files
authored
[MLRun] Increase deployment max surge (#1124)
1 parent d53cf5e commit 8211598

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

stable/mlrun/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v1
22
name: mlrun
3-
version: 0.11.13
3+
version: 0.11.14
44
appVersion: 1.10.0
55
description: Machine Learning automation and tracking
66
sources:

stable/mlrun/templates/api-worker-deployment.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ metadata:
88
{{- include "mlrun.api.worker.labels" . | nindent 4 }}
99
spec:
1010
replicas: {{ include "mlrun.api.worker.minReplicas" . }}
11+
strategy:
12+
type: RollingUpdate
13+
rollingUpdate:
14+
maxSurge: 50%
15+
maxUnavailable: 50%
1116
selector:
1217
matchLabels:
1318
{{- include "mlrun.api.worker.selectorLabels" . | nindent 6 }}

stable/mlrun/templates/ms-deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ metadata:
99
{{- include "mlrun.api.microservices.current.labels" (dict "root" $ "microservice" .) | nindent 4 }}
1010
spec:
1111
replicas: {{ .minReplicas | default 1 }}
12+
{{- if .strategy }}
1213
strategy:
13-
type: Recreate
14+
{{- toYaml .strategy | nindent 4 }}
15+
{{- end }}
1416
selector:
1517
matchLabels:
1618
{{- include "mlrun.api.microservices.current.selectorLabels" (dict "root" $ "microservice" .) | nindent 6 }}

stable/mlrun/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ api:
1313
# auto-scaling is currently not supported and the min value is treated as the fixed value
1414
minReplicas: 1
1515

16+
# We cannot have more than a single alerts instance running at a time
17+
strategy:
18+
type: Recreate
19+
1620
service:
1721
type: ClusterIP
1822
port: 8080

0 commit comments

Comments
 (0)