generated from steadybit/extension-scaffold
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Adding docs for migrating to client locations
- Loading branch information
1 parent
38a33c5
commit 45628ac
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,3 +80,19 @@ 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" | ||
``` | ||
|
||
## Location Selection | ||
When multiple k6 extensions are deployed in different subsystems (e.g., multiple Kubernetes clusters), it can be tricky to ensure that the load test is performed from the right location when testing cluster-internal URLs or having different load testing hardware sizings. | ||
To solve this, you can activate the location selection feature. | ||
Once you do that, the k6 extension discovers itself as a k6 location. | ||
When configuring the experiment, you can optionally define which extension's deployment should execute the loadtest. | ||
Also, the execution locations are part of Steadybit's environment concept, so you can assign permissions for execution locations. | ||
|
||
### Migration Guideline | ||
Before activating the location selection feature, be sure to follow these steps: | ||
1. The installed agent version needs to be >= X.XX, and - only for on-prem customers - the platform version needs to be >=X.X | ||
2. Activate the location selection via environment or helm variable when deploying the latest extension version (see [configuration options](#configuration). | ||
3. Configure every environment that should be able to run k6 load tests by including the execution location in the environment configuration. | ||
One option is to add the statement `or target via the query language.type="com.steadybit.extension_k6.location"` to your existing query. | ||
You can also filter the available execution locations down, e.g., via the clustername by using `(target.type="com.steadybit.extension_k6.location" and k8s.cluster-name="CLUSTER-NAME")` | ||
|