From daed7df76684b4330ffc69186e8d294c25f70729 Mon Sep 17 00:00:00 2001 From: Shubham Chaudhary Date: Fri, 27 Mar 2020 16:52:15 +0530 Subject: [PATCH] feat(c-kill): Adding interval & duration in container-kill experiments (#194) Signed-off-by: shubhamchaudhary --- charts/generic/container-kill/experiment.yaml | 8 ++++++++ .../openebs-pool-container-failure/experiment.yaml | 8 ++++++++ .../openebs-target-container-failure/experiment.yaml | 10 +++++++++- 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/charts/generic/container-kill/experiment.yaml b/charts/generic/container-kill/experiment.yaml index 7e1202b..f780d77 100644 --- a/charts/generic/container-kill/experiment.yaml +++ b/charts/generic/container-kill/experiment.yaml @@ -60,6 +60,14 @@ spec: - name: LIB value: 'pumba' + # provide the chaos interval + - name: CHAOS_INTERVAL + value: '10' + + # provide the total chaos duration + - name: TOTAL_CHAOS_DURATION + value: '20' + # LIB_IMAGE can be - gaiaadm/pumba:0.4.8, gprasath/crictl:ci # For pumba image use: gaiaadm/pumba:0.4.8 # For containerd image use: gprasath/crictl:ci diff --git a/charts/openebs/openebs-pool-container-failure/experiment.yaml b/charts/openebs/openebs-pool-container-failure/experiment.yaml index 643e593..3974f30 100644 --- a/charts/openebs/openebs-pool-container-failure/experiment.yaml +++ b/charts/openebs/openebs-pool-container-failure/experiment.yaml @@ -77,6 +77,14 @@ spec: - name: LIVENESS_APP_NAMESPACE value: '' + # provide the chaos interval + - name: CHAOS_INTERVAL + value: '10' + + # provide the total chaos duration + - name: TOTAL_CHAOS_DURATION + value: '20' + - name: DATA_PERSISTENCE value: '' diff --git a/charts/openebs/openebs-target-container-failure/experiment.yaml b/charts/openebs/openebs-target-container-failure/experiment.yaml index b8c0c3e..2676faf 100644 --- a/charts/openebs/openebs-target-container-failure/experiment.yaml +++ b/charts/openebs/openebs-target-container-failure/experiment.yaml @@ -96,8 +96,16 @@ spec: - name: DEPLOY_TYPE value: 'deployment' + # provide the chaos interval + - name: CHAOS_INTERVAL + value: '10' + + # provide the total chaos duration - name: TOTAL_CHAOS_DURATION - value: "60" + value: '20' + + - name: SOAK_TIME + value: '60' labels: name: openebs-target-container-failure