Skip to content

Instantly share code, notes, and snippets.

@ilhamarrouf
Last active June 18, 2023 03:02
Show Gist options
  • Save ilhamarrouf/9902d6d7057c0976e0d96eb1d9a4fa41 to your computer and use it in GitHub Desktop.
Save ilhamarrouf/9902d6d7057c0976e0d96eb1d9a4fa41 to your computer and use it in GitHub Desktop.
Auto Script Setup k8s Utils
# setup with command $ bash <curl -s <raw url>)
# Kubectl
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256"
echo "$(cat kubectl.sha256) kubectl" | sha256sum --check
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
kubectl version --client
echo complete install kubectl
# Helm
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
echo complete install helm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment