> 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-engineering/chaos-experiments/advance-configuration-options.md).

# Advanced Configuration Options

Advanced configurations for a chaos experiment.

### Prerequisites <a href="#prerequisites" id="prerequisites"></a>

* [Create an experiment](/resilience-testing/chaos-engineering/chaos-experiments/create-experiments.md)

This topic describes advanced settings to configure your chaos experiments.

### Advanced Experiment Setup Options <a href="#advanced-experiment-setup-options" id="advanced-experiment-setup-options"></a>

On the Experiment Builder tab, you can click **Advanced Options** to configure the following advanced options when creating an experiment for a Kubernetes chaos infrastructure:

![Advanced Options](https://2284173296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlSkpbpeYJ3rfGUkIrcyQ%2Fuploads%2Fgit-blob-1daac223b19df636f5058596dacdffbf723526f4%2Fadvanced-options.png?alt=media)

#### General Options <a href="#general-options" id="general-options"></a>

**Node Selector**

Specify the node on which the experiment pods will be scheduled by providing the node label as a key-value pair.

* This can be used with node-level faults to avoid scheduling the experiment pod on the target node(s).
* It can also be used to limit the scheduling of experiment pods on nodes with an unsupported OS.

  ![Node Selector](https://2284173296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlSkpbpeYJ3rfGUkIrcyQ%2Fuploads%2Fgit-blob-01ab2eaf317511938d15a01748a660b8cf19b743%2Fnode-selector.png?alt=media)

**Toleration**

Specify the tolerations that must be satisfied by a tainted node to schedule the experiment pods. For more information on taints and tolerations, refer to the [Kubernetes documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/).

* This can be used with node-level faults to avoid scheduling the experiment pod on the target node(s).
* It can also be used to limit the scheduling of the experiment pods on nodes with an unsupported OS.

  ![Toleration](https://2284173296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlSkpbpeYJ3rfGUkIrcyQ%2Fuploads%2Fgit-blob-060b84d8de17c6e0b222f65a5069e5f79cc82de1%2Ftoleration.png?alt=media)

**Annotations**

Specify the annotations to be added to the experiment pods by providing them as key-value pairs. For more information on annotations, refer to the [Kubernetes documentation](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/).

Annotations can be used to bypass network proxies enforced by service mesh tools like Istio.

![Annotations](https://2284173296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlSkpbpeYJ3rfGUkIrcyQ%2Fuploads%2Fgit-blob-ec370da73ed8ef470cd3c1d43d9e4cea2a11b2d1%2Fannotations.png?alt=media)

#### Security Options <a href="#security-options" id="security-options"></a>

**Enable runAsUser**

Specify the user ID to start all the processes in the experiment pod containers. By default, the user ID `1000` is used. This option allows privileged or restricted access for experiment pods.

![runAsUser](https://2284173296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlSkpbpeYJ3rfGUkIrcyQ%2Fuploads%2Fgit-blob-2f2a94dfc47a3adc92a12cab7bdc360e42fbdded%2Frun-as-user.png?alt=media)

**Enable runAsGroup**

Specify the group ID to start all the processes in the experiment pod containers instead of a user ID. This option allows privileged or restricted access for experiment pods.

![runAsGroup](https://2284173296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlSkpbpeYJ3rfGUkIrcyQ%2Fuploads%2Fgit-blob-5b97eb053ab569c0bc7b6903670788fc8291bef8%2Frun-as-group.png?alt=media)

### Execute Experiment With Advanced Options <a href="#execute-experiment-with-advanced-options" id="execute-experiment-with-advanced-options"></a>

1. Select one of the advanced security options: **runAsUser** or **runAsGroup**.
2. Click **Security** tab and select/unselect one or both the options.

   ![advanced](https://2284173296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlSkpbpeYJ3rfGUkIrcyQ%2Fuploads%2Fgit-blob-56b07706d0ea0e6fc54e107a10a141d8e93bf7b0%2Fadvanced-2.png?alt=media)
3. Click **Save**.

   ![save changes](https://2284173296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlSkpbpeYJ3rfGUkIrcyQ%2Fuploads%2Fgit-blob-9a4a1ad2ca21e786c30a766213789e0954fd8862%2Fsave-3.png?alt=media)

### Next Steps <a href="#next-steps" id="next-steps"></a>

* [Run or Schedule Experiments](/resilience-testing/chaos-engineering/chaos-experiments/run-experiments.md)
* [Edit or Update Experiment](/resilience-testing/chaos-engineering/chaos-experiments/edit-chaos-experiment.md)

{% @harness-feedback/feedback %}
