From b3c92c8f4a9d20e17464ae69e4998a8fe5f15fb0 Mon Sep 17 00:00:00 2001 From: George Taylor Date: Mon, 18 Nov 2024 15:23:46 +0000 Subject: [PATCH] fix: environments with multiple opensearch proxies (#108) --- tools/scripts/opensearch-connect.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/scripts/opensearch-connect.sh b/tools/scripts/opensearch-connect.sh index 8e06e29..d9834cd 100755 --- a/tools/scripts/opensearch-connect.sh +++ b/tools/scripts/opensearch-connect.sh @@ -22,7 +22,7 @@ main() { fi # get opensearch proxy pod name - OPENSEARCH_PROXY_POD=$(kubectl get pods --namespace ${namespace} | grep 'opensearch-proxy-cloud-platform' | awk '{print $1}') + OPENSEARCH_PROXY_POD=$(kubectl get pods --namespace ${namespace} | grep 'opensearch-proxy-cloud-platform' | awk '{print $1}' | head -n 1) printf "\n****************************************************\n" printf "Connect to http://localhost:$PORT locally\n" printf "Press Ctrl+C to stop port forwarding \n"