Skip to content

Commit

Permalink
Fix ubuntu-cluster to use apiserver not etcd.
Browse files Browse the repository at this point in the history
  • Loading branch information
erictune committed Mar 12, 2015
1 parent 8d20282 commit 2255e6f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions cluster/ubuntu-cluster/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ do
item="$name=http://$i:2380"
if [ "$ii" == 1 ]; then
cluster=$item
#record the masterIP for later use.
masterIP=$i
else
cluster="$cluster,$item"
if [ "$ii" -gt 2 ]; then
Expand Down Expand Up @@ -162,6 +164,8 @@ while true; do
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/MASTER_IP/${masterIP}/g" default_scripts/kubelet
sed -i "s/MASTER_IP/${masterIP}/g" default_scripts/kube-proxy

# For master set MINION IPs in kube-controller-manager
minionIPs="$minionIPs,$myIP"
Expand Down
2 changes: 1 addition & 1 deletion cluster/ubuntu-cluster/default_scripts/kube-proxy
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# KUBE_PROXY="/opt/bin/kube-proxy"

# Use KUBE_PROXY_OPTS to modify the start/restart options
KUBE_PROXY_OPTS="--master=http://127.0.0.1:8080 \
KUBE_PROXY_OPTS="--master=http://MASTER_IP:8080 \
--logtostderr=true"

# Add more envionrment settings used by kube-apiserver here
2 changes: 1 addition & 1 deletion cluster/ubuntu-cluster/default_scripts/kubelet
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
KUBELET_OPTS="--address=0.0.0.0 \
--port=10250 \
--hostname_override=MY_IP \
--api_servers=http://127.0.0.1:8080 \
--api_servers=http://MASTER_IP:8080 \
--logtostderr=true"

# Add more envionrment settings used by kube-scheduler here

0 comments on commit 2255e6f

Please sign in to comment.