cleanup cron-workflows (#368)
Signed-off-by: ajeshbaby <ajesh.baby@mayadata.io>
This commit is contained in:
@@ -1,54 +0,0 @@
|
|||||||
## Refer to https://github.com/litmuschaos/chaos-workflows.git to setup the argo infrastructure
|
|
||||||
## Uses admin mode of litmus execution
|
|
||||||
|
|
||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: CronWorkflow
|
|
||||||
metadata:
|
|
||||||
name: node-cpu-cron-wf
|
|
||||||
namespace: litmus
|
|
||||||
spec:
|
|
||||||
schedule: "5/10 * * * *"
|
|
||||||
concurrencyPolicy: "Forbid"
|
|
||||||
startingDeadlineSeconds: 0
|
|
||||||
workflowSpec:
|
|
||||||
entrypoint: argowf-chaos
|
|
||||||
serviceAccountName: argo-chaos
|
|
||||||
templates:
|
|
||||||
- name: argowf-chaos
|
|
||||||
steps:
|
|
||||||
- name: run-node-cpu-hog
|
|
||||||
template: run-node-cpu-hog
|
|
||||||
- name: run-node-cpu-hog
|
|
||||||
inputs:
|
|
||||||
artifacts:
|
|
||||||
- name: run-node-cpu-hog
|
|
||||||
path: /tmp/chaosengine.yaml
|
|
||||||
raw:
|
|
||||||
data: |
|
|
||||||
apiVersion: litmuschaos.io/v1alpha1
|
|
||||||
kind: ChaosEngine
|
|
||||||
metadata:
|
|
||||||
name: node-cpu-hog
|
|
||||||
namespace: litmus
|
|
||||||
spec:
|
|
||||||
appinfo:
|
|
||||||
appns: kube-system
|
|
||||||
applabel: "k8s-app=kube-proxy"
|
|
||||||
appkind: daemonset
|
|
||||||
jobCleanUpPolicy: retain
|
|
||||||
monitoring: true
|
|
||||||
annotationCheck: 'false'
|
|
||||||
engineState: 'active'
|
|
||||||
chaosServiceAccount: litmus-admin
|
|
||||||
experiments:
|
|
||||||
- name: node-cpu-hog
|
|
||||||
spec:
|
|
||||||
components:
|
|
||||||
env:
|
|
||||||
- name: TOTAL_CHAOS_DURATION
|
|
||||||
value: "60"
|
|
||||||
- name: NODE_CPU_CORE
|
|
||||||
value: ""
|
|
||||||
container:
|
|
||||||
image: litmuschaos/litmus-checker:latest
|
|
||||||
args: ["-file=/tmp/chaosengine.yaml","-saveName=/tmp/engine-name"]
|
|
@@ -1,54 +0,0 @@
|
|||||||
## Refer to https://github.com/litmuschaos/chaos-workflows.git to setup the argo infrastructure
|
|
||||||
## Uses admin mode of litmus execution
|
|
||||||
|
|
||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: CronWorkflow
|
|
||||||
metadata:
|
|
||||||
name: node-memory-cron-wf
|
|
||||||
namespace: litmus
|
|
||||||
spec:
|
|
||||||
schedule: "0/10 * * * *"
|
|
||||||
concurrencyPolicy: "Forbid"
|
|
||||||
startingDeadlineSeconds: 0
|
|
||||||
workflowSpec:
|
|
||||||
entrypoint: argowf-chaos
|
|
||||||
serviceAccountName: argo-chaos
|
|
||||||
templates:
|
|
||||||
- name: argowf-chaos
|
|
||||||
steps:
|
|
||||||
- name: run-node-memory-hog
|
|
||||||
template: run-node-memory-hog
|
|
||||||
- name: run-node-memory-hog
|
|
||||||
inputs:
|
|
||||||
artifacts:
|
|
||||||
- name: run-node-memory-hog
|
|
||||||
path: /tmp/chaosengine.yaml
|
|
||||||
raw:
|
|
||||||
data: |
|
|
||||||
apiVersion: litmuschaos.io/v1alpha1
|
|
||||||
kind: ChaosEngine
|
|
||||||
metadata:
|
|
||||||
name: node-memory-hog
|
|
||||||
namespace: litmus
|
|
||||||
spec:
|
|
||||||
appinfo:
|
|
||||||
appns: kube-system
|
|
||||||
applabel: "k8s-app=kube-proxy"
|
|
||||||
appkind: daemonset
|
|
||||||
jobCleanUpPolicy: retain
|
|
||||||
monitoring: true
|
|
||||||
annotationCheck: 'false'
|
|
||||||
engineState: 'active'
|
|
||||||
chaosServiceAccount: litmus-admin
|
|
||||||
experiments:
|
|
||||||
- name: node-memory-hog
|
|
||||||
spec:
|
|
||||||
components:
|
|
||||||
env:
|
|
||||||
- name: TOTAL_CHAOS_DURATION
|
|
||||||
value: "60"
|
|
||||||
- name: MEMORY_PERCENTAGE
|
|
||||||
value: "90"
|
|
||||||
container:
|
|
||||||
image: litmuschaos/litmus-checker:latest
|
|
||||||
args: ["-file=/tmp/chaosengine.yaml","-saveName=/tmp/engine-name"]
|
|
Reference in New Issue
Block a user