Distributed load testing using Kubernetes with k6 (k6 Office Hours #72)

preview_player
Показать описание
We demonstrate how to run distributed load testing using Kubernetes with k6 and k6 operator. k6 can already run up to 40,000 virtual users from a single load generator, but if you want to scale that up further, you can use the Kubernetes operator to create a k6 custom resource within your cluster.


---

Contact Nicole:

Contact Paul:

Learn more about k6:

---
0:00 Introduction
1:12 What is an Operator?
2:25 Why do we want Custom Resources?
3:45 What is k6-operator?
5:50 What we'll demonstrate
7:20 Advantages of k6-operator
9:52 Why run k6 within Kubernetes?
14:20 It's demo time!
17:20 Build custom k6 image in Docker
19:57 Running k6 as a Docker container
21:30 Create a local k8s cluster with k3d
22:35 Install k6-operator into k8s
23:55 Create Namespace, ConfigMaps, and Secrets
28:40 Review k6 Custom Resource Definition
38:30 Triggering distributed tests with Grafana output
52:27 Triggering distributed tests with k6 Cloud output
1:00:42 Where to go next?
1:01:40 Closing
Рекомендации по теме
Комментарии
Автор

Really great informative video. If I have to use the standard k6 image in the k6-output-grafana-cloud.yaml what should be the value? If image is not specified in the yaml will it take the by default image of k6? Looking forward to your reply

yashsingh
Автор

Hello, is there any documentation to share some best practices on setting the resource limits per k6 pod? I know this depends on the complexity of test case and etc.. But was wondering if there is any benchmark statistics I can use to understand the initial resource limits I can put in place, or some practices on capacity planning?

zhangzhao
Автор

Does k6-operator support browser module?

zhangzhao
Автор

Hello, do you have a diagram reference on k6 Kubernetes design? Thanks.

qatester
Автор

possible to run the k6-browser base in Kubernetes?

qatester
Автор

Can I upload a supporting data.csv file to fetch some raw data for my scenario.js file in configmap?

amitmodi
Автор

This is crazy, just seeing this vid makes me hate k6, do you actually provide some usable, CI-enabled solutions, without manually copying test scripts into a cluster?

AbbeyLingord
Автор

I followed steps, but getting below error


Any help?

pKunal
Автор

I am facing this problem when I run k6s distributed tests in k8s cluster.
This is the log for 'starter'
LOG: sh: can't load library 'libdl.so.2'

milosveljkovic