You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/data/markdown/docs/05 Examples/01 Examples/24 distribute-workloads.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -155,5 +155,5 @@ export default function () {
155
155
156
156
</CodeGroup>
157
157
158
-
For a more sophisticated example of randomizing, read this [forum post](https://community.grafana.com/t/how-to-distribute-vus-across-different-scenarios-with-k6/49/17).
158
+
For a more sophisticated example of randomizing, read this [forum post](https://community.grafana.com/t/how-to-distribute-vus-across-different-scenarios-with-k6/97698/17).
159
159
Collapse file: src/data/markdown/docs/07 extensions/01 Get started/04 Create/01 JavaScript Extensions.md
This creates a `k6` (or `k6.exe`) binary in the current working directory.
44
+
This creates a `k6` (or `k6.exe`) binary in the current working directory.
45
45
46
46
To build the binary with concrete versions, see the example below (k6 `v0.45.1`, xk6-kafka `v0.19.1`, and xk6-output-influxdb `v0.4.1`):
47
47
@@ -84,7 +84,7 @@ The example command line may look a bit intimidating at first, but let's focus o
84
84
docker run --rm -u "$(id -u):$(id -g)" -v "${PWD}:/xk6"
85
85
```
86
86
87
-
This tells Docker to run a new container from an image.
87
+
This tells Docker to run a new container from an image.
88
88
-`--rm` means the container will be destroyed once your build is completed.
89
89
-`-u` specifies the user and group IDs of the account on the host machine. This is important for the `k6` file to have the same file permissions as the host user.
90
90
-`-v` is required to mount the current working directory inside the container, so that the `k6` binary can be written to it.
@@ -168,5 +168,5 @@ k6.exe run my-script.js
168
168
169
169
## Encountering issues?
170
170
171
-
If you're having issues, search the [k6 Community Forum](https://community.grafana.com/c/extensions/).
171
+
If you're having issues, search the [k6 Community Forum](https://community.grafana.com/c/grafana-k6/extensions/82).
-[6. When things go wrong](#6-when-things-go-wrong)
49
+
-[See also](#see-also)
47
50
48
51
## 1. Install the operator
49
52
The first step to running distributed tests in Kubernetes is to install the operator if not already installed in the cluster.
@@ -52,7 +55,7 @@ Installation commands must be run from the source directory.
52
55
53
56
<Blockquotemod="note"title="Prerequisites">
54
57
55
-
Besides privileged access to a Kubernetes cluster, installation will require that the system performing the installation has the following tools installed:
58
+
Besides privileged access to a Kubernetes cluster, installation will require that the system performing the installation has the following tools installed:
Recall when the script was [added as a ConfigMap](#add-as-a-configmap) for our configuration values.
219
-
We created the ConfigMap named `my-test`.
222
+
We created the ConfigMap named `my-test`.
220
223
The test script content was added to the map using the filename as the key-value, therefore the `file` value is `test.js`.
221
224
222
225
The amount of `parallelism` is up to you; how many pods do you want to split the test amongst?
@@ -259,7 +262,7 @@ It is important that the `PersistentVolumeClaim` and `CustomResource` are create
259
262
</Blockquote>
260
263
261
264
### Configure the environment
262
-
Not everything should be included directly in your scripts.
265
+
Not everything should be included directly in your scripts.
263
266
Well written scripts will allow for variability to support multiple scenarios and to avoid hard-coding values that tend to change.
264
267
These could be anything from passwords to target urls, in addition to system options.
265
268
@@ -346,7 +349,7 @@ The test configuration is applied as in the following:
346
349
kubectl apply -f /path/to/your/k6-resource.yaml
347
350
```
348
351
349
-
After completing a test run, you need to clean up the test jobs created.
352
+
After completing a test run, you need to clean up the test jobs created.
350
353
This is done by running the following command:
351
354
352
355
```shell
@@ -379,7 +382,7 @@ spec:
379
382
## 6. When things go wrong
380
383
Sadly nothing works perfectly all the time, so knowing where you can go for help is important.
381
384
382
-
Be sure to search the [k6-operator category in the community forum](https://community.grafana.com/c/k6-operator).
385
+
Be sure to search the [k6-operator category in the community forum](https://community.grafana.com/c/grafana-k6/k6-operator/73).
383
386
k6 has a growing and helpful community of engineers working with k6-operator, so there's a good chance your issue has already been discussed and overcome.
384
387
It's also in these forums where you'll be able to get help from members of the k6 development team.
0 commit comments