Files
litmus-hub/charts/kube-aws/ec2-terminate-by-id/engine.yaml
Udit Gaurav dd872759aa Chore(ec2): Add charts for ec2 terminate experiment-by-id and ec2-terminate-by-tag (#440)
* Chore(ec2): Add charts for ec2 terminate experiment-by-id and ec2-terminate-by-tag

Signed-off-by: uditgaurav <udit@chaosnative.com>

* add ec2 terminates by id and tag in pkg and csv

Signed-off-by: uditgaurav <udit@chaosnative.com>
2021-04-15 23:14:39 +05:30

36 lines
1.1 KiB
YAML

apiVersion: litmuschaos.io/v1alpha1
kind: ChaosEngine
metadata:
name: nginx-chaos
namespace: default
spec:
annotationCheck: 'false'
engineState: 'active'
chaosServiceAccount: ec2-terminate-by-id-sa
# It can be retain/delete
jobCleanUpPolicy: 'delete'
experiments:
- name: ec2-terminate-by-id
spec:
components:
env:
# set chaos duration (in sec) as desired
- name: TOTAL_CHAOS_DURATION
value: '30'
# set interval duration (in sec) as desired
- name: CHAOS_INTERVAL
value: '30'
# Instance ID of the target ec2 instance
# Multiple IDs can also be provided as comma seperated values ex: id1,id2
- name: EC2_INSTANCE_ID
value: ''
# provide the region name of the instace
- name: REGION
value: ''
# enable it if the target instance is a part of self-managed nodegroup.
- name: MANAGED_NODEGROUP
value: 'disable'