This commit is contained in:
@@ -33,7 +33,17 @@ jobs:
|
|||||||
}
|
}
|
||||||
trap cleanup EXIT
|
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 \
|
docker exec nested-control-plane kubectl \
|
||||||
--kubeconfig=/etc/kubernetes/admin.conf wait \
|
--kubeconfig=/etc/kubernetes/admin.conf wait \
|
||||||
--for=condition=Ready node/nested-control-plane --timeout=2m
|
--for=condition=Ready node/nested-control-plane --timeout=2m
|
||||||
|
|||||||
Reference in New Issue
Block a user