Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run kubernetes e2e tests?

Tags:

kubernetes

I have a kubernetes cluster running with one master and 2 nodes. I want to run e2e tests on this cluster. How should I run it? I tried doing go run hack/e2e.go -v --test but that command wants to create a cluster first and then run the test, while I want to run the tests on my already present cluster. Any idea how should I go ahead with it or what parameters should I pass to e2e tests?

TIA.

like image 284
Pensu Avatar asked Aug 10 '16 10:08

Pensu


People also ask

What is E2E test in Kubernetes?

When taken collectively, these are usually referred to as the Kubernetes end-to-end tests. There are over 4,000 of these tests and they cover all features of the system: scheduling, blue-green deployments, every type of storage provider, disaster recovery and so on. You will never run all the end-to-end tests.


2 Answers

If what you want to do is run the conformance tests and verify your cluster, you might also consider looking into the tool that Heptio created called sonobuoy, which was created specifically to run the non-destructive conformance tests for Kubernetes 1.7 (or later) in a consistent fashion. Lachlan Everson posted a 6 minute youtube video showing how to use it that I thought was pretty easy to follow, and will get you up and running with it very quickly.

It's configuration driven, so you can turn on/off tests that interest you easily, and includes some plugin driven "get more data about this cluster" sort of setup if you find you want or need to dig more in specific areas.

like image 126
heckj Avatar answered Nov 14 '22 20:11

heckj


Use the conformance test, described here:

  • https://github.com/kubernetes/community/blob/master/contributors/devel/e2e-tests.md#conformance-tests
like image 22
Eric Tune Avatar answered Nov 14 '22 20:11

Eric Tune