From bfe432b94132b4c86b8380fedc4ecb07f1414e12 Mon Sep 17 00:00:00 2001 From: Christian Kreuzberger Date: Mon, 17 May 2021 15:14:56 +0200 Subject: [PATCH] #157 Improve output of configure-istio.sh script Signed-off-by: Christian Kreuzberger --- istio-configuration/configure-istio.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/istio-configuration/configure-istio.sh b/istio-configuration/configure-istio.sh index d7344c7..3ca64c6 100755 --- a/istio-configuration/configure-istio.sh +++ b/istio-configuration/configure-istio.sh @@ -8,10 +8,15 @@ export INGRESS_IP=$(kubectl -n istio-system get svc istio-ingressgateway -o json # Check if IP-Address is not empty or pending if [ -z "$INGRESS_IP" ] || [ "$INGRESS_IP" = "Pending" ] ; then - echo "INGRESS_IP is empty. Make sure that the Ingress gateway is ready" + echo "Could not determine the external IP address of istio-ingressgateway in namespace istio-system. Please make sure it is ready and has an external IP address:" + echo " - kubectl -n istio-system get svc istio-ingressgateway" + echo "" + echo "Please consult the istio docs for more information: https://istio.io/latest/docs/tasks/traffic-management/ingress/ingress-control/#determining-the-ingress-ip-and-ports" exit 1 fi +echo "External IP for istio-ingressgateway is ${INGRESS_IP}, creating configmaps..." + # Applying ingress-manifest kubectl apply -f - <