Skip to content

Commit 89b8290

Browse files
committed
fix deployment
1 parent 118dc45 commit 89b8290

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

Diff for: deploy/Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
FROM alpine:3.7
2-
1+
FROM alpine:3.8
32

43
ENV GLIBC_VERSION "2.28-r0"
54

Diff for: deploy/kubernetes/daemonset.yaml

+8-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ spec:
1818
prometheus.io/port: '8080'
1919
spec:
2020
containers:
21-
- image: "gcr.io/dashpole-kubernetes-test/gpu-monitor:v2"
21+
- image: "gcr.io/dashpole-gke-dev/gpu-monitor:v0"
2222
name: gpu-monitor
23-
args: ["--socket=/podresources/kubelet.sock", "--v=10"]
23+
args: ["--socket=unix:///podresources/pod-resources/kubelet.sock", "--v=10"]
2424
volumeMounts:
2525
- name: kubelet-podresources
2626
mountPath: /podresources
@@ -37,6 +37,12 @@ spec:
3737
env:
3838
- name: LD_LIBRARY_PATH
3939
value: "/home/kubernetes/bin/nvidia/lib64/"
40+
nodeSelector:
41+
cloud.google.com/gke-accelerator: nvidia-tesla-k80
42+
tolerations:
43+
- key: "nvidia.com/gpu"
44+
value: "present"
45+
effect: "NoSchedule"
4046
volumes:
4147
- name: kubelet-podresources
4248
hostPath:

Diff for: deploy/kubernetes/prometheus/deployment.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: extensions/v1beta1
1+
apiVersion: apps/v1
22
kind: Deployment
33
metadata:
44
name: prometheus-core
@@ -8,6 +8,10 @@ metadata:
88
component: core
99
spec:
1010
replicas: 1
11+
selector:
12+
matchLabels:
13+
app: prometheus
14+
component: core
1115
template:
1216
metadata:
1317
name: prometheus-main

0 commit comments

Comments
 (0)