kubetest2-kindinv
provides a "kind in VM" driver for kubetest2.
This driver was written for the sake of running the tests with rootless kind.
-
gcloud
command has to be configured with the permissions for creating and removing the following resources:- GCE Instances
- VPCs
- Firewall rules
go install github.com/rootless-containers/kubetest2-kindinv@master
cd ${GOPATH}/src/k8s.io/kubernetes
make WHAT=test/e2e/e2e.test
make ginkgo
make kubectl
kubetest2 kindinv \
--run-id=foo \
--gcp-project=${CLOUDSDK_CORE_PROJECT} \
--gcp-zone=us-west1-a \
--instance-image=ubuntu-os-cloud/ubuntu-2204-lts \
--instance-type=n2-standard-4 \
--user=rootless \
--kind-rootless \
--kube-root=${GOPATH}/src/k8s.io/kubernetes \
--build \
--up \
--down \
--test=ginkgo \
-- \
--use-built-binaries \
--focus-regex='\[NodeConformance\]' \
--skip-regex='Sysctl .*|\[Slow\]' \
--parallel=8
The example command above usually takes more than 30 minutes in total.
- To use boskos, unset
--gcp-project
and set--boskos-location=http://boskos.test-pods.svc.cluster.local
.