Skip to content

Commit 0222169

Browse files
committed
Mount /var/run/netns
This is required to be able to exec into pod network namespaces by opening `/var/run/netns/<pod-netns>`. Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
1 parent 7be67e0 commit 0222169

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

upup/models/cloudup/resources/addons/networking.cilium.io/k8s-1.16-v1.15.yaml.template

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,6 +1319,9 @@ spec:
13191319
mountPath: /run/cilium/cgroupv2
13201320
- name: cilium-run
13211321
mountPath: /var/run/cilium
1322+
- name: cilium-netns
1323+
mountPath: /var/run/cilium/netns
1324+
mountPropagation: HostToContainer
13221325
- name: etc-cni-netd
13231326
mountPath: /host/etc/cni/net.d
13241327
{{ if .EtcdManaged }}
@@ -1573,6 +1576,11 @@ spec:
15731576
hostPath:
15741577
path: /var/run/cilium
15751578
type: DirectoryOrCreate
1579+
# To exec into pod network namespaces
1580+
- name: cilium-netns
1581+
hostPath:
1582+
path: /var/run/netns
1583+
type: DirectoryOrCreate
15761584
# To keep state between restarts / upgrades for bpf maps
15771585
- name: bpf-maps
15781586
hostPath:

0 commit comments

Comments
 (0)