fix set advertise address in local cluster

This commit is contained in:
xilabao 2016-12-07 18:12:14 +08:00
parent f920391755
commit 0517fe2c1d

View File

@ -431,10 +431,10 @@ function start_apiserver {
runtime_config="--runtime-config=${RUNTIME_CONFIG}" runtime_config="--runtime-config=${RUNTIME_CONFIG}"
fi fi
# Let the API server pick a default address when API_HOST # Let the API server pick a default address when API_HOST_IP
# is set to 127.0.0.1 # is set to 127.0.0.1
advertise_address="" advertise_address=""
if [[ "${API_HOST}" != "127.0.0.1" ]]; then if [[ "${API_HOST_IP}" != "127.0.0.1" ]]; then
advertise_address="--advertise_address=${API_HOST_IP}" advertise_address="--advertise_address=${API_HOST_IP}"
fi fi