Commit 11f80477 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #49729 from LihuaWu/feature-zjt

Automatic merge from submit-queue fix hack/local-up-cluster.sh apiserver not listening bug **What this PR does / why we need it**: This PR fix a potential bug int hack/local-up-cluster.sh and it helps developers to build local cluster properly **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # fix #49728 **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
parents aba3339f e0fefbee
...@@ -198,6 +198,7 @@ API_SECURE_PORT=${API_SECURE_PORT:-6443} ...@@ -198,6 +198,7 @@ API_SECURE_PORT=${API_SECURE_PORT:-6443}
# WARNING: For DNS to work on most setups you should export API_HOST as the docker0 ip address, # WARNING: For DNS to work on most setups you should export API_HOST as the docker0 ip address,
API_HOST=${API_HOST:-localhost} API_HOST=${API_HOST:-localhost}
API_HOST_IP=${API_HOST_IP:-"127.0.0.1"} API_HOST_IP=${API_HOST_IP:-"127.0.0.1"}
ADVERTISE_ADDRESS=${ADVERTISE_ADDRESS:-""}
API_BIND_ADDR=${API_BIND_ADDR:-"0.0.0.0"} API_BIND_ADDR=${API_BIND_ADDR:-"0.0.0.0"}
EXTERNAL_HOSTNAME=${EXTERNAL_HOSTNAME:-localhost} EXTERNAL_HOSTNAME=${EXTERNAL_HOSTNAME:-localhost}
...@@ -451,6 +452,9 @@ function start_apiserver { ...@@ -451,6 +452,9 @@ function start_apiserver {
if [[ "${API_HOST_IP}" != "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
if [[ "${ADVERTISE_ADDRESS}" != "" ]] ; then
advertise_address="--advertise_address=${ADVERTISE_ADDRESS}"
fi
# Create CA signers # Create CA signers
if [[ "${ENABLE_SINGLE_CA_SIGNER:-}" = true ]]; then if [[ "${ENABLE_SINGLE_CA_SIGNER:-}" = true ]]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment