Mount /dev/net for access to TUN device

This commit is contained in:
Ciprian Hacman 2020-10-18 14:08:22 +03:00
parent f9e426c307
commit 3e3aca8c0f
2 changed files with 12 additions and 0 deletions

View File

@ -7095,6 +7095,7 @@ spec:
- emptyDir
- hostPath
allowedHostPaths:
- pathPrefix: "/dev/net"
- pathPrefix: "/etc/cni/net.d"
- pathPrefix: "/etc/kube-flannel"
- pathPrefix: "/run/flannel"
@ -7300,12 +7301,17 @@ spec:
volumeMounts:
- name: run
mountPath: /run/flannel
- name: dev-net
mountPath: /dev/net
- name: flannel-cfg
mountPath: /etc/kube-flannel/
volumes:
- name: run
hostPath:
path: /run/flannel
- name: dev-net
hostPath:
path: /dev/net
- name: cni
hostPath:
path: /etc/cni/net.d

View File

@ -18,6 +18,7 @@ spec:
- emptyDir
- hostPath
allowedHostPaths:
- pathPrefix: "/dev/net"
- pathPrefix: "/etc/cni/net.d"
- pathPrefix: "/etc/kube-flannel"
- pathPrefix: "/run/flannel"
@ -223,12 +224,17 @@ spec:
volumeMounts:
- name: run
mountPath: /run/flannel
- name: dev-net
mountPath: /dev/net
- name: flannel-cfg
mountPath: /etc/kube-flannel/
volumes:
- name: run
hostPath:
path: /run/flannel
- name: dev-net
hostPath:
path: /dev/net
- name: cni
hostPath:
path: /etc/cni/net.d