Skip to content

Commit

Permalink
Merge pull request kubernetes#6141 from zmerlynn/master_by_name
Browse files Browse the repository at this point in the history
GCE node salt: Use the master FQDN, not the master IP
  • Loading branch information
gmarek committed Mar 30, 2015
2 parents aa29f84 + 708553f commit 7bbf526
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cluster/gce/configure-vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -324,15 +324,15 @@ EOF
}

function salt-set-apiserver() {
local kube_master_ip
until kube_master_ip=$(getent hosts ${KUBERNETES_MASTER_NAME} | cut -f1 -d\ ); do
local kube_master_fqdn
until kube_master_fqdn=$(getent hosts ${KUBERNETES_MASTER_NAME} | awk '{ print $2 }'); do
echo 'Waiting for DNS resolution of ${KUBERNETES_MASTER_NAME}...'
sleep 3
done

cat <<EOF >>/etc/salt/minion.d/grains.conf
api_servers: '${kube_master_ip}'
apiservers: '${kube_master_ip}'
api_servers: '${kube_master_fqdn}'
apiservers: '${kube_master_fqdn}'
EOF
}

Expand Down

0 comments on commit 7bbf526

Please sign in to comment.