loft-sh / vcluster

vCluster - Create fully functional virtual Kubernetes clusters - Each vcluster runs inside a namespace of the underlying k8s cluster. It's cheaper than creating separate full-blown clusters and it offers better multi-tenancy and isolation than regular namespaces.
https://www.vcluster.com
Apache License 2.0
6.92k stars 426 forks source link

wip: conformance debugging #2235

Closed lizardruss closed 4 weeks ago

lizardruss commented 1 month ago

What issue type does this pull request address? (keep at least one, remove the others) /kind bugfix /kind enhancement /kind feature /kind documentation /kind test

What does this pull request do? Which issues does it resolve? (use resolves #<issue_number> if possible) resolves #

Please provide a short message that should be published in the vcluster release notes Fixed an issue where vcluster ...

What else do we need to know? commands to run: Set up a minikube cluster

> just run-conformance

Start devspace:

> devspace dev --var COMMON_VALUES="/dev/null" --var VALUES_FILE="conformance/local/values.yaml" --profile test-k8s

Once in devspace, start the vcluster:

> go run -mod vendor cmd/vcluster/main.go start

Once the vcluster is running, connect to it:

> vcluster connect -n vcluster vcluster --background-proxy=false

Once the vcluster port-forwarding is running, run sonobouy tests:

> sonobuoy run --mode=conformance-lite --level=debug

To deploy the replication controller:

> kubectl apply -f conformance/local/replicationcontroller.yaml

To foreground delete the replication controller:

> kubectl delete replicationcontrollers test-rc --cascade=foreground

You might have to issue the delete call multiple times, as it is flaky. At some point you should see some pods stuck in ContainerCreating.

To clean up the ones in ContainerCreating you can issue:

> kubectl delete po $(kubectl get po --no-headers | grep 'test-rc' | awk '{print $1}')
netlify[bot] commented 1 month ago

Deploy Preview for vcluster-docs canceled.

Name Link
Latest commit 1098451b309ca23348aaaf8c6a7d2787973bf3ce
Latest deploy log https://app.netlify.com/sites/vcluster-docs/deploys/67166eb926b8ac0008da9662