|
1 |
| -# Pod CPU hog Hog Experiment |
| 1 | +# Pod CPU Hog Experiment |
2 | 2 |
|
3 | 3 | This experiment causes CPU resource consumption on specified application containers by starting one or more md5sum calculation process on the special file /dev/zero. It Can test the application's resilience to potential slowness/unavailability of some replicas due to high CPU load. Check <a href="https://docs.litmuschaos.io/docs/pod-cpu-hog/">pod cpu hog docs</a> for more info. To know more and get started with chaos-actions visit <a href="https://github.com/mayadata-io/github-chaos-actions/blob/master/README.md">github-chaos-actions</a>.
|
4 | 4 |
|
|
21 | 21 | runs-on: ubuntu-latest
|
22 | 22 |
|
23 | 23 | - name: Running pod-cpu-hog chaos experiment
|
24 |
| - uses: mayadata-io/[email protected].0 |
| 24 | + uses: mayadata-io/[email protected].1 |
25 | 25 | env:
|
26 | 26 | KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }}
|
27 | 27 | ##If litmus is not installed
|
|
32 | 32 | APP_KIND: deployment
|
33 | 33 | EXPERIMENT_NAME: pod-cpu-hog
|
34 | 34 | ##Custom images can also be used
|
35 |
| - EXPERIMENT_IMAGE: litmuschaos/ansible-runner:latest |
| 35 | + EXPERIMENT_IMAGE: litmuschaos/ansible-runner |
| 36 | + EXPERIMENT_IMAGE_TAG: latest |
| 37 | + IMAGE_PULL_POLICY: Always |
36 | 38 | TARGET_CONTAINER: nginx
|
37 | 39 | TOTAL_CHAOS_DURATION: 60
|
38 | 40 | CPU_CORES: 1
|
@@ -109,8 +111,20 @@ The application pod for pod-cpu-hog will be identified with the app info variabl
|
109 | 111 | </tr>
|
110 | 112 | <tr>
|
111 | 113 | <td> EXPERIMENT_IMAGE </td>
|
112 |
| - <td>We can provide cumstom image for running litmus chaos experiment </td> |
| 114 | + <td>We can provide custom image for running litmus chaos experiment </td> |
113 | 115 | <td> Optional </td>
|
114 |
| - <td> Default value is litmuschaos/ansible-runner:latest </td> |
| 116 | + <td> Default value is litmuschaos/ansible-runner </td> |
115 | 117 | </tr>
|
| 118 | + <tr> |
| 119 | + <td> EXPERIMENT_IMAGE_TAG </td> |
| 120 | + <td> We can set the image tag while using custom image for the chaos experiment </td> |
| 121 | + <td> Optional </td> |
| 122 | + <td> Default value is latest </td> |
| 123 | + </tr> |
| 124 | + <tr> |
| 125 | + <td>IMAGE_PULL_POLICY </td> |
| 126 | + <td> We can set the image pull policy while using custom image for running chaos experiment </td> |
| 127 | + <td> Optional </td> |
| 128 | + <td> Default value is Always </td> |
| 129 | + </tr> |
116 | 130 | </table>
|
0 commit comments