An open API service indexing awesome lists of open source software.

https://github.com/rootless-containers/kubetest2-kindinv

kubetest2 driver for Kubernetes in (Rootless) Docker in (GCE) VM
https://github.com/rootless-containers/kubetest2-kindinv

Last synced: 4 months ago
JSON representation

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

Awesome Lists containing this project

README

          

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

`kubetest2-kindinv` provides a "kind in VM" driver for [kubetest2](https://github.com/kubernetes-sigs/kubetest2).

This driver was written for the sake of running the tests with [rootless kind](https://kind.sigs.k8s.io/docs/user/rootless/).

## Requirements
- [kubetest2](https://github.com/kubernetes-sigs/kubetest2).

- `gcloud` command has to be configured with the permissions for creating and removing the following resources:
- GCE Instances
- VPCs
- Firewall rules

## Usage

```bash
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` .