Skip to content

Commit

Permalink
chore: logs for elastic search in post setup
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed Jul 27, 2023
1 parent 752082e commit b87a098
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fixtures/datasources/_post_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b87a098

Please sign in to comment.