Load testing¶
KubeElasti ships a small k6 load harness under tests/load/ to
exercise scale-from-zero and steady-state behavior against a target service.
1. Update the k6 script¶
Edit tests/load/load.js to point at your target URL (for example, the ingress
or port-forwarded service) and adjust the virtual user count or duration as
needed.
2. Run the load test¶
The wrapper script writes a k6 web dashboard report and logs into a logs/
directory next to the script, so create that directory the first time you run
it.
By default the script runs k6 run --vus 100 --duration 30s load.js and
exposes the live dashboard on http://localhost:5665.