Skip to content

Commit fe238ef

Browse files
committed
20326484212: version upgraded for chaos-charts
1 parent a0d7168 commit fe238ef

4 files changed

Lines changed: 1393 additions & 1393 deletions

File tree

faults/aws/experiments.yaml

Lines changed: 121 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,104 @@ spec:
7676
- name: cloud-secret
7777
mountPath: /tmp/
7878

79+
---
80+
---
81+
apiVersion: litmuschaos.io/v1alpha1
82+
description:
83+
message: |
84+
Detaching an EBS volume from EC2 instance for a certain chaos duration.
85+
kind: ChaosExperiment
86+
metadata:
87+
name: ebs-loss-by-id
88+
labels:
89+
name: ebs-loss-by-id
90+
app.kubernetes.io/part-of: litmus
91+
app.kubernetes.io/component: chaosexperiment
92+
app.kubernetes.io/version: 3.24.0
93+
spec:
94+
definition:
95+
scope: Cluster
96+
permissions:
97+
# Create and monitor the experiment & helper pods
98+
- apiGroups: [""]
99+
resources: ["pods"]
100+
verbs:
101+
[
102+
"create",
103+
"delete",
104+
"get",
105+
"list",
106+
"patch",
107+
"update",
108+
"deletecollection",
109+
]
110+
# Performs CRUD operations on the events inside chaosengine and chaosresult
111+
- apiGroups: [""]
112+
resources: ["events"]
113+
verbs: ["create", "get", "list", "patch", "update"]
114+
# Fetch configmaps & secrets details and mount it to the experiment pod (if specified)
115+
- apiGroups: [""]
116+
resources: ["secrets", "configmaps"]
117+
verbs: ["get", "list"]
118+
# Track and get the runner, experiment, and helper pods log
119+
- apiGroups: [""]
120+
resources: ["pods/log"]
121+
verbs: ["get", "list", "watch"]
122+
# for creating and managing to execute commands inside target container
123+
- apiGroups: [""]
124+
resources: ["pods/exec"]
125+
verbs: ["get", "list", "create"]
126+
# for configuring and monitor the experiment job by the chaos-runner pod
127+
- apiGroups: ["batch"]
128+
resources: ["jobs"]
129+
verbs: ["create", "list", "get", "delete", "deletecollection"]
130+
# for creation, status polling and deletion of litmus chaos resources used within a chaos workflow
131+
- apiGroups: ["litmuschaos.io"]
132+
resources: ["chaosengines", "chaosexperiments", "chaosresults"]
133+
verbs: ["create", "list", "get", "patch", "update", "delete"]
134+
image: "litmuschaos.docker.scarf.sh/litmuschaos/go-runner:3.24.0"
135+
imagePullPolicy: Always
136+
args:
137+
- -c
138+
- ./experiments -name ebs-loss-by-id
139+
command:
140+
- /bin/bash
141+
env:
142+
- name: TOTAL_CHAOS_DURATION
143+
value: "30"
144+
145+
- name: CHAOS_INTERVAL
146+
value: "30"
147+
148+
# Period to wait before and after injection of chaos in sec
149+
- name: RAMP_TIME
150+
value: ""
151+
152+
- name: EBS_VOLUME_ID
153+
value: ""
154+
155+
- name: REGION
156+
value: ""
157+
158+
- name: SEQUENCE
159+
value: "parallel"
160+
161+
- name: DEFAULT_HEALTH_CHECK
162+
value: "false"
163+
164+
# Provide the path of AWS credentials mounted from secret
165+
- name: AWS_SHARED_CREDENTIALS_FILE
166+
value: "/tmp/cloud_config.yml"
167+
168+
labels:
169+
name: ebs-loss-by-id
170+
app.kubernetes.io/part-of: litmus
171+
app.kubernetes.io/component: experiment-job
172+
app.kubernetes.io/version: 3.24.0
173+
secrets:
174+
- name: cloud-secret
175+
mountPath: /tmp/
176+
79177
---
80178
---
81179
apiVersion: litmuschaos.io/v1alpha1
@@ -224,12 +322,12 @@ spec:
224322
apiVersion: litmuschaos.io/v1alpha1
225323
description:
226324
message: |
227-
Stopping an RDS instance identified by instance identifier.
325+
Stopping an EC2 instance identified by ID.
228326
kind: ChaosExperiment
229327
metadata:
230-
name: rds-instance-stop
328+
name: ec2-stop-by-id
231329
labels:
232-
name: rds-instance-stop
330+
name: ec2-stop-by-id
233331
app.kubernetes.io/part-of: litmus
234332
app.kubernetes.io/component: chaosexperiment
235333
app.kubernetes.io/version: 3.24.0
@@ -282,7 +380,7 @@ spec:
282380
imagePullPolicy: Always
283381
args:
284382
- -c
285-
- ./experiments -name rds-instance-stop
383+
- ./experiments -name ec2-terminate-by-id
286384
command:
287385
- /bin/bash
288386
env:
@@ -296,28 +394,30 @@ spec:
296394
- name: RAMP_TIME
297395
value: ""
298396

299-
# Provide the RDS instance identifier
300-
- name: RDS_INSTANCE_IDENTIFIER
301-
value: ""
397+
- name: DEFAULT_HEALTH_CHECK
398+
value: "false"
302399

303-
- name: REGION
400+
# enable it if the target instance is a part of self-managed nodegroup.
401+
- name: MANAGED_NODEGROUP
402+
value: "disable"
403+
404+
# Instance ID of the target EC2 instance
405+
# Multiple IDs can also be provided as comma separated values ex: id1,id2
406+
- name: EC2_INSTANCE_ID
304407
value: ""
305408

306-
- name: INSTANCE_AFFECTED_PERC
409+
- name: REGION
307410
value: ""
308411

309412
- name: SEQUENCE
310413
value: "parallel"
311414

312-
- name: DEFAULT_HEALTH_CHECK
313-
value: "false"
314-
315415
# Provide the path of AWS credentials mounted from secret
316416
- name: AWS_SHARED_CREDENTIALS_FILE
317417
value: "/tmp/cloud_config.yml"
318418

319419
labels:
320-
name: rds-instance-stop
420+
name: ec2-stop-by-id
321421
app.kubernetes.io/part-of: litmus
322422
app.kubernetes.io/component: experiment-job
323423
app.kubernetes.io/version: 3.24.0
@@ -544,12 +644,12 @@ spec:
544644
apiVersion: litmuschaos.io/v1alpha1
545645
description:
546646
message: |
547-
Stopping an EC2 instance identified by ID.
647+
Stopping an RDS instance identified by instance identifier.
548648
kind: ChaosExperiment
549649
metadata:
550-
name: ec2-stop-by-id
650+
name: rds-instance-stop
551651
labels:
552-
name: ec2-stop-by-id
652+
name: rds-instance-stop
553653
app.kubernetes.io/part-of: litmus
554654
app.kubernetes.io/component: chaosexperiment
555655
app.kubernetes.io/version: 3.24.0
@@ -602,7 +702,7 @@ spec:
602702
imagePullPolicy: Always
603703
args:
604704
- -c
605-
- ./experiments -name ec2-terminate-by-id
705+
- ./experiments -name rds-instance-stop
606706
command:
607707
- /bin/bash
608708
env:
@@ -616,114 +716,14 @@ spec:
616716
- name: RAMP_TIME
617717
value: ""
618718

619-
- name: DEFAULT_HEALTH_CHECK
620-
value: "false"
621-
622-
# enable it if the target instance is a part of self-managed nodegroup.
623-
- name: MANAGED_NODEGROUP
624-
value: "disable"
625-
626-
# Instance ID of the target EC2 instance
627-
# Multiple IDs can also be provided as comma separated values ex: id1,id2
628-
- name: EC2_INSTANCE_ID
719+
# Provide the RDS instance identifier
720+
- name: RDS_INSTANCE_IDENTIFIER
629721
value: ""
630722

631723
- name: REGION
632724
value: ""
633725

634-
- name: SEQUENCE
635-
value: "parallel"
636-
637-
# Provide the path of AWS credentials mounted from secret
638-
- name: AWS_SHARED_CREDENTIALS_FILE
639-
value: "/tmp/cloud_config.yml"
640-
641-
labels:
642-
name: ec2-stop-by-id
643-
app.kubernetes.io/part-of: litmus
644-
app.kubernetes.io/component: experiment-job
645-
app.kubernetes.io/version: 3.24.0
646-
secrets:
647-
- name: cloud-secret
648-
mountPath: /tmp/
649-
650-
---
651-
---
652-
apiVersion: litmuschaos.io/v1alpha1
653-
description:
654-
message: |
655-
Detaching an EBS volume from EC2 instance for a certain chaos duration.
656-
kind: ChaosExperiment
657-
metadata:
658-
name: ebs-loss-by-id
659-
labels:
660-
name: ebs-loss-by-id
661-
app.kubernetes.io/part-of: litmus
662-
app.kubernetes.io/component: chaosexperiment
663-
app.kubernetes.io/version: 3.24.0
664-
spec:
665-
definition:
666-
scope: Cluster
667-
permissions:
668-
# Create and monitor the experiment & helper pods
669-
- apiGroups: [""]
670-
resources: ["pods"]
671-
verbs:
672-
[
673-
"create",
674-
"delete",
675-
"get",
676-
"list",
677-
"patch",
678-
"update",
679-
"deletecollection",
680-
]
681-
# Performs CRUD operations on the events inside chaosengine and chaosresult
682-
- apiGroups: [""]
683-
resources: ["events"]
684-
verbs: ["create", "get", "list", "patch", "update"]
685-
# Fetch configmaps & secrets details and mount it to the experiment pod (if specified)
686-
- apiGroups: [""]
687-
resources: ["secrets", "configmaps"]
688-
verbs: ["get", "list"]
689-
# Track and get the runner, experiment, and helper pods log
690-
- apiGroups: [""]
691-
resources: ["pods/log"]
692-
verbs: ["get", "list", "watch"]
693-
# for creating and managing to execute commands inside target container
694-
- apiGroups: [""]
695-
resources: ["pods/exec"]
696-
verbs: ["get", "list", "create"]
697-
# for configuring and monitor the experiment job by the chaos-runner pod
698-
- apiGroups: ["batch"]
699-
resources: ["jobs"]
700-
verbs: ["create", "list", "get", "delete", "deletecollection"]
701-
# for creation, status polling and deletion of litmus chaos resources used within a chaos workflow
702-
- apiGroups: ["litmuschaos.io"]
703-
resources: ["chaosengines", "chaosexperiments", "chaosresults"]
704-
verbs: ["create", "list", "get", "patch", "update", "delete"]
705-
image: "litmuschaos.docker.scarf.sh/litmuschaos/go-runner:3.24.0"
706-
imagePullPolicy: Always
707-
args:
708-
- -c
709-
- ./experiments -name ebs-loss-by-id
710-
command:
711-
- /bin/bash
712-
env:
713-
- name: TOTAL_CHAOS_DURATION
714-
value: "30"
715-
716-
- name: CHAOS_INTERVAL
717-
value: "30"
718-
719-
# Period to wait before and after injection of chaos in sec
720-
- name: RAMP_TIME
721-
value: ""
722-
723-
- name: EBS_VOLUME_ID
724-
value: ""
725-
726-
- name: REGION
726+
- name: INSTANCE_AFFECTED_PERC
727727
value: ""
728728

729729
- name: SEQUENCE
@@ -737,7 +737,7 @@ spec:
737737
value: "/tmp/cloud_config.yml"
738738

739739
labels:
740-
name: ebs-loss-by-id
740+
name: rds-instance-stop
741741
app.kubernetes.io/part-of: litmus
742742
app.kubernetes.io/component: experiment-job
743743
app.kubernetes.io/version: 3.24.0

0 commit comments

Comments
 (0)