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
UsageText: "'ctf' is a useful utility that can:\n- clean up test docker containers\n- modify test files\n- create a local observability stack with Grafana/Loki/Pyroscope",
21
22
Commands: []*cli.Command{
23
+
{
24
+
Name: "gen",
25
+
Aliases: []string{"g"},
26
+
Usage: "Generates various test templates",
27
+
Subcommands: []*cli.Command{
28
+
{
29
+
Name: "load",
30
+
Aliases: []string{"l"},
31
+
Usage: "Generates a load/chaos test template for Kubernetes namespace",
32
+
Description: `Scans a Kubernetes namespace and generates load testing templates for discovered services.
33
+
34
+
Prerequisites:
35
+
36
+
Connect to K8s and don't forget to switch context first:
37
+
kubectl config use-context <your_ctx>
38
+
By default test sends data to a local CTF stack, see //TODO comments to change that, spin up the stack:
39
+
ctf obs up
40
+
41
+
Usage:
42
+
43
+
Generate basic kill/latency tests:
44
+
ctf gen k8s-load my-namespace
45
+
With workload:
46
+
ctf gen k8s-load -w my-namespace
47
+
With workload and name:
48
+
ctf gen k8s-load -w -n TestSomething my-namespace
49
+
50
+
Be aware that any TODO requires your attention before your run the final test!
0 commit comments