-
Notifications
You must be signed in to change notification settings - Fork 4
/
node.yml
51 lines (51 loc) · 1.24 KB
/
node.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
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: cni-vpc-node
namespace: kube-system
labels:
app: "cni-vpc-node"
spec:
selector:
matchLabels:
app: "cni-vpc-node"
template:
metadata:
labels:
app: "cni-vpc-node"
spec:
tolerations:
- key: CriticalAddonsOnly
operator: Exists
- key: dedicated
operator: Exists
- effect: NoSchedule
key: node.cloudprovider.kubernetes.io/uninitialized
value: "true"
hostNetwork: true
priorityClassName: system-node-critical
hostPID: true
containers:
- name: cni-vpc-node
image: uhub.service.ucloud.cn/uk8s/cni-vpc-node:1.2.0
securityContext:
privileged: true
imagePullPolicy: "Always"
volumeMounts:
- name: host-cni
mountPath: /opt/cni/
- name: host-bin
mountPath: /host-bin
- name: host-log
mountPath: /var/log
readOnly: true
volumes:
- name: host-cni
hostPath:
path: /opt/cni
- name: host-bin
hostPath:
path: /usr/local/bin
- name: host-log
hostPath:
path: /var/log