Last active
September 14, 2016 05:01
-
-
Save kingspp/26eb7ffcc2273bf94680cd9e1b1b22e2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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 |
This file contains hidden or 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
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" | |
This file contains hidden or 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
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