Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Dump pod logs and describe pods based on karpenter pod labels #5278

Merged
merged 1 commit into from
Dec 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions .github/actions/e2e/dump-logs/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,19 @@ runs:
role-to-assume: arn:aws:iam::${{ inputs.account_id }}:role/${{ inputs.role }}
aws-region: ${{ inputs.region }}
role-duration-seconds: 21600
- name: controller-logs
- name: update cluster context
shell: bash
run: |
aws eks update-kubeconfig --name ${{ inputs.cluster_name }}
POD_NAME=$(kubectl get pods -n kube-system --no-headers -o custom-columns=":metadata.name" | tail -n 1)
echo "logs from pod ${POD_NAME}"
kubectl logs "${POD_NAME}" -n kube-system -c controller
- name: describe-karpenter-pods
- name: controller-logs
shell: bash
run: |
aws eks update-kubeconfig --name ${{ inputs.cluster_name }}
kubectl describe pods -n kube-system
- name: describe-nodes
kubectl logs -n kube-system -l app.kubernetes.io/name=karpenter --all-containers --ignore-errors
- name: describe karpenter pods
shell: bash
run: |
kubectl describe pods -n kube-system -l app.kubernetes.io/name=karpenter
- name: describe nodes
shell: bash
run: |
aws eks update-kubeconfig --name ${{ inputs.cluster_name }}
kubectl describe nodes