> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/load.md). Agents can also search and read this documentation through its [MCP server](https://developer.harness.io/~gitbook/mcp).

# Load

Load faults that run k6 or Locust scripts from the Kubernetes chaos infrastructure to drive synthetic traffic at a target during an experiment.

Load faults drive synthetic traffic at a target service from runner pods on the Kubernetes chaos infrastructure. Run one on its own to see whether the service holds its SLO and autoscales under load, or alongside another fault to test how the service behaves when it fails while busy.

***

## Before you begin

* **Chaos infrastructure:** A Kubernetes chaos infrastructure in a cluster that can reach the target endpoint. Go to [Get started](https://developer.harness.io/resilience-testing/chaos-testing/get-started.md) to install one.
* **Load script:** The k6 script in a Kubernetes secret, or the Locust task file in a ConfigMap, in the chaos runner namespace. Each fault page shows how to create it.
* **Permissions:** Load faults run with the core Kubernetes fault permissions. Go to [Kubernetes fault permissions](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/kubernetes/permissions.md#core-permissions) to check them.

***

## Supported environments

Load faults run on every [Kubernetes environment](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/kubernetes.md#supported-environments) the Kubernetes chaos infrastructure supports. The target can run anywhere the cluster can reach: in the same cluster, on another platform, or behind a public endpoint.

***

## Faults

| Fault                                                                                                               | What it does                           | Failure type | Reversible |
| ------------------------------------------------------------------------------------------------------------------- | -------------------------------------- | ------------ | ---------- |
| [K6 loadgen](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/load/k6-loadgen.md)         | Runs a k6 script against an endpoint   | Resource     | Yes        |
| [Locust loadgen](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/load/locust-loadgen.md) | Runs a Locust task file against a host | Resource     | Yes        |

***

## Troubleshooting

<details>

<summary>A load fault runner pod stays in ImagePullBackOff</summary>

The cluster cannot pull `LOAD_IMAGE`. Mirror the image to a registry the cluster can reach and set `LOAD_IMAGE` to the mirrored path.

</details>

<details>

<summary>A load fault runs but the target sees no traffic</summary>

The target is not reachable from the runner pods. Run `kubectl run debug --image=alpine --rm -it -n <chaos-namespace> -- wget -qO- <target-url>` to test the path, and allow egress from the chaos runner namespace in your network policies, security groups, or firewall rules.

</details>

***

## Next steps

* Go to [Find a fault by failure type](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/find-by-failure-type.md) to pair a load fault with a fault that breaks the service under load.
* Go to [Probes](https://developer.harness.io/resilience-testing/chaos-testing/probes.md) to assert latency and error rate while the load runs.

{% @harness-feedback/feedback %}
