Last active
May 3, 2017 12:19
-
-
Save cedbossneo/9e331a8136a37a7304051d4fa730bc14 to your computer and use it in GitHub Desktop.
bootstrap-training
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 | |
# Create an environment variable for the correct distribution | |
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" | |
# Add the Cloud SDK distribution URI as a package source | |
echo "deb https://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list | |
# Import the Google Cloud Platform public key | |
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
# Update the package list and install the Cloud SDK | |
apt-get update && sudo apt-get install -y google-cloud-sdk kubectl nano unzip git | |
wget -O /usr/bin/kops https://github.com/kubernetes/kops/releases/download/1.5.3/kops-linux-amd64 | |
chmod +x /usr/bin/kops | |
gcloud config set compute/zone europe-west1-b | |
gcloud container clusters create training-cluster-$1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment