Skip to content

Commit

Permalink
Merge pull request kubernetes#4769 from resouer/fix-mess
Browse files Browse the repository at this point in the history
Fix commands order & add guide in k8s-ubuntu-cluster readme
  • Loading branch information
rjnagal committed Feb 25, 2015
2 parents 86434b4 + 031e75a commit 0bc98a7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 22 deletions.
47 changes: 25 additions & 22 deletions cluster/ubuntu-cluster/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,42 +153,45 @@ while true; do
echo

case $option in
[2] )
[1] )
# as both master and minion
read -p "IP address of this machine > " myIP
echo
etcdName=${mm[$myIP]}
inList $etcdName $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
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
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
;;
Expand Down
1 change: 1 addition & 0 deletions docs/getting-started-guides/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down

0 comments on commit 0bc98a7

Please sign in to comment.