From b1d53d068dd17d02c5534a3df49975d18893ac9c Mon Sep 17 00:00:00 2001 From: Osama Bin Junaid <32925504+ibnjunaid@users.noreply.github.com> Date: Sat, 13 Apr 2024 17:10:40 +0530 Subject: [PATCH] Update installtools.md to download eksctl from eksctl-io instead of weaveworks repo --- content/prerequisites/installtools.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/content/prerequisites/installtools.md b/content/prerequisites/installtools.md index a96baea..d35e4da 100644 --- a/content/prerequisites/installtools.md +++ b/content/prerequisites/installtools.md @@ -29,8 +29,18 @@ sudo chmod +x /usr/local/bin/kubectl echo 'source <(kubectl completion bash)' >>~/.bashrc source ~/.bashrc -curl --silent --location "https://github.com/weaveworks/eksctl/releases/download/latest_release/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp -sudo mv -v /tmp/eksctl /usr/local/bin +# for ARM systems, set ARCH to: `arm64`, `armv6` or `armv7` +ARCH=amd64 +PLATFORM=$(uname -s)_$ARCH + +curl -sLO "https://github.com/eksctl-io/eksctl/releases/latest/download/eksctl_$PLATFORM.tar.gz" + +# (Optional) Verify checksum +curl -sL "https://github.com/eksctl-io/eksctl/releases/latest/download/eksctl_checksums.txt" | grep $PLATFORM | sha256sum --check + +tar -xzf eksctl_$PLATFORM.tar.gz -C /tmp && rm eksctl_$PLATFORM.tar.gz + +sudo mv /tmp/eksctl /usr/local/bin if ! [ -x "$(command -v jq)" ] || ! [ -x "$(command -v envsubst)" ] || ! [ -x "$(command -v kubectl)" ] || ! [ -x "$(command -v eksctl)" ] || ! [ -x "$(command -v ssm-cli)" ]; then echo 'ERROR: tools not installed.' >&2