Skip to content

Commit

Permalink
Mount /dev/net for access to TUN device
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciprian Hacman committed Oct 23, 2020
1 parent f10d3d3 commit 1c54b35
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions upup/models/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ spec:
- emptyDir
- hostPath
allowedHostPaths:
- pathPrefix: "/dev/net"
- pathPrefix: "/etc/cni/net.d"
- pathPrefix: "/etc/kube-flannel"
- pathPrefix: "/run/flannel"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1c54b35

Please sign in to comment.