-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathwes-device-labeler.yaml
More file actions
88 lines (88 loc) · 2.27 KB
/
wes-device-labeler.yaml
File metadata and controls
88 lines (88 loc) · 2.27 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: wes-device-labeler
labels:
app.kubernetes.io/name: wes-device-labeler
spec:
selector:
matchLabels:
app.kubernetes.io/name: wes-device-labeler
template:
metadata:
labels:
app.kubernetes.io/name: wes-device-labeler
spec:
serviceAccountName: wes-device-labeler-svc-account
priorityClassName: wes-high-priority
containers:
- name: wes-device-labeler
image: waggle/wes-device-labeler:0.7.0
imagePullPolicy: IfNotPresent
resources:
limits:
memory: 75Mi
requests:
cpu: 100m
memory: 75Mi
args:
# - "--dry-run"
- "--root=/host"
- "--manifest=/etc/waggle/node-manifest-v2.json"
securityContext:
privileged: true
env:
- name: KUBENODE
valueFrom:
fieldRef:
fieldPath: spec.nodeName
volumeMounts:
- name: dev
mountPath: /host/dev
mountPropagation: HostToContainer
readOnly: true
- name: sys
mountPath: /host/sys
mountPropagation: HostToContainer
readOnly: true
- name: waggle-node-manifest-v2
mountPath: /etc/waggle
readOnly: true
volumes:
- name: dev
hostPath:
path: /dev
- name: sys
hostPath:
path: /sys
- name: waggle-node-manifest-v2
configMap:
name: waggle-node-manifest-v2
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: wes-device-labeler-svc-account
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: wes-node-labeler
namespace: default
rules:
- apiGroups: [""] # "" indicates the core API group
resources: ["nodes"]
verbs: ["get", "watch", "list", "update", "patch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: wes-node-labeler
roleRef:
kind: ClusterRole
name: wes-node-labeler
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: wes-device-labeler-svc-account
namespace: default