Skip to content

Commit

Permalink
Merge branch 'helm2' into 'master'
Browse files Browse the repository at this point in the history
Restore helm chart to working state

See merge request nvidia/container-toolkit/gpu-monitoring-tools!29
  • Loading branch information
nvjmayo committed Aug 3, 2020
2 parents ab69858 + 751ee7c commit 1bbc5cd
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 35 deletions.
9 changes: 5 additions & 4 deletions deployment/dcgm-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
apiVersion: v2
apiVersion: v1
name: dcgm-exporter
description: A Helm chart for Kubernetes
type: application
version: "1.0.1"
description: A Helm chart for DCGM exporter
sources:
- https://gitlab.com/nvidia/container-toolkit/gpu-monitoring-tools
version: "1.0.2"
appVersion: "1.7.2"
kubeVersion: ">= 1.13.0"
11 changes: 1 addition & 10 deletions deployment/dcgm-exporter/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,10 @@ apiVersion: apps/v1
kind: DaemonSet
metadata:
name: {{ include "dcgm-exporter.fullname" . }}
{{- if .Values.namespace }}
namespace: {{ .Values.namespace }}
{{- end }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "dcgm-exporter.labels" . | nindent 4 }}
app.kubernetes.io/component: "dcgm-exporter"
spec:
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
{{- include "dcgm-exporter.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: "dcgm-exporter"
spec:
updateStrategy:
type: RollingUpdate
Expand Down
11 changes: 1 addition & 10 deletions deployment/dcgm-exporter/templates/service-monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "dcgm-exporter.fullname" . }}
{{- if .Values.serviceMonitor.namespace }}
namespace: {{ .Values.serviceMonitor.namespace }}
{{- end }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "dcgm-exporter.labels" . | nindent 4 }}
app.kubernetes.io/component: "dcgm-exporter"
Expand All @@ -31,16 +29,9 @@ spec:
matchLabels:
{{- include "dcgm-exporter.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: "dcgm-exporter"
endpoints:
- port: "metrics"
path: "/metrics"
namespaceSelector:
matchNames:
{{- if .Values.namespace }}
- "{{ .Values.namespace }}"
{{ else }}
- "{{ .Release.Namespace }}"
{{- end }}
endpoints:
- port: "metrics"
path: "/metrics"
Expand Down
8 changes: 5 additions & 3 deletions deployment/dcgm-exporter/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ apiVersion: v1
kind: Service
metadata:
name: {{ include "dcgm-exporter.fullname" . }}
{{- if .Values.namespace }}
namespace: {{ .Values.namespace }}
{{- end }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "dcgm-exporter.labels" . | nindent 4 }}
app.kubernetes.io/component: "dcgm-exporter"
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
Expand Down
4 changes: 1 addition & 3 deletions deployment/dcgm-exporter/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "dcgm-exporter.serviceAccountName" . }}
{{- if .Values.namespace }}
namespace: {{ .Values.namespace }}
{{- end }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "dcgm-exporter.labels" . | nindent 4 }}
app.kubernetes.io/component: "dcgm-exporter"
Expand Down
7 changes: 2 additions & 5 deletions deployment/dcgm-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ image:
# for the image tag, e.g:
#tag: 1.7.2

# For helm v2 this field might be useful
#namespace: kube-system

imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
Expand Down Expand Up @@ -50,6 +47,8 @@ service:
type: ClusterIP
port: 9400
address: ":9400"
# Annotations to add to the service
annotations: {}

resources: {}
# limits:
Expand All @@ -61,8 +60,6 @@ resources: {}
serviceMonitor:
enabled: true
interval: 15s
# Defaults to .Release.Namespace
#namespace: default
additionalLabels: {}
#monitoring: prometheus

Expand Down

0 comments on commit 1bbc5cd

Please sign in to comment.