-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbridget.yaml
92 lines (92 loc) · 1.68 KB
/
bridget.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
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
89
90
91
92
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: bridget
rules:
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- apiGroups:
- ""
resources:
- nodes
verbs:
- list
- get
- apiGroups:
- ""
resources:
- nodes/status
verbs:
- patch
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: bridget
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: bridget
subjects:
- kind: ServiceAccount
name: bridget
namespace: kube-system
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: bridget
namespace: kube-system
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: bridget
namespace: kube-system
spec:
selector:
matchLabels:
app: bridget
template:
metadata:
labels:
app: bridget
spec:
tolerations:
- operator: Exists
effect: NoSchedule
serviceAccountName: bridget
hostNetwork: true
hostPID: true
containers:
- name: bridget
image: docker.io/kvaps/bridget:v1.1.1
env:
- name: BRIDGE
value: "cbr0"
#- name: VLAN
# value: "4"
#- name: IFACE
# value: "eth0"
#- name: MTU
# value: "1500"
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
securityContext:
capabilities:
add:
- NET_ADMIN
volumeMounts:
- name: cni-cfg
mountPath: /etc/cni/net.d
volumes:
- name: cni-cfg
hostPath:
path: /etc/cni/net.d