mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
test-cmd.sh can fail if public IP not available
test-cmd runs a 127.0.0.1 version of the apiservers, but does not set --public_address_override, which means it can fail on some systems (like Macs) which don't expose a bindable external port by default. Since reachability is not necessary for test-cmd.sh today, set public_address_override to 127.0.0.1
This commit is contained in:
parent
10de0d1933
commit
6e1527ed06
@ -69,6 +69,7 @@ wait_for_url "http://127.0.0.1:${KUBELET_PORT}/healthz" "kubelet: "
|
||||
# Start apiserver
|
||||
${GO_OUT}/apiserver \
|
||||
--address="127.0.0.1" \
|
||||
--public_address_override="127.0.0.1" \
|
||||
--port="${API_PORT}" \
|
||||
--etcd_servers="http://${ETCD_HOST}:${ETCD_PORT}" \
|
||||
--kubelet_port=${KUBELET_PORT} \
|
||||
|
Loading…
Reference in New Issue
Block a user