diff --git a/cluster/ubuntu-cluster/build.sh b/cluster/ubuntu-cluster/build.sh index b4e6de967da..52896f509bc 100755 --- a/cluster/ubuntu-cluster/build.sh +++ b/cluster/ubuntu-cluster/build.sh @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -# simple use the sed to replace some ip settings on user's demand +# Download the etcd, flannel, and K8s binaries automatically # Run as root only # author @resouer @@ -51,10 +51,12 @@ if [ ! -f etcd.tar.gz ] ; then fi cp $ETCD/etcd $ETCD/etcdctl binaries -# kuber +# k8s echo "Download kubernetes release ..." + +K8S_V="v0.12.0" if [ ! -f kubernetes.tar.gz ] ; then - curl -L https://github.com/GoogleCloudPlatform/kubernetes/releases/download/v0.10.1/kubernetes.tar.gz -o kubernetes.tar.gz + curl -L https://github.com/GoogleCloudPlatform/kubernetes/releases/download/$K8S_V/kubernetes.tar.gz -o kubernetes.tar.gz tar xzf kubernetes.tar.gz fi pushd kubernetes/server diff --git a/docs/getting-started-guides/ubuntu_multinodes_cluster.md b/docs/getting-started-guides/ubuntu_multinodes_cluster.md index f75c866e61c..ba1173b94c4 100644 --- a/docs/getting-started-guides/ubuntu_multinodes_cluster.md +++ b/docs/getting-started-guides/ubuntu_multinodes_cluster.md @@ -20,10 +20,15 @@ This document describes how to deploy kubernetes on multiple ubuntu nodes, inclu On your laptop, copy `cluster/ubuntu-cluster` directory to your workspace. The `build.sh` will download and build all the needed binaries into `./binaries`. + +You can customize your etcd version or K8s version in the build.sh by changing variable `ETCD_V` and `K8S_V`, default etcd version is 2.0.0 and K8s version is 0.12.0. + + ``` $ cd cluster/ubuntu-cluster $ sudo ./build.sh ``` + Please copy all the files in `./binaries` into `/opt/bin` of every machine you want to run as Kubernetes cluster node.