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/translated-guides/en/07 Testing Guides/05 Running distributed tests.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,8 @@ For scenarios such as these, we've created the [k6-operator](https://github.com/
17
17
[k6-operator](https://github.com/grafana/k6-operator) is an implementation of the [operator pattern](/misc/glossary/#operator-pattern) in Kubernetes, defining [custom resources](/misc/glossary/#custom-resource) in Kubernetes.
18
18
The intent is to automate tasks that a _human operator_ would normally do; tasks like provisioning new application components, changing configurations, or resolving run-time issues.
19
19
20
-
The k6-operator defines the custom `K6` resource type and listens for changes to, or creation of, `K6` objects.
21
-
Each `K6` object references a k6 test script, configures the environment, and specifies the number of instances, as `parallelism`, for a test run.
20
+
The k6-operator defines the custom `TestRun` resource type and listens for changes to, or creation of, `TestRun` objects.
21
+
Each `TestRun` object references a k6 test script, configures the environment, and specifies the number of instances, as `parallelism`, for a test run.
22
22
Once a change is detected, the operator will react by modifying the cluster state, spinning up k6 test jobs as needed.
23
23
24
24
## Get started with k6-operator
@@ -181,15 +181,15 @@ When using a `PersistentVolume`, the operator will expect all test scripts to be
181
181
To learn more about creating `PersistentVolume` and `PersistentVolumeClaim` resources, review the [Kubernetes documentation](https://kubernetes.io/docs/concepts/storage/persistent-volumes/).
182
182
183
183
## 4. Create a custom resource
184
-
During [installation](#install-the-operator), the `K6`[Custom Resource definition](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/) was added to the Kubernetes API.
185
-
The data we provide in the custom resource `K6` object should contain all the information necessary for the k6-operator to start a distributed load test.
184
+
During [installation](#install-the-operator), the `TestRun`[Custom Resource definition](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/) was added to the Kubernetes API.
185
+
The data we provide in the custom resource `TestRun` object should contain all the information necessary for the k6-operator to start a distributed load test.
186
186
187
-
Specifically, the main elements defined within the `K6` object relate to the name and location of the test script to run, and the amount of [parallelism](/misc/glossary/#parallelism) to utilize.
187
+
Specifically, the main elements defined within the `TestRun` object relate to the name and location of the test script to run, and the amount of [parallelism](/misc/glossary/#parallelism) to utilize.
188
188
189
189
<Blockquotemod="note"title="">
190
190
191
-
The `K6` custom resource provides many configuration options to control the initialization and execution of tests.
192
-
For the full listing of possible options, please refer to the project [source](https://github.com/grafana/k6-operator/blob/main/config/crd/bases/k6.io_k6s.yaml) and [README](https://github.com/grafana/k6-operator/blob/main/README.md).
191
+
The `TestRun` custom resource provides many configuration options to control the initialization and execution of tests.
192
+
For the full listing of possible options, please refer to the project [source](https://github.com/grafana/k6-operator/blob/main/config/crd/bases/k6.io_testruns.yaml) and [README](https://github.com/grafana/k6-operator/blob/main/README.md).
193
193
194
194
</Blockquote>
195
195
@@ -205,7 +205,7 @@ Let's create the file `run-k6-from-configmap.yaml` with the following content:
205
205
206
206
```yaml
207
207
apiVersion: k6.io/v1alpha1
208
-
kind: K6
208
+
kind: TestRun
209
209
metadata:
210
210
name: run-k6-from-configmap
211
211
spec:
@@ -241,7 +241,7 @@ Assume we've created a `PersistentVolumeClaim` named `my-volume-claim` against a
241
241
242
242
```yaml
243
243
apiVersion: k6.io/v1alpha1
244
-
kind: K6
244
+
kind: TestRun
245
245
metadata:
246
246
name: run-k6-from-volume
247
247
spec:
@@ -267,13 +267,13 @@ Well written scripts will allow for variability to support multiple scenarios an
267
267
These could be anything from passwords to target urls, in addition to system options.
268
268
269
269
We can pass this data as [environment variables](/misc/glossary/#environment-variables) for use with each pod executing your script.
270
-
This can be defined explicitly within the `K6` resource, or by referencing a `ConfigMap` or `Secret`.
270
+
This can be defined explicitly within the `TestRun` resource, or by referencing a `ConfigMap` or `Secret`.
0 commit comments