@@ -58,10 +58,10 @@ PUT https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588
58
58
],
59
59
"steps": [
60
60
{
61
- "name": "AKS pod kill ",
61
+ "name": "AKS network latency ",
62
62
"branches": [
63
63
{
64
- "name": "AKS pod kill ",
64
+ "name": "AKS network latency ",
65
65
"actions": [
66
66
{
67
67
"type": "continuous",
@@ -92,3 +92,135 @@ PUT https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588
92
92
{"action":"delay","mode":"all","selector":{"namespaces":["default"]},"delay":{"latency":"200ms","correlation":"100","jitter":"0ms"}}
93
93
```
94
94
---
95
+ Azure Kubernetes Service (AKS) Pod Failure
96
+ ---
97
+
98
+ ### [ Azure CLI] ( #tab/azure-CLI )
99
+ ``` AzCLI
100
+ PUT https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment?api-version=2024-01-01
101
+
102
+ {
103
+
104
+ "identity": {
105
+ "type": "SystemAssigned",
106
+ "principalId": "35g5795t-8sd4-5b99-a7c8-d5asdh9as7",
107
+ "tenantId": "asd79ash-7daa-95hs-0as8-f3md812e3md"
108
+ },
109
+ "tags": {},
110
+ "location": "westus",
111
+ "properties": {
112
+ "provisioningState": "Succeeded",
113
+ "selectors": [
114
+ {
115
+ "type": "List",
116
+ "targets": [
117
+ {
118
+ "id": "/subscriptions/123hdq8-123d-89d7-5670-123123/resourceGroups/aks_pod_fail_experiment/providers/Microsoft.ContainerService/managedClusters/nikhilAKScluster/providers/Microsoft.Chaos/targets/Microsoft-AzureKubernetesServiceChaosMesh",
119
+ "type": "ChaosTarget"
120
+ }
121
+ ],
122
+ "id": "Selector1"
123
+ }
124
+ ],
125
+ "steps": [
126
+ {
127
+ "name": "AKS pod kill",
128
+ "branches": [
129
+ {
130
+ "name": "AKS pod kill",
131
+ "actions": [
132
+ {
133
+ "type": "continuous",
134
+ "selectorId": "Selector1",
135
+ "duration": "PT5M",
136
+ "parameters": [
137
+ {
138
+ "key": "jsonSpec",
139
+ "value": "{\"action\":\"pod-failure\",\"mode\":\"all\",\"duration\":\"600s\",\"selector\":{\"namespaces\":[\"autoinstrumentationdemo\"]}}}"
140
+ }
141
+ ],
142
+ "name": "urn:csci:microsoft:azureKubernetesServiceChaosMesh:podChaos/2.1"
143
+ }
144
+ ]
145
+ }
146
+ ]
147
+ }
148
+ ]
149
+ }
150
+ }
151
+
152
+ ```
153
+
154
+
155
+ ### [ Azure portal] ( #tab/azure-portal )
156
+
157
+ ``` Azure portal
158
+ {"action":"pod-failure","mode":"all","duration":"600s","selector":{"namespaces":["autoinstrumentationdemo"]}}
159
+ ```
160
+ ---
161
+ Azure Kubernetes Service (AKS) Memory Stress
162
+ ---
163
+
164
+ ### [ Azure CLI] ( #tab/azure-CLI )
165
+ ``` AzCLI
166
+ PUT https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Chaos/experiments/exampleExperiment?api-version=2024-01-01
167
+
168
+ {
169
+
170
+ "identity": {
171
+ "type": "SystemAssigned",
172
+ "principalId": "35g5795t-8sd4-5b99-a7c8-d5asdh9as7",
173
+ "tenantId": "asd79ash-7daa-95hs-0as8-f3md812e3md"
174
+ },
175
+ "tags": {},
176
+ "location": "westus",
177
+ "properties": {
178
+ "provisioningState": "Succeeded",
179
+ "selectors": [
180
+ {
181
+ "type": "List",
182
+ "targets": [
183
+ {
184
+ "id": "/subscriptions/123hdq8-123d-89d7-5670-123123/resourceGroups/aks_memory_stress_experiment/providers/Microsoft.ContainerService/managedClusters/nikhilAKScluster/providers/Microsoft.Chaos/targets/Microsoft-AzureKubernetesServiceChaosMesh",
185
+ "type": "ChaosTarget"
186
+ }
187
+ ],
188
+ "id": "Selector1"
189
+ }
190
+ ],
191
+ "steps": [
192
+ {
193
+ "name": "AKS memory stress",
194
+ "branches": [
195
+ {
196
+ "name": "AKS memory stress",
197
+ "actions": [
198
+ {
199
+ "type": "continuous",
200
+ "selectorId": "Selector1",
201
+ "duration": "PT10M",
202
+ "parameters": [
203
+ {
204
+ "key": "jsonSpec",
205
+ "value": "{\"mode\":\"all\",\"selector\":{\"namespaces\":[\"autoinstrumentationdemo\"]},\"stressors\":{\"memory\":{\"workers\":4,\"size\":\"95%\"}}"
206
+ }
207
+ ],
208
+ "name": "urn:csci:microsoft:azureKubernetesServiceChaosMesh:stressChaos/2.1"
209
+ }
210
+ ]
211
+ }
212
+ ]
213
+ }
214
+ ]
215
+ }
216
+ }
217
+
218
+ ```
219
+
220
+
221
+ ### [ Azure portal] ( #tab/azure-portal )
222
+
223
+ ``` Azure portal
224
+ {"mode":"all","selector":{"namespaces":["autoinstrumentationdemo"]},"stressors":{"memory":{"workers":4,"size":"95%"}}
225
+ ```
226
+ ---
0 commit comments