From b87a0984c1c228a1312e445535e4c6b2163a10fb Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Thu, 27 Jul 2023 11:39:34 +0545 Subject: [PATCH] chore: logs for elastic search in post setup --- fixtures/datasources/_post_setup.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fixtures/datasources/_post_setup.sh b/fixtures/datasources/_post_setup.sh index 4de4ee4a8..6731e724b 100644 --- a/fixtures/datasources/_post_setup.sh +++ b/fixtures/datasources/_post_setup.sh @@ -2,3 +2,10 @@ echo "Running kubectl wait for elasticsearch" kubectl -n default wait --for=condition=ready pod -l app=elasticsearch --timeout=5m + +echo "Fetching elastic search health"; +curl -s "http://elasticsearch.default.svc.cluster.local:9200/_cluster/health" -H 'Content-Type: application/json'; +curl -s "http://elasticsearch.default.svc.cluster.local:9200/_cluster/allocation/explain" -H 'Content-Type: application/json'; + +echo "Fetching populate-db logs from elasticsearch pod"; +kubectl logs -n default -l app=elasticsearch -c populate-db \ No newline at end of file