Skip to content

Commit 6d0fb71

Browse files
committed
6403752352: version upgraded for chaos-charts
1 parent 19a05d9 commit 6d0fb71

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

faults/aws/experiments.yaml

+28-28
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
apiVersion: litmuschaos.io/v1alpha1
33
description:
44
message: |
5-
Stopping an EC2 instance identified by ID.
5+
Detaching an EBS volume from EC2 instance for a certain chaos duration.
66
kind: ChaosExperiment
77
metadata:
8-
name: ec2-stop-by-id
8+
name: ebs-loss-by-id
99
labels:
10-
name: ec2-stop-by-id
10+
name: ebs-loss-by-id
1111
app.kubernetes.io/part-of: litmus
1212
app.kubernetes.io/component: chaosexperiment
1313
app.kubernetes.io/version: ci
@@ -52,15 +52,11 @@ spec:
5252
- apiGroups: ["litmuschaos.io"]
5353
resources: ["chaosengines", "chaosexperiments", "chaosresults"]
5454
verbs: ["create", "list", "get", "patch", "update", "delete"]
55-
# for experiment to perform node status checks
56-
- apiGroups: [""]
57-
resources: ["nodes"]
58-
verbs: ["get", "list"]
5955
image: "litmuschaos/go-runner:latest"
6056
imagePullPolicy: Always
6157
args:
6258
- -c
63-
- ./experiments -name ec2-terminate-by-id
59+
- ./experiments -name ebs-loss-by-id
6460
command:
6561
- /bin/bash
6662
env:
@@ -74,16 +70,7 @@ spec:
7470
- name: RAMP_TIME
7571
value: ""
7672

77-
- name: DEFAULT_HEALTH_CHECK
78-
value: "false"
79-
80-
# enable it if the target instance is a part of self-managed nodegroup.
81-
- name: MANAGED_NODEGROUP
82-
value: "disable"
83-
84-
# Instance ID of the target EC2 instance
85-
# Multiple IDs can also be provided as comma separated values ex: id1,id2
86-
- name: EC2_INSTANCE_ID
73+
- name: EBS_VOLUME_ID
8774
value: ""
8875

8976
- name: REGION
@@ -92,12 +79,15 @@ spec:
9279
- name: SEQUENCE
9380
value: "parallel"
9481

82+
- name: DEFAULT_HEALTH_CHECK
83+
value: "false"
84+
9585
# Provide the path of AWS credentials mounted from secret
9686
- name: AWS_SHARED_CREDENTIALS_FILE
9787
value: "/tmp/cloud_config.yml"
9888

9989
labels:
100-
name: ec2-stop-by-id
90+
name: ebs-loss-by-id
10191
app.kubernetes.io/part-of: litmus
10292
app.kubernetes.io/component: experiment-job
10393
app.kubernetes.io/version: ci
@@ -110,12 +100,12 @@ spec:
110100
apiVersion: litmuschaos.io/v1alpha1
111101
description:
112102
message: |
113-
Detaching an EBS volume from EC2 instance for a certain chaos duration.
103+
Stopping an EC2 instance identified by ID.
114104
kind: ChaosExperiment
115105
metadata:
116-
name: ebs-loss-by-id
106+
name: ec2-stop-by-id
117107
labels:
118-
name: ebs-loss-by-id
108+
name: ec2-stop-by-id
119109
app.kubernetes.io/part-of: litmus
120110
app.kubernetes.io/component: chaosexperiment
121111
app.kubernetes.io/version: ci
@@ -160,11 +150,15 @@ spec:
160150
- apiGroups: ["litmuschaos.io"]
161151
resources: ["chaosengines", "chaosexperiments", "chaosresults"]
162152
verbs: ["create", "list", "get", "patch", "update", "delete"]
153+
# for experiment to perform node status checks
154+
- apiGroups: [""]
155+
resources: ["nodes"]
156+
verbs: ["get", "list"]
163157
image: "litmuschaos/go-runner:latest"
164158
imagePullPolicy: Always
165159
args:
166160
- -c
167-
- ./experiments -name ebs-loss-by-id
161+
- ./experiments -name ec2-terminate-by-id
168162
command:
169163
- /bin/bash
170164
env:
@@ -178,7 +172,16 @@ spec:
178172
- name: RAMP_TIME
179173
value: ""
180174

181-
- name: EBS_VOLUME_ID
175+
- name: DEFAULT_HEALTH_CHECK
176+
value: "false"
177+
178+
# enable it if the target instance is a part of self-managed nodegroup.
179+
- name: MANAGED_NODEGROUP
180+
value: "disable"
181+
182+
# Instance ID of the target EC2 instance
183+
# Multiple IDs can also be provided as comma separated values ex: id1,id2
184+
- name: EC2_INSTANCE_ID
182185
value: ""
183186

184187
- name: REGION
@@ -187,15 +190,12 @@ spec:
187190
- name: SEQUENCE
188191
value: "parallel"
189192

190-
- name: DEFAULT_HEALTH_CHECK
191-
value: "false"
192-
193193
# Provide the path of AWS credentials mounted from secret
194194
- name: AWS_SHARED_CREDENTIALS_FILE
195195
value: "/tmp/cloud_config.yml"
196196

197197
labels:
198-
name: ebs-loss-by-id
198+
name: ec2-stop-by-id
199199
app.kubernetes.io/part-of: litmus
200200
app.kubernetes.io/component: experiment-job
201201
app.kubernetes.io/version: ci

0 commit comments

Comments
 (0)