From f7e7662633a6e493432e1ae7656729aa637fc756 Mon Sep 17 00:00:00 2001 From: Ishan Gupta Date: Tue, 8 Sep 2020 16:41:55 +0530 Subject: [PATCH] Bug fix for pod memory hog workflow. (#313) * Added sample workflows for litmus-portal. Signed-off-by: ishangupta-ds --- .DS_Store | Bin 6148 -> 0 bytes workflows/pod-memory-hog/workflow.yaml | 92 ++++++++++++------------- 2 files changed, 46 insertions(+), 46 deletions(-) delete mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index d8adb82beeb517e7376c33534febb3e7290e8b64..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK&2H2%5FT&0C5Ea>B@RX6V2J~lMcS&RdyTd&r%FYnq6dDqNt3csBfCnn&0)1t z!~^gE^h)79fQR5kxHDrLv}H>VJ)o-cNaJrZo*Bzuvi1%Du>L4n1@HmDLnUl+94--> zC!LX&^~@tOUE>MVprC+bIGTxej+@8;y}Kni#CN7Z!u0#g(NjYi*X2o^s~F>c#wU4J zR^9Fo)|zY2FWm9?UB1YdIDZokRUKAQH7fg2G4LOTS(3(4v7aT?a4(hHd3u`4-C`%I z(&7~b?*ZY}FRNYr2nUp%-7T5Oks2XA&{wO$T zG{4;A1Ak>a?scDb#M=7Cq$9??UbiFG*ES{-&bX;{cy$#)n>i}9)7isgE`)Fsn@6`%#3I0hU8j)7}2 zV2?cS-nFt_l4HOzaGM#R^Fg2z1{NEG`slzxw*ZK3bZbGIdI`!A76XfoL7YKhCKb`7 zGTUM>la792;{uC~L6Z*5HXqEc%xs6k^y*k&=x|_xK{q-E90L~_m@|()-T&MF?*A_) zxhKbfW8hXXz}j2kRv))y@79^k(OoN04^T-ct}*y01r2=_V=P_8E2vt~FUUX)EH(zw RgW~=OXd2w$82GOY`~m?Ae+mEq diff --git a/workflows/pod-memory-hog/workflow.yaml b/workflows/pod-memory-hog/workflow.yaml index 33fa68d..6a597da 100644 --- a/workflows/pod-memory-hog/workflow.yaml +++ b/workflows/pod-memory-hog/workflow.yaml @@ -37,62 +37,62 @@ spec: version: 0.1.3 spec: definition: - scope: Namespaced - permissions: - - apiGroups: - - "" - - "batch" - - "litmuschaos.io" - resources: - - "jobs" - - "pods" - - "pods/log" - - "events" - - "chaosengines" - - "chaosexperiments" - - "chaosresults" - verbs: - - "create" - - "list" - - "get" - - "patch" - - "update" - - "delete" - image: "litmuschaos/go-runner:ci" - args: + scope: Namespaced + permissions: + - apiGroups: + - "" + - "batch" + - "litmuschaos.io" + resources: + - "jobs" + - "pods" + - "pods/log" + - "events" + - "chaosengines" + - "chaosexperiments" + - "chaosresults" + verbs: + - "create" + - "list" + - "get" + - "patch" + - "update" + - "delete" + image: "litmuschaos/go-runner:latest" + args: - -c - ./experiments/pod-memory-hog - command: + command: - /bin/bash - env: - - name: TOTAL_CHAOS_DURATION - value: '30' + env: + - name: TOTAL_CHAOS_DURATION + value: '30' - - name: CHAOS_INTERVAL - value: '10' + - name: CHAOS_INTERVAL + value: '10' - ## enter the amount of memory in megabytes to be consumed by the application pod - - name: MEMORY_CONSUMPTION - value: '500' + ## enter the amount of memory in megabytes to be consumed by the application pod + - name: MEMORY_CONSUMPTION + value: '500' - ## percentage of total pods to target - - name: PODS_AFFECTED_PERC - value: '' + ## percentage of total pods to target + - name: PODS_AFFECTED_PERC + value: '' - ## Period to wait before and after injection of chaos in sec - - name: RAMP_TIME - value: '' + ## Period to wait before and after injection of chaos in sec + - name: RAMP_TIME + value: '' - ## env var that describes the library used to execute the chaos - ## default: litmus. Supported values: litmus, powerfulseal, chaoskube - - name: LIB - value: 'litmus' + ## env var that describes the library used to execute the chaos + ## default: litmus. Supported values: litmus, powerfulseal, chaoskube + - name: LIB + value: 'litmus' - - name: TARGET_POD - value: '' + - name: TARGET_POD + value: '' - labels: - name: pod-memory-hog + labels: + name: pod-memory-hog container: image: lachlanevenson/k8s-kubectl command: [sh, -c]