diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index 0d48496d475..54e9cee2ffa 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -496,10 +496,10 @@ function start_apiserver { # is set to 127.0.0.1 advertise_address="" if [[ "${API_HOST_IP}" != "127.0.0.1" ]]; then - advertise_address="--advertise_address=${API_HOST_IP}" + advertise_address="--advertise-address=${API_HOST_IP}" fi if [[ "${ADVERTISE_ADDRESS}" != "" ]] ; then - advertise_address="--advertise_address=${ADVERTISE_ADDRESS}" + advertise_address="--advertise-address=${ADVERTISE_ADDRESS}" fi # Create CA signers