From ce6d3b7ea3276fa41226aa908b314b62b293fe74 Mon Sep 17 00:00:00 2001 From: resouer Date: Tue, 24 Feb 2015 10:36:07 +0000 Subject: [PATCH] Fix commands order & add guide in readme --- cluster/ubuntu-cluster/configure.sh | 45 ++++++++++++++------------- docs/getting-started-guides/README.md | 1 + 2 files changed, 25 insertions(+), 21 deletions(-) diff --git a/cluster/ubuntu-cluster/configure.sh b/cluster/ubuntu-cluster/configure.sh index c37a15929aff8..1f9b168015498 100755 --- a/cluster/ubuntu-cluster/configure.sh +++ b/cluster/ubuntu-cluster/configure.sh @@ -153,45 +153,48 @@ while true; do echo case $option in - [2] ) + [1] ) + # as both master and minion read -p "IP address of this machine > " myIP - echo + echo etcdName=${mm[$myIP]} inList $etcdName $myIP configEtcd $etcdName $myIP $cluster - # set MINION IPs in kube-controller-manager - sed -i "s/MINION_IPS/${minionIPs}/g" default_scripts/kube-controller-manager + # For minion set MINION IP in default_scripts/kubelet + sed -i "s/MY_IP/${myIP}/g" default_scripts/kubelet + + # For master set MINION IPs in kube-controller-manager + minionIPs="$minionIPs,$myIP" + sed -i "s/MINION_IPS/${minionIPs}/g" default_scripts/kube-controller-manager + cpMaster + cpMinion break ;; - [3] ) + [2] ) + # as master read -p "IP address of this machine > " myIP - echo + echo etcdName=${mm[$myIP]} inList $etcdName $myIP configEtcd $etcdName $myIP $cluster - # set MINION IP in default_scripts/kubelet - sed -i "s/MY_IP/${myIP}/g" default_scripts/kubelet - cpMinion + # set MINION IPs in kube-controller-manager + sed -i "s/MINION_IPS/${minionIPs}/g" default_scripts/kube-controller-manager + cpMaster break - ;; - [1] ) + ;; + [3] ) + # as minion read -p "IP address of this machine > " myIP - echo + echo etcdName=${mm[$myIP]} inList $etcdName $myIP configEtcd $etcdName $myIP $cluster - # For minion set MINION IP in default_scripts/kubelet - sed -i "s/MY_IP/${myIP}/g" default_scripts/kubelet - - # For master set MINION IPs in kube-controller-manager - minionIPs="$minionIPs,$myIP" - sed -i "s/MINION_IPS/${minionIPs}/g" default_scripts/kube-controller-manager - - cpMaster + # set MINION IP in default_scripts/kubelet + sed -i "s/MY_IP/${myIP}/g" default_scripts/kubelet cpMinion break - ;; + ;; * ) echo "Please choose 1 or 2 or 3." ;; diff --git a/docs/getting-started-guides/README.md b/docs/getting-started-guides/README.md index 806a0b9e12036..1135f5d0e14a0 100644 --- a/docs/getting-started-guides/README.md +++ b/docs/getting-started-guides/README.md @@ -14,6 +14,7 @@ AWS | Saltstack | Ubuntu | [docs](../../docs/getting-started-guide Vmware | CoreOS | CoreOS | [docs](../../docs/getting-started-guides/coreos.md) | Community (@kelseyhightower) | Azure | Saltstack | Ubuntu | [docs](../../docs/getting-started-guides/azure.md) | Community (@jeffmendoza) | Bare-metal | custom | Ubuntu | [docs](../../docs/getting-started-guides/ubuntu_single_node.md) | Community (@jainvipin) | +Bare-metal | custom | Ubuntu Cluster | [docs](../../docs/getting-started-guides/ubuntu_multinodes_cluster.md) | community (@resouer @WIZARD-CXY) | use k8s version 0.10.1 Local | | | [docs](../../docs/getting-started-guides/locally.md) | Inactive | Ovirt | | | [docs](../../docs/getting-started-guides/ovirt.md) | Inactive | Rackspace | CoreOS | CoreOS | [docs](../../docs/getting-started-guides/rackspace.md) | Inactive |