Skip to content

Commit

Permalink
libvirt-coreos: make kube-apiserver connect to all the etcd nodes of …
Browse files Browse the repository at this point in the history
…the cluster
  • Loading branch information
L3n41c committed Mar 19, 2015
1 parent cbf57ee commit f9d7186
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cluster/libvirt-coreos/user_data_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ coreos:
ExecStart=/opt/kubernetes/bin/kube-apiserver \
--address=0.0.0.0 \
--port=8080 \
--etcd_servers=http://127.0.0.1:4001 \
--etcd_servers=${etcd_servers} \
--kubelet_port=10250 \
--portal_net=${PORTAL_NET}
Restart=always
Expand Down
6 changes: 6 additions & 0 deletions cluster/libvirt-coreos/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,12 @@ function kube-up {

readonly machines=$(join , "${KUBE_MINION_IP_ADDRESSES[@]}")

etcd_servers=( $MASTER_IP ${MINION_IPS[@]} )
for (( i=0; i<${#etcd_servers[@]}; i++ )); do
etcd_servers[$i]=http://${etcd_servers[$i]}:4001
done
etcd_servers=$(join , ${etcd_servers[@]})

local i
for (( i = 0 ; i <= $NUM_MINIONS ; i++ )); do
if [[ $i -eq $NUM_MINIONS ]]; then
Expand Down

0 comments on commit f9d7186

Please sign in to comment.