kubernetes-sigs / kubetest2

Kubetest2 is the framework for launching and running end-to-end tests on Kubernetes.
Apache License 2.0
326 stars 105 forks source link

How to set the number of worker nodes while creating a test cluster with kind deployer? #186

Closed cyang49 closed 2 years ago

cyang49 commented 2 years ago

Hi, I tried to run some e2e tests with the kind deployer using a command like this:

kubetest2 kind --build --up --test=ginkgo --cluster-name new-test -- --focus-regex="\[Feature:Performance\]"

And I get an error:

Failure [0.012 seconds]
[BeforeSuite] BeforeSuite 
test/e2e/e2e.go:77

  Mar 24 16:30:10.649: Unexpected error:
      <*errors.errorString | 0xc002da2280>: {
          s: "there are currently no ready, schedulable nodes in the cluster",
      }
      there are currently no ready, schedulable nodes in the cluster
  occurred

I inspected the only node created and it has a taint:

Name:               new-test-control-plane
Roles:              control-plane
...
Taints:             node-role.kubernetes.io/control-plane:NoSchedule

Although the tests will start if I remove the taint manually, but is there a better way to increase the number of worker nodes? I can't find it in the documentation. Please advise.

cyang49 commented 2 years ago

I found an answer here

In short, create the config YAML with specification of the nodes in the cluster