-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbackwards-kni.yaml
62 lines (62 loc) · 1.57 KB
/
backwards-kni.yaml
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
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: network-runtime
namespace: kube-system
labels:
k8s-app: network-runtime
spec:
selector:
matchLabels:
name: network-runtime
template:
metadata:
labels:
name: network-runtime
spec:
hostNetwork: true
priorityClassName: system-node-critical
tolerations:
- operator: Exists
effect: NoSchedule
containers:
- name: network-runtime
image: kni-network-runtime:latest
imagePullPolicy: IfNotPresent
securityContext:
privileged: true
capabilities:
add: ["NET_ADMIN"]
volumeMounts:
- mountPath: /run/netns
name: netns-volume
mountPropagation: Bidirectional
- mountPath: /etc/cni/net.d
name: cni-volume
- mountPath: /tmp
name: tmp
- mountPath: /opt/cni/bin
name: cni-binaries
- mountPath: /run/flannel
name: flannel
volumes:
- name: netns-volume
hostPath:
path: /run/netns
type: DirectoryOrCreate
- name: cni-volume
hostPath:
path: /etc/cni/net.d
type: DirectoryOrCreate
- name: cni-binaries
hostPath:
path: /opt/cni/bin
type: DirectoryOrCreate
- name: tmp
hostPath:
path: /tmp
type: Directory
- name: flannel
hostPath:
path: /run/flannel
type: DirectoryOrCreate