-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgpu-exporter-ds.yml
54 lines (54 loc) · 1.09 KB
/
gpu-exporter-ds.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: gpu-exporter
namespace: kube-system
labels:
k8s-app: gpu-exporter
spec:
template:
metadata:
labels:
k8s-app: gpu-exporter
spec:
hostNetwork: true
containers:
- name: gpu-exporterr
image: pytimer/gpu-exporter:1.0.0
args: [
"run",
"-v", "5",
"--logtostderr",
]
imagePullPolicy: Always
ports:
- containerPort: 9470
name: exporter
volumeMounts:
- mountPath: /etc/localtime
name: timezone
volumes:
- name: timezone
hostPath:
path: /etc/localtime
---
apiVersion: v1
kind: Service
metadata:
name: gpu-exporter
namespace: kube-system
labels:
k8s-app: gpu-exporter
kubernetes.io/cluster-service: "true"
kubernetes.io/name: "GPUExporter"
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9470"
spec:
ports:
- port: 9470
protocol: TCP
targetPort: exporter
selector:
k8s-app: gpu-exporter