From 4dca70ddc9e2271c47db6fa6664845ecf5d5833f Mon Sep 17 00:00:00 2001 From: xiaozhouX Date: Sat, 17 Apr 2021 14:08:14 +0800 Subject: [PATCH] update gpu exporter yaml, support both docker and containerd runtime (#538) --- kubernetes-artifacts/prometheus/gpu-exporter.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/kubernetes-artifacts/prometheus/gpu-exporter.yaml b/kubernetes-artifacts/prometheus/gpu-exporter.yaml index 848336f07..647d37278 100644 --- a/kubernetes-artifacts/prometheus/gpu-exporter.yaml +++ b/kubernetes-artifacts/prometheus/gpu-exporter.yaml @@ -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 @@ -41,6 +45,8 @@ spec: volumeMounts: - mountPath: /var/run/docker.sock name: docker-sock + - mountPath: /run/containerd/containerd.sock + name: containerd-sock --- apiVersion: v1