Skip to content

Commit 3e6b01e

Browse files
committed
ci: describe pods
1 parent d0cf43e commit 3e6b01e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/k8s-e2e/apm/e2e-apm.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,18 @@ scenarios:
1515
- kubectl run ${SCENARIO_TAG}-dotnet --dry-run=client --image=ghcr.io/open-telemetry/opentelemetry-operator/e2e-test-app-dotnet:main -o yaml | kubectl label app=dotneteapp -f - --local -o yaml | kubectl create -f -
1616
- kubectl run ${SCENARIO_TAG}-node --dry-run=client --image=ghcr.io/open-telemetry/opentelemetry-operator/e2e-test-app-nodejs:main -o yaml | kubectl label app=nodeapp -f - --local -o yaml | kubectl create -f -
1717
- kubectl create -f ./rubyapp.yaml --dry-run=client -o yaml | sed s/placeholder/${SCENARIO_TAG}-ruby/ | kubectl create -f -
18+
- sleep 60
19+
# describe failing deployments
20+
- kubectl describe pod -l app=pythonapp
21+
- kubectl describe pod -l app=nodeapp
22+
- kubectl describe pod -l app=rubyapp
23+
# log failing apps
24+
- kubectl logs --tail=-1 -l app=pythonapp --all-containers --prefix=true -n newrelic-agents
25+
- kubectl logs --tail=-1 -l app=nodeapp --all-containers --prefix=true -n newrelic-agents
26+
- kubectl logs --tail=-1 -l app=rubyapp --all-containers --prefix=true -n newrelic-agents
1827

1928
# Generate some traffic
20-
- kubectl wait --for=condition=Ready --all pods --timeout 10m
29+
- kubectl wait --for=condition=Ready --all pods --timeout 5m
2130
- timeout 60s bash -c "until kubectl exec ${SCENARIO_TAG}-python -c ${SCENARIO_TAG}-python -- wget -qO /dev/null 127.0.0.1:8080; do echo 'Python not ready yet. Retrying...';sleep 5;done"
2231
- seq 100 | xargs -I{} kubectl exec ${SCENARIO_TAG}-python -c ${SCENARIO_TAG}-python -- wget -qO /dev/null 127.0.0.1:8080
2332
- timeout 60s bash -c "until kubectl exec ${SCENARIO_TAG}-node -c ${SCENARIO_TAG}-node -- wget -qO /dev/null 127.0.0.1:3000/rolldice; do echo 'Node not ready yet. Retrying...';sleep 5;done"

0 commit comments

Comments
 (0)