chore(lib): Add pumba lib image for pod-cpu-hog (#314)

Signed-off-by: Udit Gaurav <udit.gaurav@mayadata.io>
This commit is contained in:
UDIT GAURAV
2020-09-13 21:38:25 +05:30
committed by GitHub
parent 3ddb4b173a
commit dfdf15090f
5 changed files with 19 additions and 5 deletions

View File

@@ -37,7 +37,7 @@ spec:
- /bin/bash
env:
- name: TOTAL_CHAOS_DURATION
value: '30'
value: '60'
- name: CHAOS_INTERVAL
value: '10'
@@ -55,10 +55,14 @@ spec:
value: ''
## env var that describes the library used to execute the chaos
## default: litmus. Supported values: litmus, powerfulseal, chaoskube
## default: litmus. Supported values: litmus, pumba
- name: LIB
value: 'litmus'
## It is used in pumba lib only
- name: LIB_IMAGE
value: 'gaiaadm/pumba'
- name: TARGET_POD
value: ''

View File

@@ -17,7 +17,7 @@ metadata:
rules:
- apiGroups: ["","litmuschaos.io","batch"]
resources: ["pods","jobs","events","pods/log","pods/exec","chaosengines","chaosexperiments","chaosresults"]
verbs: ["create","list","get","patch","update","delete"]
verbs: ["create","list","get","patch","update","delete","deletecollection"]
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: RoleBinding