Commit 7790e5e5 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #34275 from bvandewalle/bindAddressParameter

Automatic merge from submit-queue user-parameter support for API_BIND_ADDRESS in local-up-cluster.sh **What this PR does / why we need it**: Fixes #34262. user-parameter for the secure api bind address when running a local dev cluster. Default bind-address is `0.0.0.0` if not specified by the user. I'm guessing this was the intended behaviour of the original code. Allow to reach the secure API on different interfaces/IPs when running a dev local-up-cluster.
parents b5145e19 f1b1c92a
...@@ -123,7 +123,7 @@ set +e ...@@ -123,7 +123,7 @@ set +e
API_PORT=${API_PORT:-8080} API_PORT=${API_PORT:-8080}
API_HOST=${API_HOST:-127.0.0.1} API_HOST=${API_HOST:-127.0.0.1}
API_HOST_IP=${API_HOST_IP:-${API_HOST}} API_HOST_IP=${API_HOST_IP:-${API_HOST}}
API_BIND_ADDR=${API_HOST_IP:-"0.0.0.0"} API_BIND_ADDR=${API_BIND_ADDR:-"0.0.0.0"}
KUBELET_HOST=${KUBELET_HOST:-"127.0.0.1"} KUBELET_HOST=${KUBELET_HOST:-"127.0.0.1"}
# By default only allow CORS for requests on localhost # By default only allow CORS for requests on localhost
API_CORS_ALLOWED_ORIGINS=${API_CORS_ALLOWED_ORIGINS:-"/127.0.0.1(:[0-9]+)?$,/localhost(:[0-9]+)?$"} API_CORS_ALLOWED_ORIGINS=${API_CORS_ALLOWED_ORIGINS:-"/127.0.0.1(:[0-9]+)?$,/localhost(:[0-9]+)?$"}
......
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