mirror of https://github.com/kubernetes/kops.git
Mount /dev/net for access to TUN device
This commit is contained in:
parent
f9e426c307
commit
3e3aca8c0f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue