Skip to content

Instantly share code, notes, and snippets.

@kingspp
Last active September 14, 2016 05:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kingspp/26eb7ffcc2273bf94680cd9e1b1b22e2 to your computer and use it in GitHub Desktop.
Save kingspp/26eb7ffcc2273bf94680cd9e1b1b22e2 to your computer and use it in GitHub Desktop.
sudo apt-get install -y linux-image-extra-`uname -r`
sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get -y install docker-engine git bridge-utils
sudo ufw reload
if [ -f common_images.tar.xz ]; then
tar -xvf common_images.tar.xz && cd common_images/
else
wget https://www.dropbox.com/s/h11w35r0hcwtn8v/common_images.tar.xz
tar -xvf common_images.tar.xz && cd common_images/
fi
for f in `ls -1 *.deb | sed 's/\(.*\)\..*/\1/'`
do
sudo dpkg --force-all -i $f
done
echo "Commons Installation Completed"
cat <<EOT >> ~/.bashrc
export KUBE_VERSION=1.2.0
export FLANNEL_VERSION=0.5.0
export ETCD_VERSION=2.2.0
export nodes="$0 $1 $2"
export roles="ai i i"
export NUM_NODES=${NUM_NODES:-3}
export SERVICE_CLUSTER_IP_RANGE=192.168.3.0/24
export FLANNEL_NET=172.16.0.0/16
EOT
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment