Skip to content

Commit

Permalink
Support supplying custom pod labels
Browse files Browse the repository at this point in the history
Signed-off-by: Chi Chang <[email protected]>
  • Loading branch information
edingroot committed Oct 20, 2023
1 parent 853be68 commit 32a571c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deployment/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ spec:
labels:
{{- include "dcgm-exporter.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: "dcgm-exporter"
{{- if .Values.podLabels }}
{{- toYaml .Values.podLabels | nindent 8 }}
{{- end }}
{{- if .Values.podAnnotations }}
annotations:
{{- toYaml .Values.podAnnotations | nindent 8 }}
Expand Down
2 changes: 2 additions & 0 deletions deployment/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ rollingUpdate:
# Specifies maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update
maxSurge: 0

podLabels: {}

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

0 comments on commit 32a571c

Please sign in to comment.