-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add local cluster integration tests (#186)
Create a cluster with local images and run some tests on it
- Loading branch information
1 parent
5a4012d
commit fb4578c
Showing
3 changed files
with
112 additions
and
106 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/sh | ||
|
||
PATH=$PATH:~/.config/farmvibes-ai | ||
|
||
echo "kubectl location:" | ||
which kubectl | ||
|
||
echo "Cluster pods:" | ||
kubectl get pods | ||
kubectl get pods -o yaml | ||
|
||
echo "Docker images:" | ||
docker images | ||
|
||
echo "REST API description:" | ||
kubectl describe deployment terravibes-rest-api | ||
|
||
echo "Orchestrator description:" | ||
kubectl describe deployment terravibes-orchestrator | ||
|
||
echo "Worker description:" | ||
kubectl describe deployment terravibes-worker | ||
|
||
echo "Cache description:" | ||
kubectl describe deployment terravibes-cache | ||
|
||
echo "REST API logs:" | ||
kubectl logs -l app=terravibes-rest-api --all-containers=true --tail=-1 | ||
|
||
echo "Orchestrator logs:" | ||
kubectl logs -l app=terravibes-orchestrator --all-containers=true --tail=-1 | ||
|
||
echo "Worker logs:" | ||
kubectl logs -l app=terravibes-worker --max-log-requests=8 --all-containers=true --tail=-1 | ||
|
||
echo "Cache logs:" | ||
kubectl logs -l app=terravibes-cache --all-containers=true --tail=-1 | ||
|
||
echo "Data Ops logs:" | ||
kubectl logs -l app=terravibes-data-ops --all-containers=true --tail=-1 | ||
|
||
echo "Kubernetes logs:" | ||
docker ps | egrep 'k3d-farmvibes-ai-.*-0' | awk '{ print $1 }' | xargs docker logs |