Signed-off-by: oumkale <oum.kale@mayadata.io>
This commit is contained in:
oumkale
2021-02-17 18:02:11 +05:30
parent dfb9587f8e
commit 122d106026

View File

@@ -65,6 +65,8 @@ spec:
- apiGroups:
- ""
- "apps"
- "apps.openshift.io"
- "argoproj.io"
- "batch"
- "litmuschaos.io"
resources:
@@ -72,8 +74,15 @@ spec:
- "jobs"
- "pods"
- "pods/log"
- "replicationcontrollers"
- "deployments"
- "statefulsets"
- "daemonsets"
- "replicasets"
- "deploymentconfigs"
- "rollouts"
- "pods/exec"
- "events"
- "configmaps"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
@@ -84,6 +93,7 @@ spec:
- "patch"
- "update"
- "delete"
- "deletecollection"
- apiGroups:
- ""
resources:
@@ -105,14 +115,18 @@ spec:
- name: RAMP_TIME
value: ''
# provide the kill count
- name: KILL_COUNT
value: ''
- name: FORCE
value: 'true'
- name: CHAOS_INTERVAL
value: '5'
- name: PODS_AFFECTED_PERC
value: ''
- name: LIB
value: 'litmus'
value: 'litmus'
- name: TARGET_PODS
value: ''
- name: SEQUENCE
value: 'parallel'
labels:
name: pod-delete
container:
@@ -144,12 +158,23 @@ spec:
- apiGroups:
- ""
- "batch"
- "apps"
- "apps.openshift.io"
- "argoproj.io"
- "litmuschaos.io"
resources:
- "jobs"
- "pods"
- "pods/log"
- "events"
- "replicationcontrollers"
- "deployments"
- "statefulsets"
- "daemonsets"
- "replicasets"
- "deploymentconfigs"
- "rollouts"
- "pods/exec"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
@@ -160,6 +185,7 @@ spec:
- "patch"
- "update"
- "delete"
- "deletecollection"
image: "litmuschaos/go-runner:latest"
imagePullPolicy: Always
args:
@@ -169,7 +195,7 @@ spec:
- /bin/bash
env:
- name: TOTAL_CHAOS_DURATION
value: ''
value: '60'
- name: CHAOS_INTERVAL
value: '10'
@@ -184,9 +210,15 @@ spec:
value: ''
- name: LIB
value: 'litmus'
- name: TARGET_POD
## It is used in pumba lib only
- name: LIB_IMAGE
value: 'litmuschaos/go-runner:latest'
- name: SOCKET_PATH
value: '/var/run/docker.sock'
- name: TARGET_PODS
value: ''
- name: SEQUENCE
value: 'parallel'
labels:
name: pod-cpu-hog
container:
@@ -218,11 +250,22 @@ spec:
- apiGroups:
- ""
- "batch"
- "apps"
- "apps.openshift.io"
- "argoproj.io"
- "litmuschaos.io"
resources:
- "jobs"
- "pods"
- "pods/log"
- "replicationcontrollers"
- "deployments"
- "statefulsets"
- "daemonsets"
- "replicasets"
- "deploymentconfigs"
- "rollouts"
- "pods/exec"
- "events"
- "chaosengines"
- "chaosexperiments"
@@ -234,7 +277,9 @@ spec:
- "patch"
- "update"
- "delete"
- "deletecollection"
image: "litmuschaos/go-runner:latest"
imagePullPolicy: Always
args:
- -c
- ./experiments -name pod-memory-hog
@@ -242,7 +287,7 @@ spec:
- /bin/bash
env:
- name: TOTAL_CHAOS_DURATION
value: '30'
value: '60'
- name: CHAOS_INTERVAL
value: '10'
## enter the amount of memory in megabytes to be consumed by the application pod
@@ -258,7 +303,15 @@ spec:
## default: litmus. Supported values: litmus, powerfulseal, chaoskube
- name: LIB
value: 'litmus'
- name: TARGET_POD
- name: LIB_IMAGE
value: 'litmuschaos/go-runner:latest'
- name: SOCKET_PATH
value: '/var/run/docker.sock'
## it defines the sequence of chaos execution for multiple target pods
## supported values: serial, parallel
- name: SEQUENCE
value: 'parallel
- name: TARGET_PODS
value: ''
labels:
name: pod-memory-hog
@@ -291,11 +344,22 @@ spec:
- apiGroups:
- ""
- "batch"
- "apps"
- "apps.openshift.io"
- "argoproj.io"
- "litmuschaos.io"
resources:
- "jobs"
- "pods"
- "pods/log"
- "replicationcontrollers"
- "deployments"
- "statefulsets"
- "daemonsets"
- "replicasets"
- "deploymentconfigs"
- "rollouts"
- "pods/exec"
- "events"
- "chaosengines"
- "chaosexperiments"
@@ -328,23 +392,23 @@ spec:
- name: NETWORK_PACKET_LOSS_PERCENTAGE
value: '100' #in PERCENTAGE
- name: TOTAL_CHAOS_DURATION
value: '60' # in seconds
value: '30' # in seconds
- name: RAMP_TIME
value: ''
- name: LIB
value: 'litmus'
- name: PODS_AFFECTED_PERC
value: ''
- name: TARGET_POD
- name: TARGET_PODS
value: ''
- name: CONTAINER_RUNTIME
value: 'docker'
- name: TARGET_IPS
- name: DESTINATION_IPS
value: ''
- name: TARGET_HOSTS
- name: DESTINATION_HOSTS
value: ''
- name: SOCKET_PATH
value: '/run/containerd/containerd.sock'
value: '/var/run/docker.sock'
- name: SEQUENCE
value: 'parallel'
labels:
@@ -413,14 +477,13 @@ spec:
components:
experimentImage: "litmuschaos/go-runner:latest"
env:
- name: TARGET_CONTAINER
value: ''
- name: NODE_CPU_CORE
#number of cpu cores to be consumed
#verify the resources the app has been launched with
- name: CPU_CORES
value: '1'
- name: TOTAL_CHAOS_DURATION
value: '' # in seconds
- name: CHAOS_KILL_COMMAND
value: "kill -9 $(ps afx | grep \"[md5sum] /dev/zero\" | awk '{print$1}' | tr '\n' ' ')"
value: '30' # in seconds
container:
image: litmuschaos/litmus-checker:latest
args: ["-file=/tmp/chaosengine.yaml","-saveName=/tmp/engine-name"]
@@ -484,14 +547,11 @@ spec:
components:
experimentImage: "litmuschaos/go-runner:latest"
env:
- name: TARGET_CONTAINER
value: ''
- name: MEMORY_CONSUMPTION
value: '500'
- name: TOTAL_CHAOS_DURATION
value: '60' # in seconds
- name: CHAOS_KILL_COMMAND
value: "kill -9 $(ps afx | grep \"[dd] if /dev/zero\" | awk '{print $1}' | tr '\n' ' ')"
container:
image: litmuschaos/litmus-checker:latest
args: ["-file=/tmp/chaosengine.yaml","-saveName=/tmp/engine-name"]
@@ -515,7 +575,6 @@ spec:
appkind: 'deployment'
annotationCheck: 'false'
engineState: 'active'
auxiliaryAppInfo: ''
chaosServiceAccount: litmus-admin
monitoring: true
jobCleanUpPolicy: 'retain'
@@ -559,7 +618,7 @@ spec:
components:
env:
- name: TOTAL_CHAOS_DURATION
value: '10'
value: '30'
# set chaos interval (in sec) as desired
- name: CHAOS_INTERVAL
@@ -590,10 +649,9 @@ spec:
applabel: 'name=user-db'
appkind: 'statefulset'
jobCleanUpPolicy: retain
monitoring: true
monitoring: false
annotationCheck: 'false'
engineState: 'active'
auxiliaryAppInfo: ''
chaosServiceAccount: litmus-admin
components:
runner:
@@ -634,10 +692,6 @@ spec:
initialDelaySeconds: 2
components:
env:
- name: TARGET_CONTAINER
value: ''
- name: LIB_IMAGE
value: 'litmuschaos/go-runner:latest'
- name: TOTAL_CHAOS_DURATION
value: '30'