Skip to content

Commit 5bff7f4

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 <[email protected]>
1 parent 1d1dfed commit 5bff7f4

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

+8
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 }}
@@ -1439,6 +1442,11 @@ spec:
14391442
hostPath:
14401443
path: /var/run/cilium
14411444
type: DirectoryOrCreate
1445+
# To exec into pod network namespaces
1446+
- name: cilium-netns
1447+
hostPath:
1448+
path: /var/run/netns
1449+
type: DirectoryOrCreate
14421450
# To keep state between restarts / upgrades for bpf maps
14431451
- name: bpf-maps
14441452
hostPath:

0 commit comments

Comments
 (0)