Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1.34 KB

README.md

File metadata and controls

49 lines (38 loc) · 1.34 KB

kubetest2 driver for Kubernetes in (Rootless) Docker in (GCE) VM

kubetest2-kindinv provides a "kind in VM" driver for kubetest2.

This driver was written for the sake of running the tests with rootless kind.

Requirements

  • kubetest2.

  • gcloud command has to be configured with the permissions for creating and removing the following resources:

    • GCE Instances
    • VPCs
    • Firewall rules

Usage

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.

Hints

  • To use boskos, unset --gcp-project and set --boskos-location=http://boskos.test-pods.svc.cluster.local .