litmus-docs/website/versioned_docs/version-1.4.0/architecture.md

1.3 KiB

id title sidebar_label original_id
architecture Litmus Architecture Architecture architecture

<img src={require("./assets/architecture.png").default} width="800" />

Chaos-Operator

Chaos-Operator watches for the ChaosEngine CR and executes the Chaos-Experiments mentioned in the CR. Chaos-Operator is namespace scoped. By default, it runs in litmus namespace. Once the experiment is completed, chaos-operator invokes chaos-exporter to export chaos metrics to a Prometheus database.

Chaos-CRDs

During installation, the following three CRDs are installed on the Kubernetes cluster.

chaosengines.litmuschaos.io

chaosexperiments.litmuschaos.io

chaosresults.litmuschaos.io

Chaos-Experiments

Chaos Experiment is a CR and are available as YAML files on ChaosHub. For more details visit ChaosHub documentation.

Chaos-Engine

ChaosEngine CR links application to experiments. User has to create ChaosEngine YAML by specifying the application label and experiments and create the CR. The CR is watched by Chaos-Operator and chaos-experiments are executed on a given application.

Chaos-Exporter

Optionally metrics can be exported to a Prometheus database. Chaos-Exporter implements the Prometheus metrics endpoint.