Skip to content

Commit e0101d9

Browse files
committed
fix kind netns volumes
1 parent 245f6a0 commit e0101d9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

scripts/kind-cluster.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ K8S_CLI_BIN=$( basename "${K8S_CLI_BIN_PATH}" )
88
DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && cd ../ && pwd )
99

1010
KIND_CLUSTER_NAME="netobserv-cli-cluster"
11-
KIND_IMAGE="kindest/node:v1.31.0"
11+
KIND_IMAGE="kindest/node:v1.32.0"
1212

1313
# deploy_kind installs the kind cluster
1414
deploy_kind() {
@@ -21,6 +21,9 @@ networking:
2121
ipFamily: $IP_FAMILY
2222
nodes:
2323
- role: control-plane
24+
extraMounts:
25+
- hostPath: /var/run/netns
26+
containerPath: /var/run/netns
2427
kubeadmConfigPatches:
2528
- |
2629
kind: ClusterConfiguration
@@ -34,7 +37,13 @@ nodes:
3437
extraArgs:
3538
v: "5"
3639
- role: worker
40+
extraMounts:
41+
- hostPath: /var/run/netns
42+
containerPath: /var/run/netns
3743
- role: worker
44+
extraMounts:
45+
- hostPath: /var/run/netns
46+
containerPath: /var/run/netns
3847
EOF
3948
}
4049

0 commit comments

Comments
 (0)