Skip to content

Instantly share code, notes, and snippets.

@ramitsurana
Created August 2, 2016 14:21
Show Gist options
  • Save ramitsurana/19ef00d8b44dee71af233b9c401cc141 to your computer and use it in GitHub Desktop.
Save ramitsurana/19ef00d8b44dee71af233b9c401cc141 to your computer and use it in GitHub Desktop.
k8s-setup-full
wget https://github.com/GoogleCloudPlatform/kubernetes/releases/download/v1.3.0/kubernetes.tar.gz
tar xvf kubernetes
cd kubernetes/cluster/ubuntu
./download-release.sh
# The above steps will install binaries under the ubuntu directory
# You can check it under binaries directory
vim config-default.sh
#Please change the following entries
# export nodes="root@127.0.0.1" //Url for showing up nodes.Please change it to the node which you want to proceed with
# export roles="ai" //a = master,i = node
# export NUM_MINIONS=${NUM_MINIONS:-1}
cd ..
KUBERNETES_PROVIDER=ubuntu ./kube-up.sh
# For configuring kubectl
# Check your version of system and hardware
# Kubernetes 1.3 ships with all kubectl packages for all the platforms
# In my case it is Linux (amd64)
cd ..
cd platforms/linux/amd64/
chmod +x kubectl
cp kubectl /usr/local/bin/kubectl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment