Skip to content

Commit

Permalink
wait for app.kubernetes.io/component=controller
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed Jun 10, 2024
1 parent f05dc95 commit f547b57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/k8s-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@ jobs:
kubectl create namespace languagedepot
kubectl apply -k ./deployment/gha
kubectl wait --for=condition=Ready --timeout=90s pod -l 'app in (lexbox, ui, hg, db)' -n languagedepot
kubectl wait --for=condition=Ready --timeout=90s pod -l 'app.kubernetes.io/name=ingress-nginx' -n languagedepot
kubectl wait --for=condition=Ready --timeout=90s pod -l 'app.kubernetes.io/component=controller' -n languagedepot
- name: status
if: failure()
run: |
kubectl describe pods -l 'app in (lexbox, ui, hg, db)' -n languagedepot
echo "========== LOGS =========="
kubectl logs -l 'app in (lexbox, ui, hg, db)' -n languagedepot --prefix --all-containers --tail=50
echo "========== INGRESS =========="
kubectl logs -l 'app.kubernetes.io/name=ingress-nginx' -n languagedepot --prefix --all-containers --tail=50
- name: verify ingress
run: curl -v http://localhost
- name: test
Expand Down

0 comments on commit f547b57

Please sign in to comment.