Skip to content

Commit 9bfda41

Browse files
jaeyung2y2kenny-amd
authored andcommitted
Set updateStrategy for helm chart
1 parent ca517cd commit 9bfda41

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

helm/amd-gpu/templates/deviceplugin-daemonset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ spec:
77
selector:
88
matchLabels:
99
name: {{ .Chart.Name }}-dp-ds
10+
{{- with .Values.dp.updateStrategy }}
11+
updateStrategy:
12+
{{- toYaml . | nindent 4 }}
13+
{{- end }}
1014
template:
1115
metadata:
1216
labels:

helm/amd-gpu/templates/labeller.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ spec:
99
selector:
1010
matchLabels:
1111
name: amdgpu-lr-ds
12+
{{- with .Values.lbl.updateStrategy }}
13+
updateStrategy:
14+
{{- toYaml . | nindent 4 }}
15+
{{- end }}
1216
template:
1317
metadata:
1418
labels:

helm/amd-gpu/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ dp:
1010
# Overrides the image tag whose default is the chart appVersion.
1111
tag: "1.31.0.6"
1212
resources: {}
13+
# Set daemonsets updateStrategy for device plugin
14+
updateStrategy:
15+
type: RollingUpdate
16+
rollingUpdate:
17+
maxUnavailable: 1
1318

1419
lbl:
1520
image:
@@ -34,6 +39,11 @@ lbl:
3439
# requests:
3540
# memory: 30Mi
3641
# cpu: 150m
42+
# Set daemonsets updateStrategy for labeller
43+
updateStrategy:
44+
type: RollingUpdate
45+
rollingUpdate:
46+
maxUnavailable: 1
3747

3848
imagePullSecrets: []
3949

0 commit comments

Comments
 (0)