Skip to content

Instantly share code, notes, and snippets.

@HauptJ
Last active January 18, 2026 21:55
Show Gist options
  • Select an option

  • Save HauptJ/b321a760b14b5129a041a481754bbc2d to your computer and use it in GitHub Desktop.

Select an option

Save HauptJ/b321a760b14b5129a041a481754bbc2d to your computer and use it in GitHub Desktop.
Bash Script to Install KIND
#!/usr/bin/env bash
set -e
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
bin_name=kind
version=0.31.0
arch=$(uname -m)
tmp_dl_path=/tmp/$bin_name
install_path=/usr/local/bin/$bin_name
case $arch in
x86_64)
curl -Lo $tmp_dl_path https://kind.sigs.k8s.io/dl/v$version/kind-linux-amd64
;;
aarch64)
curl -Lo $tmp_dl_path https://kind.sigs.k8s.io/dl/v$version/kind-linux-arm64
;;
*)
echo "unsupported architecture"
exit 1
;;
esac
mv $tmp_dl_path $install_path
chmod +x $install_path
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment