From 8ff6864ae9f7b6f2de4abb715ccabbe11bd653a5 Mon Sep 17 00:00:00 2001 From: helenxie-bit Date: Tue, 17 Sep 2024 21:41:16 -0700 Subject: [PATCH] check the logs of kubelet Signed-off-by: helenxie-bit --- .github/workflows/e2e-test-tune-api.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/e2e-test-tune-api.yaml b/.github/workflows/e2e-test-tune-api.yaml index 909d0022ce5..f374c72c291 100644 --- a/.github/workflows/e2e-test-tune-api.yaml +++ b/.github/workflows/e2e-test-tune-api.yaml @@ -56,6 +56,14 @@ jobs: kubectl describe pod $POD_NAME -n default kubectl logs $POD_NAME -n default kubectl get events -n default | grep "tune-example-2" + + # Step to fetch kubelet logs from Minikube + - name: Fetch Kubelet Logs + if: always() # Run this step even if previous steps fail + shell: bash + run: | + echo "Fetching kubelet logs from Minikube..." + minikube ssh "sudo journalctl -u kubelet" strategy: fail-fast: false