Skip to content

Commit

Permalink
ci: Dump pod logs and describe pods based on karpenter pod labels (#5278
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jonathan-innis authored Dec 8, 2023
1 parent 99cfbaf commit c1f1b71
Showing 1 changed file with 8 additions and 9 deletions.
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

0 comments on commit c1f1b71

Please sign in to comment.