-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ensure that kind forwards localhost:80 to ingress in gha
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ on: | |
|
||
jobs: | ||
execute: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -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 | ||
|
@@ -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' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |