Skip to content

Commit

Permalink
Fix for istio#46163 - Make netns host node path configurable (istio…
Browse files Browse the repository at this point in the history
…#47444)

* Fix for istio#46163

Signed-off-by: Benjamin Leggett <benjamin.leggett@solo.io>

* Release notes

Signed-off-by: Benjamin Leggett <benjamin.leggett@solo.io>

---------

Signed-off-by: Benjamin Leggett <benjamin.leggett@solo.io>
  • Loading branch information
bleggett authored Oct 19, 2023
1 parent e7bbb97 commit 7e7d52a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion manifests/charts/istio-cni/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ spec:
path: /var/run/istio-cni
- name: cni-netns-dir
hostPath:
path: /var/run/netns
path: {{ .Values.cniNetnsDir | default "/var/run/netns" }}
type: Directory # this directory must exist on the node, if it does not,
# consult your container runtime documentation for the appropriate path
{{- if eq .Values.cni.ambient.redirectMode "ebpf"}}
- name: cni-bpffs-dir
hostPath:
Expand Down
4 changes: 4 additions & 0 deletions manifests/charts/istio-cni/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ cni:
cniBinDir: "" # Auto-detected based on version; defaults to /opt/cni/bin.
cniConfDir: /etc/cni/net.d
cniConfFileName: ""
# This directory must exist on the node, if it does not, consult your container runtime
# documentation for the appropriate path.
cniNetnsDir: # Defaults to '/var/run/netns', in minikube/docker/others can be '/run/docker/netns'.


excludeNamespaces:
- istio-system
Expand Down
8 changes: 8 additions & 0 deletions releasenotes/notes/47444.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: release-notes/v2
kind: bug-fix
area: traffic-management
issue:
- 47444
releaseNotes:
- |
**Added** Support alternate network namespace paths (for e.g. minikube) via `values.cni.cniNetnsDir`

0 comments on commit 7e7d52a

Please sign in to comment.