Skip to content

Commit

Permalink
Troubleshooting k3s failures
Browse files Browse the repository at this point in the history
  • Loading branch information
jk464 committed May 21, 2024
1 parent a7679c0 commit e94ddec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
push:
branches:
- master
- bugfix/random-k8s-failures
schedule:
- cron: "0 1 * * *"
workflow_dispatch:
Expand Down Expand Up @@ -66,3 +67,8 @@ jobs:
if: ${{ always() }}
run: |
kubectl get all
- name: Get logs of Failed Kubernetes Pods
if: ${{ failure() }}
run: |
for pod in $(kubectl get pods | grep -v NAME | grep -v Running | grep -v Completed | awk '{print $1}'); do echo "Getting logs for pod $pod"; kubectl logs -p $pod; done

0 comments on commit e94ddec

Please sign in to comment.