hack/local-up-cluster.sh: improve messages when script was running with ENABLE_DAEMON=true

pull/6/head
Slava Semushin 2017-12-12 16:41:19 +01:00
parent 51fbd6e637
commit 9d34fee57c
1 changed files with 10 additions and 2 deletions

View File

@ -833,8 +833,12 @@ function create_storage_class {
function print_success {
if [[ "${START_MODE}" != "kubeletonly" ]]; then
if [[ "${ENABLE_DAEMON}" = false ]]; then
echo "Local Kubernetes cluster is running. Press Ctrl-C to shut it down."
else
echo "Local Kubernetes cluster is running."
fi
cat <<EOF
Local Kubernetes cluster is running. Press Ctrl-C to shut it down.
Logs:
${APISERVER_LOG:-}
@ -858,8 +862,12 @@ fi
if [[ "${START_MODE}" != "kubeletonly" ]]; then
echo
if [[ "${ENABLE_DAEMON}" = false ]]; then
echo "To start using your cluster, you can open up another terminal/tab and run:"
else
echo "To start using your cluster, run:"
fi
cat <<EOF
To start using your cluster, you can open up another terminal/tab and run:
export KUBECONFIG=${CERT_DIR}/admin.kubeconfig
cluster/kubectl.sh