Skip to content

Commit

Permalink
update gpu exporter yaml, support both docker and containerd runtime (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaozhouX authored Apr 17, 2021
1 parent 9bba0d8 commit 4dca70d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions kubernetes-artifacts/prometheus/gpu-exporter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ spec:
volumes:
- hostPath:
path: /var/run/docker.sock
type: File
type: FileOrCreate
name: docker-sock
- hostPath:
path: /run/containerd/containerd.sock
type: FileOrCreate
name: containerd-sock
containers:
- name: node-gpu-exporter
image: registry.cn-hangzhou.aliyuncs.com/acs/gpu-prometheus-exporter:0.1-b4ae190
image: registry.cn-hangzhou.aliyuncs.com/acs/gpu-prometheus-exporter:0.1-0e21b28
imagePullPolicy: Always
ports:
- containerPort: 9445
Expand All @@ -41,6 +45,8 @@ spec:
volumeMounts:
- mountPath: /var/run/docker.sock
name: docker-sock
- mountPath: /run/containerd/containerd.sock
name: containerd-sock

---
apiVersion: v1
Expand Down

0 comments on commit 4dca70d

Please sign in to comment.