From 21d976868f876f710387e56f3835d6598988c5fa Mon Sep 17 00:00:00 2001 From: Morgan Bauer Date: Fri, 3 Feb 2017 00:47:15 +0000 Subject: [PATCH] print apiserver log location on apiserver error --- hack/local-up-cluster.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index e9cbe0f0a5..ad27893e3c 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -428,7 +428,8 @@ function start_apiserver { # this uses the API port because if you don't have any authenticator, you can't seem to use the secure port at all. # this matches what happened with the combination in 1.4. # TODO change this conditionally based on whether API_PORT is on or off - kube::util::wait_for_url "http://${API_HOST}:${API_PORT}/version" "apiserver: " 1 ${WAIT_FOR_URL_API_SERVER} || exit 1 + kube::util::wait_for_url "http://${API_HOST}:${API_PORT}/version" "apiserver: " 1 ${WAIT_FOR_URL_API_SERVER} \ + || { echo "check apiserver logs: ${APISERVER_LOG}" ; exit 1 ; } # Create kubeconfigs for all components, using client certs kube::util::write_client_kubeconfig "${CONTROLPLANE_SUDO}" "${CERT_DIR}" "${ROOT_CA_FILE}" "${API_HOST}" "${API_SECURE_PORT}" admin