2017-12-21 15:26:07 +03:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
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:
|
|
|
|
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:
|
|
|
|
- key: node-role.kubernetes.io/master
|
|
|
|
operator: Exists
|
|
|
|
effect: NoSchedule
|
2017-12-20 18:42:19 +03:00
|
|
|
hostNetwork: true
|
|
|
|
hostPID: true
|
|
|
|
containers:
|
2017-12-22 14:32:22 +03:00
|
|
|
- name: bridget
|
|
|
|
image: kvaps/bridget
|
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"
|
|
|
|
#- name: POD_NETWORK
|
|
|
|
# value: "10.244.0.0/16"
|
|
|
|
#- name: DIVISION_PREFIX
|
|
|
|
# value: "24"
|
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
|