Skip to content

Commit 9b24260

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 3c9c99c commit 9b24260

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
@@ -1182,6 +1182,9 @@ spec:
11821182
mountPath: /run/cilium/cgroupv2
11831183
- name: cilium-run
11841184
mountPath: /var/run/cilium
1185+
- name: cilium-netns
1186+
mountPath: /var/run/cilium/netns
1187+
mountPropagation: HostToContainer
11851188
- name: etc-cni-netd
11861189
mountPath: /host/etc/cni/net.d
11871190
{{ if .EtcdManaged }}
@@ -1436,6 +1439,11 @@ spec:
14361439
hostPath:
14371440
path: /var/run/cilium
14381441
type: DirectoryOrCreate
1442+
# To exec into pod network namespaces
1443+
- name: cilium-netns
1444+
hostPath:
1445+
path: /var/run/netns
1446+
type: DirectoryOrCreate
14391447
# To keep state between restarts / upgrades for bpf maps
14401448
- name: bpf-maps
14411449
hostPath:

0 commit comments

Comments
 (0)