From 4ba276cfbf12db1103d8d5d614ac64a2f9253873 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 28 Oct 2020 21:10:38 +0000 Subject: [PATCH] 1487: version upgraded for chaos-charts --- charts/generic/experiments.yaml | 4 + charts/kube-aws/experiments.yaml | 151 +++++++++++++++++++++++++++++++ 2 files changed, 155 insertions(+) diff --git a/charts/generic/experiments.yaml b/charts/generic/experiments.yaml index 054f537..7770e08 100644 --- a/charts/generic/experiments.yaml +++ b/charts/generic/experiments.yaml @@ -594,6 +594,10 @@ spec: - name: REPLICA_COUNT value: '5' + # provide volume mount path + - name: VOLUME_MOUNT_PATH + value: '' + # PROVIDE THE LIB HERE # ONLY LITMUS SUPPORTED - name: LIB diff --git a/charts/kube-aws/experiments.yaml b/charts/kube-aws/experiments.yaml index 05714be..6c7de2e 100644 --- a/charts/kube-aws/experiments.yaml +++ b/charts/kube-aws/experiments.yaml @@ -1,5 +1,77 @@ --- +apiVersion: litmuschaos.io/v1alpha1 +description: + message: | + Detaching an ebs volume from ec2 instance. +kind: ChaosExperiment +metadata: + name: ec2-terminate + labels: + name: ec2-terminate + app.kubernetes.io/part-of: litmus + app.kubernetes.io/component: chaosexperiment + app.kubernetes.io/version: latest +spec: + definition: + scope: Cluster + permissions: + - apiGroups: + - "" + - "batch" + - "litmuschaos.io" + resources: + - "jobs" + - "pods" + - "events" + - "pods/log" + - "secrets" + - "chaosengines" + - "chaosexperiments" + - "chaosresults" + verbs: + - "create" + - "list" + - "get" + - "patch" + - "update" + - "delete" + image: "litmuschaos/go-runner:latest" + imagePullPolicy: Always + args: + - -c + - ./experiments -name ec2-terminate + command: + - /bin/bash + env: + - name: TOTAL_CHAOS_DURATION + value: '60' + + # Period to wait before and after injection of chaos in sec + - name: RAMP_TIME + value: '' + + - name: EC2_INSTANCE_ID + value: '' + + - name: REGION + value: '' + + # provide the LIB + # only litmus supported + - name: LIB + value: 'litmus' + + labels: + name: ec2-terminate + app.kubernetes.io/part-of: litmus + app.kubernetes.io/component: experiment-job + app.kubernetes.io/version: latest + secrets: + - name: cloud-secret + mountPath: /tmp/ +--- + apiVersion: litmuschaos.io/v1alpha1 description: message: | @@ -115,3 +187,82 @@ spec: --- +apiVersion: litmuschaos.io/v1alpha1 +description: + message: | + Detaching an ebs volume from ec2 instance. +kind: ChaosExperiment +metadata: + name: ebs-loss + labels: + name: ebs-loss + app.kubernetes.io/part-of: litmus + app.kubernetes.io/component: chaosexperiment + app.kubernetes.io/version: latest +spec: + definition: + scope: Cluster + permissions: + - apiGroups: + - "" + - "batch" + - "litmuschaos.io" + resources: + - "jobs" + - "pods" + - "events" + - "pods/log" + - "secrets" + - "chaosengines" + - "chaosexperiments" + - "chaosresults" + verbs: + - "create" + - "list" + - "get" + - "patch" + - "update" + - "delete" + image: "litmuschaos/go-runner:latest" + imagePullPolicy: Always + args: + - -c + - ./experiments -name ebs-loss + command: + - /bin/bash + env: + - name: TOTAL_CHAOS_DURATION + value: '60' + + # Period to wait before and after injection of chaos in sec + - name: RAMP_TIME + value: '' + + - name: EC2_INSTANCE_ID + value: '' + + - name: EBS_VOL_ID + value: '' + + - name: REGION + value: '' + + # provide the LIB + # only litmus supported + - name: LIB + value: 'litmus' + + - name: DEVICE_NAME + value: '' + + labels: + name: ebs-loss + app.kubernetes.io/part-of: litmus + app.kubernetes.io/component: experiment-job + app.kubernetes.io/version: latest + secrets: + - name: cloud-secret + mountPath: /tmp/ + +--- +