2018-05-26 04:49:05 +03:00
|
|
|
---
|
|
|
|
kind: ClusterRole
|
2019-10-12 11:14:59 +03:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
2018-05-26 04:49:05 +03:00
|
|
|
metadata:
|
|
|
|
name: bridget
|
|
|
|
rules:
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- pods
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- nodes
|
|
|
|
verbs:
|
|
|
|
- list
|
|
|
|
- get
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- nodes/status
|
|
|
|
verbs:
|
|
|
|
- patch
|
|
|
|
---
|
|
|
|
kind: ClusterRoleBinding
|
2019-10-12 11:14:59 +03:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
2018-05-26 04:49:05 +03:00
|
|
|
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
|
|
|
|
---
|
2019-10-12 11:14:59 +03:00
|
|
|
apiVersion: apps/v1
|
2017-12-21 15:26:07 +03:00
|
|
|
kind: DaemonSet
|
2017-12-20 18:42:19 +03:00
|
|
|
metadata:
|
2017-12-22 14:32:22 +03:00
|
|
|
name: bridget
|
2017-12-22 01:45:45 +03:00
|
|
|
namespace: kube-system
|
2017-12-20 18:42:19 +03:00
|
|
|
spec:
|
2019-10-12 11:14:59 +03:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: bridget
|
2017-12-20 18:42:19 +03:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2017-12-22 14:32:22 +03:00
|
|
|
app: bridget
|
2017-12-20 18:42:19 +03:00
|
|
|
spec:
|
2017-12-22 02:08:56 +03:00
|
|
|
tolerations:
|
2019-10-15 14:23:45 +03:00
|
|
|
- operator: Exists
|
2017-12-22 02:08:56 +03:00
|
|
|
effect: NoSchedule
|
2018-05-26 04:49:05 +03:00
|
|
|
serviceAccountName: bridget
|
2017-12-20 18:42:19 +03:00
|
|
|
hostNetwork: true
|
|
|
|
hostPID: true
|
|
|
|
containers:
|
2017-12-22 14:32:22 +03:00
|
|
|
- name: bridget
|
2020-10-16 10:51:11 +03:00
|
|
|
image: docker.io/kvaps/bridget:v1.1.1
|
2017-12-20 18:42:19 +03:00
|
|
|
env:
|
|
|
|
- name: BRIDGE
|
2017-12-21 15:26:07 +03:00
|
|
|
value: "cbr0"
|
2017-12-22 02:08:56 +03:00
|
|
|
#- name: VLAN
|
|
|
|
# value: "4"
|
|
|
|
#- name: IFACE
|
2018-01-10 00:28:02 +03:00
|
|
|
# value: "eth0"
|
2017-12-22 02:08:56 +03:00
|
|
|
#- name: MTU
|
|
|
|
# value: "1500"
|
2018-05-26 04:49:05 +03:00
|
|
|
- name: NODE_NAME
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: spec.nodeName
|
2017-12-20 18:42:19 +03:00
|
|
|
securityContext:
|
|
|
|
capabilities:
|
2017-12-20 19:39:05 +03:00
|
|
|
add:
|
|
|
|
- NET_ADMIN
|
2017-12-20 18:42:19 +03:00
|
|
|
volumeMounts:
|
2017-12-20 18:56:40 +03:00
|
|
|
- name: cni-cfg
|
2017-12-20 18:42:19 +03:00
|
|
|
mountPath: /etc/cni/net.d
|
|
|
|
volumes:
|
2017-12-20 18:56:40 +03:00
|
|
|
- name: cni-cfg
|
2017-12-20 18:42:19 +03:00
|
|
|
hostPath:
|
|
|
|
path: /etc/cni/net.d
|