ci: 向 kind node 提供 guest kmsg
kind-on-kata-smoke / smoke (push) Failing after 28s

This commit is contained in:
2026-09-14 14:51:37 +00:00
parent 9e6515406f
commit 77df686981
+11 -1
View File
@@ -33,7 +33,17 @@ jobs:
}
trap cleanup EXIT
kind create cluster --name nested --image "$KIND_NODE_IMAGE" --wait 5m
cat >/tmp/kind-config.yaml <<'EOF'
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
name: nested
nodes:
- role: control-plane
extraMounts:
- hostPath: /dev/kmsg
containerPath: /dev/kmsg
EOF
kind create cluster --config /tmp/kind-config.yaml --image "$KIND_NODE_IMAGE" --wait 5m
docker exec nested-control-plane kubectl \
--kubeconfig=/etc/kubernetes/admin.conf wait \
--for=condition=Ready node/nested-control-plane --timeout=2m