From 8f8ec04b18a2d5c014750287df89b230d977d356 Mon Sep 17 00:00:00 2001 From: panxiao81 Date: Mon, 21 Sep 2026 12:53:02 +0000 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=94=BE=E5=AE=BD=20Kata=20kind=20?= =?UTF-8?q?=E7=9A=84=20kubeadm=20API=20=E8=B6=85=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/vm-kind-smoke.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/vm-kind-smoke.yml b/.gitea/workflows/vm-kind-smoke.yml index 3928846..188e28b 100644 --- a/.gitea/workflows/vm-kind-smoke.yml +++ b/.gitea/workflows/vm-kind-smoke.yml @@ -150,5 +150,25 @@ jobs: exit "$status" } trap diagnose_and_cleanup EXIT - /tmp/kind create cluster --name smoke --wait 180s --retain + # Nested Kata + Docker + kind cold starts can take longer than + # kubeadm's one-minute API-call default even after the static pods + # have been accepted. Give the API server enough time to become + # responsive before kubeadm creates its initial RBAC objects. + cat >/tmp/kind-config.yml <<'EOF' + kind: Cluster + apiVersion: kind.x-k8s.io/v1alpha4 + nodes: + - role: control-plane + kubeadmConfigPatches: + - | + apiVersion: kubeadm.k8s.io/v1beta4 + kind: InitConfiguration + timeouts: + kubernetesAPICall: 5m0s + EOF + /tmp/kind create cluster \ + --name smoke \ + --config /tmp/kind-config.yml \ + --wait 300s \ + --retain /tmp/kind get clusters | grep -Fx smoke -- 2.54.0