Skip to content

Commit

Permalink
Delete extra spaces in configure.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
resouer committed Feb 25, 2015
1 parent ce6d3b7 commit 031e75a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions cluster/ubuntu-cluster/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,15 @@ while true; do
[1] )
# as both master and 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
sed -i "s/MY_IP/${myIP}/g" default_scripts/kubelet

# For master set MINION IPs in kube-controller-manager
minionIPs="$minionIPs,$myIP"
minionIPs="$minionIPs,$myIP"
sed -i "s/MINION_IPS/${minionIPs}/g" default_scripts/kube-controller-manager

cpMaster
Expand All @@ -176,25 +176,25 @@ while true; do
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
sed -i "s/MINION_IPS/${minionIPs}/g" default_scripts/kube-controller-manager
cpMaster
break
;;
[3] )
[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
# 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."
;;
Expand Down

0 comments on commit 031e75a

Please sign in to comment.