From 75250b47eec0f943d94df71dcc5879a677b4bf53 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 3 Mar 2026 23:37:42 +0800 Subject: [PATCH] fix: use explicit k3d API port to avoid connection refused in CI --api-port 0 means no host mapping, breaking kubectl wait. Use port 16443 for k3d API host access during cluster setup. Made-with: Cursor --- .github/workflows/pr-test.yml | 2 +- .github/workflows/unit-test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml index 5d58bc34..bb48bcb5 100644 --- a/.github/workflows/pr-test.yml +++ b/.github/workflows/pr-test.yml @@ -1662,7 +1662,7 @@ jobs: - name: Create k3d cluster run: | - k3d cluster create tai-test --no-lb --wait --api-port 0 + k3d cluster create tai-test --no-lb --wait --api-port 16443 kubectl wait --for=condition=Ready node --all --timeout=60s k3d image import alpine:latest -c tai-test diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 79f392ba..2f7247ff 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -1216,7 +1216,7 @@ jobs: - name: Create k3d cluster run: | - k3d cluster create tai-test --no-lb --wait --api-port 0 + k3d cluster create tai-test --no-lb --wait --api-port 16443 kubectl wait --for=condition=Ready node --all --timeout=60s k3d image import alpine:latest -c tai-test