diff --git a/dcgm-exporter.yaml b/dcgm-exporter.yaml index 8dc9f1c..40b7e2b 100644 --- a/dcgm-exporter.yaml +++ b/dcgm-exporter.yaml @@ -16,6 +16,7 @@ apiVersion: apps/v1 kind: DaemonSet metadata: name: "dcgm-exporter" + namespace: kube-system labels: app.kubernetes.io/name: "dcgm-exporter" app.kubernetes.io/version: "2.1.1" @@ -51,10 +52,17 @@ spec: - name: "pod-gpu-resources" readOnly: true mountPath: "/var/lib/kubelet/pod-resources" + - name: cgroup + readOnly: true + mountPath: "/sys/fs/cgroup" volumes: - name: "pod-gpu-resources" hostPath: path: "/var/lib/kubelet/pod-resources" + - name: cgroup + hostPath: + type: Directory + path: "/sys/fs/cgroup" --- @@ -62,6 +70,7 @@ kind: Service apiVersion: v1 metadata: name: "dcgm-exporter" + namespace: kube-system labels: app.kubernetes.io/name: "dcgm-exporter" app.kubernetes.io/version: "2.1.1"