Skip to content

Commit 3f75be6

Browse files
namkyu1999andoriyaprashant
authored andcommitted
chore: update experiment docs (litmuschaos#4641)
* chore: update docs Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr> * fix: update link Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr> --------- Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr> Signed-off-by: andoriyaprashant <prashantandoriya@gmail.com>
1 parent e4ef8c9 commit 3f75be6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

mkdocs/docs/experiments/categories/load/k6-loadgen.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ Support [various types](https://grafana.com/docs/k6/latest/testing-guides/test-t
88
!!! tip "Scenario: Load generating with k6"
99
![k6-loadgen](../../images/k6-loadgen.png)
1010

11+
## Uses
12+
13+
??? info "View the uses of the experiment"
14+
[Introduction to k6 Load Chaos in LitmusChaos](https://dev.to/litmus-chaos/introduction-to-k6-load-chaos-in-litmuschaos-4l2k)
15+
1116
## Prerequisites
1217

1318
??? info "Verify the prerequisites"
@@ -16,7 +21,7 @@ Support [various types](https://grafana.com/docs/k6/latest/testing-guides/test-t
1621
- Ensure to create a Kubernetes secret having the JS script file in the `Chaos Infrastructure`'s namespace (`litmus` by default). The simplest way to create a secret object looks like this:
1722
```bash
1823
kubectl create secret generic k6-script \
19-
--from-file=script.js=<<script-path>> -n <<chaos_infrastructure_namespace>>
24+
--from-file=<<script-path>> -n <<chaos_infrastructure_namespace>>
2025
```
2126

2227
## Minimal RBAC configuration example (optional)
@@ -148,7 +153,7 @@ Then create a secret with the above script.
148153

149154
```bash
150155
kubectl create secret generic custom-k6-script \
151-
--from-file=script.js=custom-script.js -n <<chaos_infrastructure_namespace>>
156+
--from-file=custom-script.js -n <<chaos_infrastructure_namespace>>
152157
```
153158
154159
And If we want to use `custom-k6-script` secret and `custom-script.js` as the secret key, then the experiment tunable will look like this:

0 commit comments

Comments
 (0)