Skip to content

Commit

Permalink
yaml: add cgroup path mount
Browse files Browse the repository at this point in the history
Signed-off-by: keyangxie <[email protected]>
  • Loading branch information
xiekeyang committed Jan 22, 2021
1 parent f850ff9 commit 437dd3d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dcgm-exporter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -51,17 +52,25 @@ 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"

---

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"
Expand Down

0 comments on commit 437dd3d

Please sign in to comment.