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

@@ -55,6 +55,10 @@ spec:
- name: LIB - name: LIB
value: 'litmus' value: 'litmus'
# provide lib image
- name: LIB_IMAGE
value: 'litmuschaos/go-runner:latest'
# provide node name # provide node name
- name: APP_NODE - name: APP_NODE
value: '' value: ''

View File

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

View File

@@ -17,7 +17,7 @@ metadata:
rules: rules:
- apiGroups: ["","litmuschaos.io","batch"] - apiGroups: ["","litmuschaos.io","batch"]
resources: ["pods","jobs","events","pods/log","pods/exec","chaosengines","chaosexperiments","chaosresults"] 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 apiVersion: rbac.authorization.k8s.io/v1beta1
kind: RoleBinding kind: RoleBinding

View File

@@ -37,7 +37,7 @@ spec:
- /bin/bash - /bin/bash
env: env:
- name: TOTAL_CHAOS_DURATION - name: TOTAL_CHAOS_DURATION
value: '30' value: '60'
- name: CHAOS_INTERVAL - name: CHAOS_INTERVAL
value: '10' value: '10'
@@ -55,10 +55,14 @@ spec:
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, pumba
- name: LIB - name: LIB
value: 'litmus' value: 'litmus'
## It is used in pumba lib only
- name: LIB_IMAGE
value: 'gaiaadm/pumba'
- name: TARGET_POD - name: TARGET_POD
value: '' value: ''

View File

@@ -17,7 +17,7 @@ metadata:
rules: rules:
- apiGroups: ["","litmuschaos.io","batch"] - apiGroups: ["","litmuschaos.io","batch"]
resources: ["pods","jobs","events","pods/log","pods/exec","chaosengines","chaosexperiments","chaosresults"] 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 apiVersion: rbac.authorization.k8s.io/v1beta1
kind: RoleBinding kind: RoleBinding