Skip to content

rootless-containers/kubetest2-kindinv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 .

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published