-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(actions): Update actions and add multiple experiment execution (#5)
Signed-off-by: Udit Gaurav <[email protected]>
- Loading branch information
1 parent
bcde2b6
commit 649304a
Showing
13 changed files
with
221 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
- name: Running container kill chaos experiment | ||
uses: mayadata-io/[email protected].0 | ||
uses: mayadata-io/[email protected].1 | ||
env: | ||
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }} | ||
##If litmus is not installed | ||
|
@@ -33,7 +33,9 @@ jobs: | |
APP_KIND: deployment | ||
EXPERIMENT_NAME: container-kill | ||
##Custom images can also be used | ||
EXPERIMENT_IMAGE: litmuschaos/ansible-runner:latest | ||
EXPERIMENT_IMAGE: litmuschaos/ansible-runner | ||
EXPERIMENT_IMAGE_TAG: latest | ||
IMAGE_PULL_POLICY: Always | ||
TARGET_CONTAINER: nginx | ||
TOTAL_CHAOS_DURATION: 20 | ||
CHAOS_INTERVAL: 10 | ||
|
@@ -109,8 +111,20 @@ The application pod for container-kill will be identified with the app info vari | |
</tr> | ||
<tr> | ||
<td> EXPERIMENT_IMAGE </td> | ||
<td> We can provide cumstom image for running litmus chaos experiment </td> | ||
<td> We can provide custom image for running chaos experiment </td> | ||
<td> Optional </td> | ||
<td> Default value is litmuschaos/ansible-runner:latest </td> | ||
<td> Default value is litmuschaos/ansible-runner </td> | ||
</tr> | ||
<tr> | ||
<td> EXPERIMENT_IMAGE_TAG </td> | ||
<td> We can set the image tag while using custom image for the chaos experiment </td> | ||
<td> Optional </td> | ||
<td> Default value is latest </td> | ||
</tr> | ||
<tr> | ||
<td>IMAGE_PULL_POLICY </td> | ||
<td> We can set the image pull policy while using custom image for running chaos experiment </td> | ||
<td> Optional </td> | ||
<td> Default value is Always </td> | ||
</tr> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
- name: Running disk-fill chaos experiment | ||
uses: mayadata-io/[email protected].0 | ||
uses: mayadata-io/[email protected].1 | ||
env: | ||
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }} | ||
##If litmus is not installed | ||
|
@@ -37,7 +37,9 @@ jobs: | |
FILL_PERCENTAGE: 80 | ||
TARGET_CONTAINER: nginx | ||
##Custom images can also be used | ||
EXPERIMENT_IMAGE: litmuschaos/ansible-runner:latest | ||
EXPERIMENT_IMAGE: litmuschaos/ansible-runner | ||
EXPERIMENT_IMAGE_TAG: latest | ||
IMAGE_PULL_POLICY: Always | ||
##Select true if you want to uninstall litmus after chaos | ||
LITMUS_CLEANUP: true | ||
``` | ||
|
@@ -105,8 +107,20 @@ The application pod for disk-fill will be identified with the app info variables | |
</tr> | ||
<tr> | ||
<td> EXPERIMENT_IMAGE </td> | ||
<td>We can provide cumstom image for running litmus chaos experiment </td> | ||
<td> We can provide custom image for running chaos experiment </td> | ||
<td> Optional </td> | ||
<td> Default value is litmuschaos/ansible-runner:latest </td> | ||
<td> Default value is litmuschaos/ansible-runner </td> | ||
</tr> | ||
<tr> | ||
<td> EXPERIMENT_IMAGE_TAG </td> | ||
<td> We can set the image tag while using custom image for the chaos experiment </td> | ||
<td> Optional </td> | ||
<td> Default value is latest </td> | ||
</tr> | ||
<tr> | ||
<td>IMAGE_PULL_POLICY </td> | ||
<td> We can set the image pull policy while using custom image for running chaos experiment </td> | ||
<td> Optional </td> | ||
<td> Default value is Always </td> | ||
</tr> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
- name: Running node-cpu-hog chaos experiment | ||
uses: mayadata-io/[email protected].0 | ||
uses: mayadata-io/[email protected].1 | ||
env: | ||
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }} | ||
##If litmus is not installed | ||
|
@@ -32,7 +32,9 @@ jobs: | |
APP_KIND: deployment | ||
EXPERIMENT_NAME: node-cpu-hog | ||
##Custom images can also be used | ||
EXPERIMENT_IMAGE: litmuschaos/ansible-runner:latest | ||
EXPERIMENT_IMAGE: litmuschaos/ansible-runner | ||
EXPERIMENT_IMAGE_TAG: latest | ||
IMAGE_PULL_POLICY: Always | ||
TOTAL_CHAOS_DURATION: 60 | ||
NODE_CPU_CORE: 2 | ||
##Select true if you want to uninstall litmus after chaos | ||
|
@@ -102,8 +104,20 @@ The application pod for node-cpu-hog will be identified with the app info variab | |
</tr> | ||
<tr> | ||
<td> EXPERIMENT_IMAGE </td> | ||
<td>We can provide cumstom image for running litmus chaos experiment </td> | ||
<td> We can provide custom image for running chaos experiment </td> | ||
<td> Optional </td> | ||
<td> Default value is litmuschaos/ansible-runner:latest </td> | ||
<td> Default value is litmuschaos/ansible-runner </td> | ||
</tr> | ||
<tr> | ||
<td> EXPERIMENT_IMAGE_TAG </td> | ||
<td> We can set the image tag while using custom image for the chaos experiment </td> | ||
<td> Optional </td> | ||
<td> Default value is latest </td> | ||
</tr> | ||
<tr> | ||
<td>IMAGE_PULL_POLICY </td> | ||
<td> We can set the image pull policy while using custom image for running chaos experiment </td> | ||
<td> Optional </td> | ||
<td> Default value is Always </td> | ||
</tr> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
- name: Running node-memory-hog chaos experiment | ||
uses: mayadata-io/[email protected].0 | ||
uses: mayadata-io/[email protected].1 | ||
env: | ||
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }} | ||
##if litmus is not installed | ||
|
@@ -32,7 +32,9 @@ jobs: | |
APP_KIND: deployment | ||
EXPERIMENT_NAME: node-memory-hog | ||
##Custom images can also be used | ||
EXPERIMENT_IMAGE: litmuschaos/ansible-runner:latest | ||
EXPERIMENT_IMAGE: litmuschaos/ansible-runner | ||
EXPERIMENT_IMAGE_TAG: latest | ||
IMAGE_PULL_POLICY: Always | ||
TOTAL_CHAOS_DURATION: 120 | ||
MEMORY_PERCENTAGE: 90 | ||
##Select true if you want to uninstall litmus after chaos | ||
|
@@ -102,8 +104,20 @@ The application pod for node-memory-hog will be identified with the app info var | |
</tr> | ||
<tr> | ||
<td> EXPERIMENT_IMAGE </td> | ||
<td>We can provide cumstom image for running litmus chaos experiment </td> | ||
<td> We can provide custom image for running chaos experiment </td> | ||
<td> Optional </td> | ||
<td> Default value is litmuschaos/ansible-runner:latest </td> | ||
<td> Default value is litmuschaos/ansible-runner </td> | ||
</tr> | ||
<tr> | ||
<td> EXPERIMENT_IMAGE_TAG </td> | ||
<td> We can set the image tag while using custom image for the chaos experiment </td> | ||
<td> Optional </td> | ||
<td> Default value is latest </td> | ||
</tr> | ||
<tr> | ||
<td>IMAGE_PULL_POLICY </td> | ||
<td> We can set the image pull policy while using custom image for running chaos experiment </td> | ||
<td> Optional </td> | ||
<td> Default value is Always </td> | ||
</tr> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Pod CPU hog Hog Experiment | ||
# Pod CPU Hog Experiment | ||
|
||
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>. | ||
|
||
|
@@ -21,7 +21,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
- name: Running pod-cpu-hog chaos experiment | ||
uses: mayadata-io/[email protected].0 | ||
uses: mayadata-io/[email protected].1 | ||
env: | ||
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }} | ||
##If litmus is not installed | ||
|
@@ -32,7 +32,9 @@ jobs: | |
APP_KIND: deployment | ||
EXPERIMENT_NAME: pod-cpu-hog | ||
##Custom images can also be used | ||
EXPERIMENT_IMAGE: litmuschaos/ansible-runner:latest | ||
EXPERIMENT_IMAGE: litmuschaos/ansible-runner | ||
EXPERIMENT_IMAGE_TAG: latest | ||
IMAGE_PULL_POLICY: Always | ||
TARGET_CONTAINER: nginx | ||
TOTAL_CHAOS_DURATION: 60 | ||
CPU_CORES: 1 | ||
|
@@ -109,8 +111,20 @@ The application pod for pod-cpu-hog will be identified with the app info variabl | |
</tr> | ||
<tr> | ||
<td> EXPERIMENT_IMAGE </td> | ||
<td>We can provide cumstom image for running litmus chaos experiment </td> | ||
<td>We can provide custom image for running litmus chaos experiment </td> | ||
<td> Optional </td> | ||
<td> Default value is litmuschaos/ansible-runner:latest </td> | ||
<td> Default value is litmuschaos/ansible-runner </td> | ||
</tr> | ||
<tr> | ||
<td> EXPERIMENT_IMAGE_TAG </td> | ||
<td> We can set the image tag while using custom image for the chaos experiment </td> | ||
<td> Optional </td> | ||
<td> Default value is latest </td> | ||
</tr> | ||
<tr> | ||
<td>IMAGE_PULL_POLICY </td> | ||
<td> We can set the image pull policy while using custom image for running chaos experiment </td> | ||
<td> Optional </td> | ||
<td> Default value is Always </td> | ||
</tr> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
- name: Running pod delete chaos experiment | ||
uses: mayadata-io/[email protected].0 | ||
uses: mayadata-io/[email protected].1 | ||
env: | ||
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }} | ||
##If litmus is not installed | ||
|
@@ -32,7 +32,9 @@ jobs: | |
APP_KIND: deployment | ||
EXPERIMENT_NAME: pod-delete | ||
##Custom images can also be used | ||
EXPERIMENT_IMAGE: litmuschaos/ansible-runner:latest | ||
EXPERIMENT_IMAGE: litmuschaos/ansible-runner | ||
EXPERIMENT_IMAGE_TAG: latest | ||
IMAGE_PULL_POLICY: Always | ||
TOTAL_CHAOS_DURATION: 30 | ||
CHAOS_INTERVAL: 10 | ||
FORCE: false | ||
|
@@ -116,8 +118,20 @@ The application pod for pod-delete will be identified with the app info variable | |
</tr> | ||
<tr> | ||
<td> EXPERIMENT_IMAGE </td> | ||
<td> We can provide cumstom image for running litmus chaos experiment </td> | ||
<td> We can provide custom image for running chaos experiment </td> | ||
<td> Optional </td> | ||
<td> Default value is litmuschaos/ansible-runner:latest </td> | ||
<td> Default value is litmuschaos/ansible-runner </td> | ||
</tr> | ||
<tr> | ||
<td> EXPERIMENT_IMAGE_TAG </td> | ||
<td> We can set the image tag while using custom image for the chaos experiment </td> | ||
<td> Optional </td> | ||
<td> Default value is latest </td> | ||
</tr> | ||
<tr> | ||
<td>IMAGE_PULL_POLICY </td> | ||
<td> We can set the image pull policy while using custom image for running chaos experiment </td> | ||
<td> Optional </td> | ||
<td> Default value is Always </td> | ||
</tr> | ||
</table> |
Oops, something went wrong.