forked from Project-HAMi/mock-device-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathk8s-mock-plugin.yaml
More file actions
51 lines (50 loc) · 1.36 KB
/
Copy pathk8s-mock-plugin.yaml
File metadata and controls
51 lines (50 loc) · 1.36 KB
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
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: hami-mock-device-plugin-daemonset
namespace: kube-system
spec:
selector:
matchLabels:
app.kubernetes.io/component: hami-mock-device-plugin
template:
metadata:
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
labels:
app.kubernetes.io/component: hami-mock-device-plugin
spec:
serviceAccountName: hami-mock-device-plugin
tolerations:
- key: CriticalAddonsOnly
operator: Exists
containers:
- image: projecthami/mock-device-plugin:latest
name: hami-mock-dp-cntr
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
command:
- ./k8s-device-plugin
- -v=5
- --device-config-file=/device-config.yaml
volumeMounts:
- name: dp
mountPath: /var/lib/kubelet/device-plugins
- name: sys
mountPath: /sys
- name: device-config
mountPath: /device-config.yaml
subPath: device-config.yaml
volumes:
- name: dp
hostPath:
path: /var/lib/kubelet/device-plugins
- name: sys
hostPath:
path: /sys
- name: device-config
configMap:
name: hami-scheduler-device