Upgrade default kind version in get_kind.sh

As mentioned in https://github.com/kubernetes-sigs/kind/issues/2240 there was a change
in the linux kernel after 5.12.2 that makes nf_conntrack_max read-only in non-init network
namespaces, which prevents kind's kube-proxy container from working correctly on kind versions
older than v0.11.1. This PS updates the script to download v0.11.1 to avoid this issue.
If older versions are needed, the kind url can be set as an environment variable as shown in
airshipctl/tools/deployment.provider_common/01_install_kind.sh.

Relates-To: #583
Change-Id: Icd9e649fa112e9f6307034ec69dde5d4a7ad613d
This commit is contained in:
Herrera, Josh (jh813b) 2021-09-24 12:26:36 -07:00 committed by Josh Herrera
parent 6d797812d3
commit 5e67f16c20

View File

@ -15,7 +15,7 @@
# This downloads kind, puts it in a temp directory, and prints the directory
set -e
: ${KIND_URL:="https://kind.sigs.k8s.io/dl/v0.10.0/kind-$(uname)-amd64"}
: ${KIND_URL:="https://kind.sigs.k8s.io/dl/v0.11.1/kind-$(uname)-amd64"}
TMP=$(mktemp -d)
KIND="${TMP}/kind"