A Steadybit action implementation to integrate k6 load tests into Steadybit experiments.
Learn about the capabilities of this extension in our Reliability Hub.
Environment Variable | Helm value | Meaning | Reuired | Default |
---|---|---|---|---|
STEADYBIT_EXTENSION_CLOUD_API_TOKEN |
k6.cloudApiToken |
K6 Cloud API Token. If provided, the extension will have the option to run load tests in the k6 cloud. | no | |
HTTPS_PROXY |
via extraEnv variables | Configure the proxy to be used for K6 Cloud communication. | no |
The extension supports all environment variables provided by steadybit/extension-kit.
When installed as linux package this configuration is in/etc/steadybit/extension-k6
.
helm repo add steadybit-extension-k6 https://steadybit.github.io/extension-k6
helm repo update
helm upgrade steadybit-extension-k6 \
--install \
--wait \
--timeout 5m0s \
--create-namespace \
--namespace steadybit-agent \
steadybit-extension-k6/steadybit-extension-k6
docker run \
--rm \
-p 8087 \
--name steadybit-extension-k6 \
ghcr.io/steadybit/extension-k6:latest
If you want to use K6 Cloud you need to provide an k6 cloud api token. You can add it for example with --set k6.cloudApiToken="111-222-333"
Please use our agent-linux.sh script to install the extension on your Linux machine. The script will download the latest version of the extension and install it using the package manager.
After installing configure the extension by editing /etc/steadybit/extension-k6
and then restart the service.
Make sure to register the extension at the steadybit platform. Please refer to the documentation for more information.
To communicate to K6 Cloud via a proxy, we need the environment variable https_proxy
to be set.
This can be set via helm using the extraEnv variable
--set "extraEnv[0].name=HTTPS_PROXY" \
--set "extraEnv[0].value=https:\\user:[email protected]:8888"