Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 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

kubetest2 kindinv \
  --run-id=foo \
  --gcp-project=${CLOUDSDK_CORE_PROJECT} \
  --gcp-zone=us-west1-a \
  --instance-image=ubuntu-os-cloud/ubuntu-2404-lts-amd64 \
  --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

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages