extension-k6

command module
v1.0.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 13 Imported by: 0

README

K6 logo

Steadybit extension-k6

A Steadybit action implementation to integrate k6 load tests into Steadybit experiments.

Learn about the capabilities of this extension in our Reliability Hub.

Configuration

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.

Installation

Using Helm in Kubernetes
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-extension \
    steadybit-extension-k6/steadybit-extension-k6
Using Docker
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"

Linux Package

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.

Register the extension

Make sure to register the extension at the steadybit platform. Please refer to the documentation for more information.

Proxy

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:pwd@CompanyProxy.com:8888"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL