Skip to content

Commit

Permalink
Fix flannel deployment issues
Browse files Browse the repository at this point in the history
  • Loading branch information
electrocucaracha committed Feb 4, 2025
1 parent 251876e commit aaa1d96
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flannel/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ function get_status {
kubectl describe nodes
}

sudo modprobe br_netfilter

if [ -z "$(sudo docker images kindest/node:flannel -q)" ]; then
sudo docker build --tag kindest/node:flannel --no-cache .
fi
Expand Down Expand Up @@ -69,7 +71,8 @@ EOF
demo_imgs=$(grep "^.*_img=" demo.sh | awk -F '=' '{ print $2}')
for img in $flannel_imgs $demo_imgs; do
docker pull $img
kind load docker-image $img --name k8s
# TODO: Investigate about this issue (https://github.com/kubernetes-sigs/kind/blob/v0.26.0/pkg/cluster/nodeutils/util.go#L95)
kind load docker-image $img --name k8s ||:
done
EONG
fi
Expand Down

0 comments on commit aaa1d96

Please sign in to comment.