From 92dc14c781a35e9077ea2a39270281fede98871a Mon Sep 17 00:00:00 2001 From: Namkyu Park <53862866+namkyu1999@users.noreply.github.com> Date: Fri, 7 Jun 2024 15:30:41 +0900 Subject: [PATCH] chore: update experiment docs (#4641) * chore: update docs Signed-off-by: namkyu1999 * fix: update link Signed-off-by: namkyu1999 --------- Signed-off-by: namkyu1999 --- mkdocs/docs/experiments/categories/load/k6-loadgen.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mkdocs/docs/experiments/categories/load/k6-loadgen.md b/mkdocs/docs/experiments/categories/load/k6-loadgen.md index e6b1d97f73d..6117e37055c 100644 --- a/mkdocs/docs/experiments/categories/load/k6-loadgen.md +++ b/mkdocs/docs/experiments/categories/load/k6-loadgen.md @@ -8,6 +8,11 @@ Support [various types](https://grafana.com/docs/k6/latest/testing-guides/test-t !!! tip "Scenario: Load generating with k6" ![k6-loadgen](../../images/k6-loadgen.png) +## Uses + +??? info "View the uses of the experiment" + [Introduction to k6 Load Chaos in LitmusChaos](https://dev.to/litmus-chaos/introduction-to-k6-load-chaos-in-litmuschaos-4l2k) + ## Prerequisites ??? info "Verify the prerequisites" @@ -16,7 +21,7 @@ Support [various types](https://grafana.com/docs/k6/latest/testing-guides/test-t - 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: ```bash kubectl create secret generic k6-script \ - --from-file=script.js=<> -n <> + --from-file=<> -n <> ``` ## Minimal RBAC configuration example (optional) @@ -148,7 +153,7 @@ Then create a secret with the above script. ```bash kubectl create secret generic custom-k6-script \ - --from-file=script.js=custom-script.js -n <> + --from-file=custom-script.js -n <> ``` 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: