The ChaosEngine is the core schema that defines the chaos workflow for a given application. Currently, it defines the following:
- Application Data (namespace, labels, kind)
- List of Chaos Experiments to be executed
- Attributes of the experiments
- The ChaosEngine is the referenced as the owner of the secondary (reconcile) resource with Kubernetes deletePropagation ensuring these also are removed upon deletion of the ChaosEngine CR.
Here is a sample ChaosEngineSpec for reference:
apiVersion: litmuschaos.io/v1alpha1 kind: ChaosEngine metadata: name: engine-nginx spec: appinfo: appns: default applabel: "app=nginx" experiments: - name: pod-delete spec: components: - name: container-kill spec: components: