Skip to content

Instantly share code, notes, and snippets.

@Souheil-Yazji
Last active November 4, 2023 01:22
Show Gist options
  • Save Souheil-Yazji/4720d86a763068263585bd562c21c88c to your computer and use it in GitHub Desktop.
Save Souheil-Yazji/4720d86a763068263585bd562c21c88c to your computer and use it in GitHub Desktop.
K8s DevOps essentials installer
# Make the script executable
# chmod +x install-tools.sh
# Run the script
# ./install-tools.sh
KUBECTL_VERSION=latest # vX.XX.XX should be atleast +/- 1 version of your kubernetes version
KUBECTL_URL=https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl
KUBECTL_CHECKSUM=https://dl.k8s.io/release/$(KUBECTL_VERSION)/bin/linux/amd64/kubectl.sha256
AZCLI_URL=https://aka.ms/InstallAzureCLIDeb
ARGO_CLI_VERSION=latest # v3.4.5
ARGO_CLI_URL=https://github.com/argoproj/argo-workflows/releases/download/${ARGO_CLI_VERSION}/argo-linux-amd64.gz
# kubectl
curl -LO "${KUBECTL_URL}" \
&& curl -LO "https://dl.k8s.io/release/KUBECTL_URL/bin/linux/amd64/kubectl.sha256" \
&& echo "${KUBECTL_SHA} kubectl" | sha256sum -c - \
&& chmod +x ./kubectl \
&& sudo mv ./kubectl /usr/local/bin/kubectl \
&& \
# AzureCLI - installation script from Azure
curl -sLO "${AZCLI_URL}" \
&& bash InstallAzureCLIDeb \
&& rm InstallAzureCLIDeb \
&& echo "azcli: ok" \
&& \
# argo cli
curl -sLO ${ARGO_CLI_URL}\
&& echo "${ARGO_CLI_SHA} argo-linux-amd64.gz" | sha256sum -c - \
&& gunzip argo-linux-amd64.gz \
&& chmod +x argo-linux-amd64 \
&& sudo mv ./argo-linux-amd64 /usr/local/bin/argo \
&& argo version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment