Created
February 10, 2020 00:17
-
-
Save neklaf/937c39548524e04f2a4978d7d4d2846b to your computer and use it in GitHub Desktop.
Script to setup packages needed to install a K8s node v 1.17.00
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Some auxiliar packages will be installed using cloud-init configuration | |
#KUBE_VERSION=$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt) | |
K8S_VERSION=v1.17.0 | |
printf "Installing cfssl cfssljson...\n" | |
wget -q --show-progress --https-only --timestamping \ | |
https://storage.googleapis.com/kubernetes-the-hard-way/cfssl/linux/cfssl \ | |
https://storage.googleapis.com/kubernetes-the-hard-way/cfssl/linux/cfssljson | |
chmod +x cfssl cfssljson | |
sudo mv cfssl cfssljson /usr/local/bin/ | |
printf "cfssl cfssljson done!\n" | |
printf "Installing kubectl...\n" | |
curl -LO https://storage.googleapis.com/kubernetes-release/release/${K8S_VERSION}/bin/linux/amd64/kubectl | |
chmod +x kubectl | |
sudo mv kubectl /usr/local/bin/ | |
printf "kubectl done!\n" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment