2
2
apiVersion : litmuschaos.io/v1alpha1
3
3
description :
4
4
message : |
5
- Stopping an EC2 instance identified by ID .
5
+ Detaching an EBS volume from EC2 instance for a certain chaos duration .
6
6
kind : ChaosExperiment
7
7
metadata :
8
- name : ec2-stop -by-id
8
+ name : ebs-loss -by-id
9
9
labels :
10
- name : ec2-stop -by-id
10
+ name : ebs-loss -by-id
11
11
app.kubernetes.io/part-of : litmus
12
12
app.kubernetes.io/component : chaosexperiment
13
13
app.kubernetes.io/version : ci
@@ -52,15 +52,11 @@ spec:
52
52
- apiGroups : ["litmuschaos.io"]
53
53
resources : ["chaosengines", "chaosexperiments", "chaosresults"]
54
54
verbs : ["create", "list", "get", "patch", "update", "delete"]
55
- # for experiment to perform node status checks
56
- - apiGroups : [""]
57
- resources : ["nodes"]
58
- verbs : ["get", "list"]
59
55
image : " litmuschaos/go-runner:latest"
60
56
imagePullPolicy : Always
61
57
args :
62
58
- -c
63
- - ./experiments -name ec2-terminate -by-id
59
+ - ./experiments -name ebs-loss -by-id
64
60
command :
65
61
- /bin/bash
66
62
env :
74
70
- name : RAMP_TIME
75
71
value : " "
76
72
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
87
74
value : " "
88
75
89
76
- name : REGION
@@ -92,12 +79,15 @@ spec:
92
79
- name : SEQUENCE
93
80
value : " parallel"
94
81
82
+ - name : DEFAULT_HEALTH_CHECK
83
+ value : " false"
84
+
95
85
# Provide the path of AWS credentials mounted from secret
96
86
- name : AWS_SHARED_CREDENTIALS_FILE
97
87
value : " /tmp/cloud_config.yml"
98
88
99
89
labels :
100
- name : ec2-stop -by-id
90
+ name : ebs-loss -by-id
101
91
app.kubernetes.io/part-of : litmus
102
92
app.kubernetes.io/component : experiment-job
103
93
app.kubernetes.io/version : ci
@@ -110,12 +100,12 @@ spec:
110
100
apiVersion : litmuschaos.io/v1alpha1
111
101
description :
112
102
message : |
113
- Detaching an EBS volume from EC2 instance for a certain chaos duration .
103
+ Stopping an EC2 instance identified by ID .
114
104
kind : ChaosExperiment
115
105
metadata :
116
- name : ebs-loss -by-id
106
+ name : ec2-stop -by-id
117
107
labels :
118
- name : ebs-loss -by-id
108
+ name : ec2-stop -by-id
119
109
app.kubernetes.io/part-of : litmus
120
110
app.kubernetes.io/component : chaosexperiment
121
111
app.kubernetes.io/version : ci
@@ -160,11 +150,15 @@ spec:
160
150
- apiGroups : ["litmuschaos.io"]
161
151
resources : ["chaosengines", "chaosexperiments", "chaosresults"]
162
152
verbs : ["create", "list", "get", "patch", "update", "delete"]
153
+ # for experiment to perform node status checks
154
+ - apiGroups : [""]
155
+ resources : ["nodes"]
156
+ verbs : ["get", "list"]
163
157
image : " litmuschaos/go-runner:latest"
164
158
imagePullPolicy : Always
165
159
args :
166
160
- -c
167
- - ./experiments -name ebs-loss -by-id
161
+ - ./experiments -name ec2-terminate -by-id
168
162
command :
169
163
- /bin/bash
170
164
env :
@@ -178,7 +172,16 @@ spec:
178
172
- name : RAMP_TIME
179
173
value : " "
180
174
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
182
185
value : " "
183
186
184
187
- name : REGION
@@ -187,15 +190,12 @@ spec:
187
190
- name : SEQUENCE
188
191
value : " parallel"
189
192
190
- - name : DEFAULT_HEALTH_CHECK
191
- value : " false"
192
-
193
193
# Provide the path of AWS credentials mounted from secret
194
194
- name : AWS_SHARED_CREDENTIALS_FILE
195
195
value : " /tmp/cloud_config.yml"
196
196
197
197
labels :
198
- name : ebs-loss -by-id
198
+ name : ec2-stop -by-id
199
199
app.kubernetes.io/part-of : litmus
200
200
app.kubernetes.io/component : experiment-job
201
201
app.kubernetes.io/version : ci
0 commit comments