Skip to content

Commit

Permalink
Merge pull request #6060 from ZJU-SEL/hotfix
Browse files Browse the repository at this point in the history
[ubuntu-cluster] fix a serious bug when node both act as master and minion
  • Loading branch information
brendandburns committed Mar 27, 2015
2 parents 41fbad2 + 88dca56 commit 308049e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cluster/ubuntu-cluster/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ do
mm[$i]=$name
let ii++
done
echo

# input node IPs
while true; do
Expand All @@ -168,7 +167,13 @@ while true; do
sed -i "s/MASTER_IP/${masterIP}/g" default_scripts/kube-proxy

# For master set MINION IPs in kube-controller-manager
minionIPs="$minionIPs,$myIP"
if [ -z "$minionIPs" ]; then
#one node act as both minion and master role
minionIPs="$myIP"
else
minionIPs="$minionIPs,$myIP"
fi

sed -i "s/MINION_IPS/${minionIPs}/g" default_scripts/kube-controller-manager

cpMaster
Expand Down

0 comments on commit 308049e

Please sign in to comment.