Skip to content

Commit

Permalink
1, karma ipFamilies 2, dcgm-exporter fix dashboard
Browse files Browse the repository at this point in the history
Signed-off-by: youjian <youjian@cmss.chinamobile.com>
Signed-off-by: yogiseven <seventhyou@126.com>
  • Loading branch information
youjian authored and yogiseven committed Jan 3, 2024
1 parent d813f08 commit befdf30
Show file tree
Hide file tree
Showing 5 changed files with 253 additions and 202 deletions.
2 changes: 1 addition & 1 deletion metrics/charts/dcgm-exporter/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ spec:
{{- toYaml . | nindent 6 }}
{{- end }}
containers:
- name: exporter
- name: dcgm-exporter
securityContext:
{{- toYaml .Values.securityContext | nindent 10 }}
{{- if .Values.image.tag }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ metadata:
labels:
{{- include "dcgm-exporter.labels" . | nindent 4 }}
app.kubernetes.io/component: "dcgm-exporter"
release: metrics
{{- if .Values.serviceMonitor.additionalLabels }}
{{- toYaml .Values.serviceMonitor.additionalLabels | nindent 4 }}
{{- end }}
Expand Down
5 changes: 5 additions & 0 deletions metrics/charts/karma/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ metadata:
annotations:
{{ toYaml .Values.service.annotations | indent 4 }}
spec:
{{- if ge (.Capabilities.KubeVersion.Minor|int) 20 }}
ipFamilies:
{{ toYaml .Values.service.ipFamilies | indent 2 }}
ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }}
{{- end }}
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
Expand Down
Loading

0 comments on commit befdf30

Please sign in to comment.