Skip to content

Commit 40bb21a

Browse files
committed
ci: collect k8s events before logs
1 parent 111f60c commit 40bb21a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,9 +441,9 @@ Collect container logs:
441441
when: always
442442
allow_failure: true
443443
script:
444+
- kubectl -n $K8S_NAMESPACE events | tee $K8S_NAMESPACE-events.log
444445
- kubectl -n $K8S_NAMESPACE get pods | grep Running | awk '{print $1}' | xargs -n1 kubectl -n $K8S_NAMESPACE logs | tee $K8S_NAMESPACE.log
445446
- kubectl -n $K8S_NAMESPACE run -i --rm --restart=Never -q --image=edenhill/kcat:1.7.1 kcat -- kcat -C -t billing -b billing-kafka:9092 -p 0 -e -q | tee $K8S_NAMESPACE-billing.json
446-
- kubectl -n $K8S_NAMESPACE events | tee $K8S_NAMESPACE-events.log
447447
artifacts:
448448
name: "logs-$CI_PIPELINE_ID"
449449
paths:

0 commit comments

Comments
 (0)