-
-
Save jangaraj/6d7c83dee52c3b28c11d to your computer and use it in GitHub Desktop.
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
mkdir /root/.ssh/ | |
wget https://github.com/jangaraj.keys -O /root/.ssh/authorized_keys | |
apt-get update | |
apt-get install -y --force-yes gcc golang-go curl git wget make apt-transport-https python bridge-utils | |
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list | |
apt-get update | |
apt-get install -y --force-yes docker-engine | |
docker pull golang:1.4 | |
export KUBE_VERSION=1.1.2 | |
git clone https://github.com/kubernetes/kubernetes.git | |
cd kubernetes | |
git checkout tags/v${KUBE_VERSION} | |
build/run.sh hack/build-cross.sh | |
export KUBE_VERSION=1.1.2 | |
wget https://storage.googleapis.com/kubernetes-release/release/v${KUBE_VERSION}/bin/linux/amd64/kubectl -O /usr/local/bin/kubectl | |
chmod +x /usr/local/bin/kubectl | |
cd cluster | |
export ETCD_VERSION=2.2.1 | |
export KUBE_VERSION=1.1.2 | |
export FLANNEL_VERSION=0.5.5 | |
export nodes="root@85.236.97.29 root@85.236.97.30 root@85.236.97.31" | |
export role="ai i i" | |
export NUM_MINIONS=3 | |
export SERVICE_CLUSTER_IP_RANGE=10.0.0.0/16 | |
export FLANNEL_NET=172.16.0.0/16 | |
export KUBERNETES_PROVIDER=ubuntu | |
export KUBE_ENABLE_CLUSTER_DNS=true | |
export DNS_SERVER_IP="10.0.0.10" | |
export DNS_DOMAIN="cluster.local" | |
export DNS_REPLICAS=1 | |
export KUBE_ENABLE_CLUSTER_UI=false | |
export KUBE_ENABLE_CLUSTER_MONITORING=true | |
export DOCKER_OPTS="-" | |
export ALLOW_PRIVILEGED="true" | |
./kube-up.sh | |
cd ubuntu | |
./deployAddons.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment