Skip to content

Commit

Permalink
Add ability to change default rollingupdate parameters in helm chart (N…
Browse files Browse the repository at this point in the history
  • Loading branch information
artmakh authored Jul 3, 2023
1 parent b176681 commit 465bc43
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 8 additions & 3 deletions deployment/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ metadata:
spec:
updateStrategy:
type: RollingUpdate
{{- with .Values.rollingUpdate }}
rollingUpdate:
maxUnavailable: {{ .maxUnavailable }}
maxSurge: {{ .maxSurge }}
{{- end }}
selector:
matchLabels:
{{- include "dcgm-exporter.selectorLabels" . | nindent 6 }}
Expand Down Expand Up @@ -85,9 +90,9 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}"
{{- end }}
imagePullPolicy: "{{ .Values.image.pullPolicy }}"
args:
{{- range $.Values.arguments }}
- {{ . }}
args:
{{- range $.Values.arguments }}
- {{ . }}
{{- end }}
env:
- name: "DCGM_EXPORTER_KUBERNETES"
Expand Down
6 changes: 6 additions & 0 deletions deployment/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template
name:

rollingUpdate:
# Specifies maximum number of DaemonSet pods that can be unavailable during the update
maxUnavailable: 1
# Specifies maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update
maxSurge: 0

podAnnotations: {}
# Using this annotation which is required for prometheus scraping
# prometheus.io/scrape: "true"
Expand Down

0 comments on commit 465bc43

Please sign in to comment.