Skip to content

Commit 80944c2

Browse files
author
Neelanjan Manna
authored
Merge branch 'master' into spring-boot-chaos
2 parents 70f6a4a + 4283958 commit 80944c2

File tree

17 files changed

+1978
-1953
lines changed

17 files changed

+1978
-1953
lines changed

charts/aws-ssm/experiments.yaml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apiVersion: litmuschaos.io/v1alpha1
22
description:
33
message: |
4-
Execute AWS SSM Chaos on given ec2 instance Tag
4+
Execute AWS SSM Chaos on given ec2 instance IDs
55
kind: ChaosExperiment
66
metadata:
7-
name: aws-ssm-chaos-by-tag
7+
name: aws-ssm-chaos-by-id
88
labels:
9-
name: aws-ssm-chaos-by-tag
9+
name: aws-ssm-chaos-by-id
1010
app.kubernetes.io/part-of: litmus
1111
app.kubernetes.io/component: chaosexperiment
1212
app.kubernetes.io/version: latest
@@ -46,7 +46,7 @@ spec:
4646
imagePullPolicy: Always
4747
args:
4848
- -c
49-
- ./experiments -name aws-ssm-chaos-by-tag
49+
- ./experiments -name aws-ssm-chaos-by-id
5050
command:
5151
- /bin/bash
5252
env:
@@ -55,14 +55,14 @@ spec:
5555

5656
- name: CHAOS_INTERVAL
5757
value: '60'
58-
58+
5959
# Period to wait before and after injection of chaos in sec
6060
- name: RAMP_TIME
6161
value: ''
6262

63-
# provide tag of the target ec2 instances
64-
# ex: team:devops (key:value)
65-
- name: EC2_INSTANCE_TAG
63+
# Instance ID of the target ec2 instance
64+
# Multiple IDs can also be provided as comma separated values ex: id1,id2
65+
- name: EC2_INSTANCE_ID
6666
value: ''
6767

6868
- name: REGION
@@ -77,10 +77,6 @@ spec:
7777
- name: AWS_SHARED_CREDENTIALS_FILE
7878
value: '/tmp/cloud_config.yml'
7979

80-
# percentage of total instance to target
81-
- name: INSTANCE_AFFECTED_PERC
82-
value: ''
83-
8480
# Provide the name of ssm doc
8581
# if not using the default stress docs
8682
- name: DOCUMENT_NAME
@@ -113,7 +109,7 @@ spec:
113109
- name: MEMORY_PERCENTAGE
114110
value: '80'
115111

116-
# provide the CPU chores to comsumed
112+
# provide the CPU chores to be comsumed
117113
# 0 will consume all the available cpu cores
118114
- name: CPU_CORE
119115
value: '0'
@@ -124,7 +120,7 @@ spec:
124120
value: 'litmus'
125121

126122
labels:
127-
name: aws-ssm-chaos-by-tag
123+
name: aws-ssm-chaos-by-id
128124
app.kubernetes.io/part-of: litmus
129125
app.kubernetes.io/component: experiment-job
130126
app.kubernetes.io/version: latest
@@ -136,12 +132,12 @@ spec:
136132
apiVersion: litmuschaos.io/v1alpha1
137133
description:
138134
message: |
139-
Execute AWS SSM Chaos on given ec2 instance IDs
135+
Execute AWS SSM Chaos on given ec2 instance Tag
140136
kind: ChaosExperiment
141137
metadata:
142-
name: aws-ssm-chaos-by-id
138+
name: aws-ssm-chaos-by-tag
143139
labels:
144-
name: aws-ssm-chaos-by-id
140+
name: aws-ssm-chaos-by-tag
145141
app.kubernetes.io/part-of: litmus
146142
app.kubernetes.io/component: chaosexperiment
147143
app.kubernetes.io/version: latest
@@ -181,7 +177,7 @@ spec:
181177
imagePullPolicy: Always
182178
args:
183179
- -c
184-
- ./experiments -name aws-ssm-chaos-by-id
180+
- ./experiments -name aws-ssm-chaos-by-tag
185181
command:
186182
- /bin/bash
187183
env:
@@ -190,14 +186,14 @@ spec:
190186

191187
- name: CHAOS_INTERVAL
192188
value: '60'
193-
189+
194190
# Period to wait before and after injection of chaos in sec
195191
- name: RAMP_TIME
196192
value: ''
197193

198-
# Instance ID of the target ec2 instance
199-
# Multiple IDs can also be provided as comma separated values ex: id1,id2
200-
- name: EC2_INSTANCE_ID
194+
# provide tag of the target ec2 instances
195+
# ex: team:devops (key:value)
196+
- name: EC2_INSTANCE_TAG
201197
value: ''
202198

203199
- name: REGION
@@ -212,6 +208,10 @@ spec:
212208
- name: AWS_SHARED_CREDENTIALS_FILE
213209
value: '/tmp/cloud_config.yml'
214210

211+
# percentage of total instance to target
212+
- name: INSTANCE_AFFECTED_PERC
213+
value: ''
214+
215215
# Provide the name of ssm doc
216216
# if not using the default stress docs
217217
- name: DOCUMENT_NAME
@@ -244,7 +244,7 @@ spec:
244244
- name: MEMORY_PERCENTAGE
245245
value: '80'
246246

247-
# provide the CPU chores to be comsumed
247+
# provide the CPU chores to comsumed
248248
# 0 will consume all the available cpu cores
249249
- name: CPU_CORE
250250
value: '0'
@@ -255,7 +255,7 @@ spec:
255255
value: 'litmus'
256256

257257
labels:
258-
name: aws-ssm-chaos-by-id
258+
name: aws-ssm-chaos-by-tag
259259
app.kubernetes.io/part-of: litmus
260260
app.kubernetes.io/component: experiment-job
261261
app.kubernetes.io/version: latest

charts/azure/experiments.yaml

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apiVersion: litmuschaos.io/v1alpha1
22
description:
33
message: |
4-
Detaches disk from the VM and then re-attaches disk to the VM
4+
Terminating azure VM instance
55
kind: ChaosExperiment
66
metadata:
7-
name: azure-disk-loss
7+
name: azure-instance-stop
88
labels:
9-
name: azure-disk-loss
9+
name: azure-instance-stop
1010
app.kubernetes.io/part-of: litmus
1111
app.kubernetes.io/component: chaosexperiment
1212
app.kubernetes.io/version: latest
@@ -46,64 +46,65 @@ spec:
4646
imagePullPolicy: Always
4747
args:
4848
- -c
49-
- ./experiments -name azure-disk-loss
49+
- ./experiments -name azure-instance-stop
5050
command:
5151
- /bin/bash
5252
env:
5353

5454
- name: TOTAL_CHAOS_DURATION
55-
value: '30'
55+
value: '30'
5656

5757
- name: CHAOS_INTERVAL
5858
value: '30'
5959

60-
- name: LIB
61-
value: 'litmus'
62-
6360
# Period to wait before and after injection of chaos in sec
6461
- name: RAMP_TIME
6562
value: ''
66-
63+
64+
# provide the target instance name(s) (comma separated if multiple)
65+
- name: AZURE_INSTANCE_NAME
66+
value: ''
67+
6768
# provide the resource group of the instance
6869
- name: RESOURCE_GROUP
6970
value: ''
7071

7172
# accepts enable/disable, default is disable
7273
- name: SCALE_SET
7374
value: ''
74-
75-
# provide the virtual disk names (comma separated if multiple)
76-
- name: VIRTUAL_DISK_NAMES
77-
value: ''
78-
79-
# provide the sequence type for the run. Options: serial/parallel
80-
- name: SEQUENCE
81-
value: 'parallel'
82-
83-
# provide the path to aks credentials mounted from secret
75+
76+
# Provide the path of aks credentials mounted from secret
8477
- name: AZURE_AUTH_LOCATION
8578
value: '/tmp/azure.auth'
8679

80+
- name: SEQUENCE
81+
value: 'parallel'
82+
83+
# provide the LIB
84+
# only litmus supported
85+
- name: LIB
86+
value: 'litmus'
87+
8788
labels:
88-
name: azure-disk-loss
89+
name: azure-instance-stop
8990
app.kubernetes.io/part-of: litmus
9091
app.kubernetes.io/component: experiment-job
9192
app.kubernetes.io/version: latest
92-
9393
secrets:
9494
- name: cloud-secret
9595
mountPath: /tmp/
9696

97+
9798
---
9899
apiVersion: litmuschaos.io/v1alpha1
99100
description:
100101
message: |
101-
Terminating azure VM instance
102+
Detaches disk from the VM and then re-attaches disk to the VM
102103
kind: ChaosExperiment
103104
metadata:
104-
name: azure-instance-stop
105+
name: azure-disk-loss
105106
labels:
106-
name: azure-instance-stop
107+
name: azure-disk-loss
107108
app.kubernetes.io/part-of: litmus
108109
app.kubernetes.io/component: chaosexperiment
109110
app.kubernetes.io/version: latest
@@ -143,53 +144,52 @@ spec:
143144
imagePullPolicy: Always
144145
args:
145146
- -c
146-
- ./experiments -name azure-instance-stop
147+
- ./experiments -name azure-disk-loss
147148
command:
148149
- /bin/bash
149150
env:
150151

151152
- name: TOTAL_CHAOS_DURATION
152-
value: '30'
153+
value: '30'
153154

154155
- name: CHAOS_INTERVAL
155156
value: '30'
156157

158+
- name: LIB
159+
value: 'litmus'
160+
157161
# Period to wait before and after injection of chaos in sec
158162
- name: RAMP_TIME
159163
value: ''
160-
161-
# provide the target instance name(s) (comma separated if multiple)
162-
- name: AZURE_INSTANCE_NAME
163-
value: ''
164-
164+
165165
# provide the resource group of the instance
166166
- name: RESOURCE_GROUP
167167
value: ''
168168

169169
# accepts enable/disable, default is disable
170170
- name: SCALE_SET
171171
value: ''
172-
173-
# Provide the path of aks credentials mounted from secret
172+
173+
# provide the virtual disk names (comma separated if multiple)
174+
- name: VIRTUAL_DISK_NAMES
175+
value: ''
176+
177+
# provide the sequence type for the run. Options: serial/parallel
178+
- name: SEQUENCE
179+
value: 'parallel'
180+
181+
# provide the path to aks credentials mounted from secret
174182
- name: AZURE_AUTH_LOCATION
175183
value: '/tmp/azure.auth'
176184

177-
- name: SEQUENCE
178-
value: 'parallel'
179-
180-
# provide the LIB
181-
# only litmus supported
182-
- name: LIB
183-
value: 'litmus'
184-
185185
labels:
186-
name: azure-instance-stop
186+
name: azure-disk-loss
187187
app.kubernetes.io/part-of: litmus
188188
app.kubernetes.io/component: experiment-job
189189
app.kubernetes.io/version: latest
190+
190191
secrets:
191192
- name: cloud-secret
192193
mountPath: /tmp/
193194

194-
195195
---

0 commit comments

Comments
 (0)