Bug fix for pod memory hog workflow. (#313)
* Added sample workflows for litmus-portal. Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>
This commit is contained in:
@@ -37,62 +37,62 @@ spec:
|
|||||||
version: 0.1.3
|
version: 0.1.3
|
||||||
spec:
|
spec:
|
||||||
definition:
|
definition:
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
permissions:
|
permissions:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
- "batch"
|
- "batch"
|
||||||
- "litmuschaos.io"
|
- "litmuschaos.io"
|
||||||
resources:
|
resources:
|
||||||
- "jobs"
|
- "jobs"
|
||||||
- "pods"
|
- "pods"
|
||||||
- "pods/log"
|
- "pods/log"
|
||||||
- "events"
|
- "events"
|
||||||
- "chaosengines"
|
- "chaosengines"
|
||||||
- "chaosexperiments"
|
- "chaosexperiments"
|
||||||
- "chaosresults"
|
- "chaosresults"
|
||||||
verbs:
|
verbs:
|
||||||
- "create"
|
- "create"
|
||||||
- "list"
|
- "list"
|
||||||
- "get"
|
- "get"
|
||||||
- "patch"
|
- "patch"
|
||||||
- "update"
|
- "update"
|
||||||
- "delete"
|
- "delete"
|
||||||
image: "litmuschaos/go-runner:ci"
|
image: "litmuschaos/go-runner:latest"
|
||||||
args:
|
args:
|
||||||
- -c
|
- -c
|
||||||
- ./experiments/pod-memory-hog
|
- ./experiments/pod-memory-hog
|
||||||
command:
|
command:
|
||||||
- /bin/bash
|
- /bin/bash
|
||||||
env:
|
env:
|
||||||
- name: TOTAL_CHAOS_DURATION
|
- name: TOTAL_CHAOS_DURATION
|
||||||
value: '30'
|
value: '30'
|
||||||
|
|
||||||
- name: CHAOS_INTERVAL
|
- name: CHAOS_INTERVAL
|
||||||
value: '10'
|
value: '10'
|
||||||
|
|
||||||
## enter the amount of memory in megabytes to be consumed by the application pod
|
## enter the amount of memory in megabytes to be consumed by the application pod
|
||||||
- name: MEMORY_CONSUMPTION
|
- name: MEMORY_CONSUMPTION
|
||||||
value: '500'
|
value: '500'
|
||||||
|
|
||||||
## percentage of total pods to target
|
## percentage of total pods to target
|
||||||
- name: PODS_AFFECTED_PERC
|
- name: PODS_AFFECTED_PERC
|
||||||
value: ''
|
value: ''
|
||||||
|
|
||||||
## Period to wait before and after injection of chaos in sec
|
## Period to wait before and after injection of chaos in sec
|
||||||
- name: RAMP_TIME
|
- name: RAMP_TIME
|
||||||
value: ''
|
value: ''
|
||||||
|
|
||||||
## env var that describes the library used to execute the chaos
|
## env var that describes the library used to execute the chaos
|
||||||
## default: litmus. Supported values: litmus, powerfulseal, chaoskube
|
## default: litmus. Supported values: litmus, powerfulseal, chaoskube
|
||||||
- name: LIB
|
- name: LIB
|
||||||
value: 'litmus'
|
value: 'litmus'
|
||||||
|
|
||||||
- name: TARGET_POD
|
- name: TARGET_POD
|
||||||
value: ''
|
value: ''
|
||||||
|
|
||||||
labels:
|
labels:
|
||||||
name: pod-memory-hog
|
name: pod-memory-hog
|
||||||
container:
|
container:
|
||||||
image: lachlanevenson/k8s-kubectl
|
image: lachlanevenson/k8s-kubectl
|
||||||
command: [sh, -c]
|
command: [sh, -c]
|
||||||
|
Reference in New Issue
Block a user