Unverified Commit ad4b283e authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #63151 from YonatanKiron/enable-local-cluster-port-range

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Add optional flag of node port range **What this PR does / why we need it**: Add option of setting port range when using hack/local-up-cluster.sh **Which issue(s) this PR fixes** Inability to set port range flag **Release note**: ```release-note NONE ```
parents 7136cbce 0b7b2de8
...@@ -219,6 +219,7 @@ API_SECURE_PORT=${API_SECURE_PORT:-6443} ...@@ -219,6 +219,7 @@ API_SECURE_PORT=${API_SECURE_PORT:-6443}
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:-""} ADVERTISE_ADDRESS=${ADVERTISE_ADDRESS:-""}
NODE_PORT_RANGE=${NODE_PORT_RANGE:-""}
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}
...@@ -533,6 +534,10 @@ function start_apiserver { ...@@ -533,6 +534,10 @@ function start_apiserver {
if [[ "${ADVERTISE_ADDRESS}" != "" ]] ; then if [[ "${ADVERTISE_ADDRESS}" != "" ]] ; then
advertise_address="--advertise-address=${ADVERTISE_ADDRESS}" advertise_address="--advertise-address=${ADVERTISE_ADDRESS}"
fi fi
node_port_range=""
if [[ "${NODE_PORT_RANGE}" != "" ]] ; then
node_port_range="--service-node-port-range=${NODE_PORT_RANGE}"
fi
# Create CA signers # Create CA signers
if [[ "${ENABLE_SINGLE_CA_SIGNER:-}" = true ]]; then if [[ "${ENABLE_SINGLE_CA_SIGNER:-}" = true ]]; then
...@@ -574,6 +579,7 @@ function start_apiserver { ...@@ -574,6 +579,7 @@ function start_apiserver {
${CONTROLPLANE_SUDO} "${GO_OUT}/hyperkube" apiserver ${swagger_arg} ${audit_arg} ${authorizer_arg} ${priv_arg} ${runtime_config} \ ${CONTROLPLANE_SUDO} "${GO_OUT}/hyperkube" apiserver ${swagger_arg} ${audit_arg} ${authorizer_arg} ${priv_arg} ${runtime_config} \
${cloud_config_arg} \ ${cloud_config_arg} \
${advertise_address} \ ${advertise_address} \
${node_port_range} \
--v=${LOG_LEVEL} \ --v=${LOG_LEVEL} \
--vmodule="${LOG_SPEC}" \ --vmodule="${LOG_SPEC}" \
--cert-dir="${CERT_DIR}" \ --cert-dir="${CERT_DIR}" \
......
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