Skip to content

Commit

Permalink
ensure that kind forwards localhost:80 to ingress in gha
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed Jun 10, 2024
1 parent b327dec commit ab377f1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/k8s-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
execute:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -18,6 +19,8 @@ jobs:
- run: task setup-local-env
- name: setup k8s
uses: helm/[email protected]
with:
config: deployment/gha/kind.yaml
- name: Verify k8s
run: |
kubectl cluster-info
Expand All @@ -33,6 +36,8 @@ jobs:
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
- name: verify ingress
run: curl -v http://localhost
- name: test
env:
TEST_SERVER_HOSTNAME: 'localhost'
Expand Down
11 changes: 11 additions & 0 deletions deployment/gha/kind.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
extraPortMappings:
- containerPort: 80
hostPort: 80
protocol: TCP
- containerPort: 443
hostPort: 443
protocol: TCP

0 comments on commit ab377f1

Please sign in to comment.