From e2d01440c7bd7405f63b5f0b96a1de4d1819561c Mon Sep 17 00:00:00 2001 From: UDIT GAURAV <35391335+uditgaurav@users.noreply.github.com> Date: Mon, 11 Nov 2019 19:55:40 +0530 Subject: [PATCH] (refactor): Modification in disk-fill experiment CR (#41) Signed-off-by: Udit Gaurav --- .../disk-fill.chartserviceversion.yaml | 41 ++++++++++++++ charts/generic/disk-fill/experiment.yml | 53 +++++++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 charts/generic/disk-fill/disk-fill.chartserviceversion.yaml create mode 100644 charts/generic/disk-fill/experiment.yml diff --git a/charts/generic/disk-fill/disk-fill.chartserviceversion.yaml b/charts/generic/disk-fill/disk-fill.chartserviceversion.yaml new file mode 100644 index 0000000..54b2074 --- /dev/null +++ b/charts/generic/disk-fill/disk-fill.chartserviceversion.yaml @@ -0,0 +1,41 @@ +apiVersion: litmuchaos.io/v1alpha1 +kind: ChartServiceVersion +metadata: + name: disk-fill + version: 0.0.1 + annotations: + categories: Kubernetes + vendor: CNCF + createdAt: 2019-08-12T10:28:08Z + repository: https://github.com/litmuschaos/chaos-charts + support: https://slack.kubernetes.io/ +spec: + displayName: disk-fill + categoryDescription: | + Disk fill contains chaos to disrupt state of kubernetes resources. + - Causes (forced/graceful) Disk Stress by filling up the Ephemeral Storage of the Pod using one of it containers. + - Causes Pod to get Evicted if the Pod exceeds it Ephemeral Storage Limit. + - Tests the Ephemeral Storage Limits, to ensure those parameters are sufficient. + + keywords: + - Kubernetes + - Disk + - State + platforms: + - GKE + maturity: alpha + maintainers: + - name: ksatchit + email: karthik.s@mayadata.io + minKubeVersion: 1.12.0 + provider: + name: Mayadata + links: + - name: Kubernetes Website + url: https://kubernetes.io + - name: Source Code + url: https://github.com/kubernetes/kubernetes + icon: + - url: + mediatype: "" + chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/generic/disk-fill/experiment.yaml diff --git a/charts/generic/disk-fill/experiment.yml b/charts/generic/disk-fill/experiment.yml new file mode 100644 index 0000000..51c586b --- /dev/null +++ b/charts/generic/disk-fill/experiment.yml @@ -0,0 +1,53 @@ +apiVersion: litmuschaos.io/v1alpha1 +description: + message: | + Fillup Ephemeral Storage of a Resource +kind: ChaosExperiment +metadata: + name: disk-fill + version: 0.0.1 +spec: + definition: + permissions: + apiGroups: + - "" + - "extensions" + - "apps" + - "batch" + - "litmuschaos.io" + resources: + - "daemonsets" + - "statefulsets" + - "deployments" + - "jobs" + - "pods" + - "pods/exec" + - "chaosengines" + - "chaosexperiments" + - "chaosresults" + verbs: + - "*" + image: "litmuschaos/ansible-runner:ci" + args: + - -c + - ansible-playbook ./experiments/generic/disk_fill/disk_fill_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0 + command: + - /bin/bash + env: + + - name: ANSIBLE_STDOUT_CALLBACK + value: 'default' + + - name: TARGET_CONTAINER + value: '' + + - name: FILL_PERCENTAGE + value: '' + + - name: TOTAL_CHAOS_DURATION + value: '60' + + labels: + name: disk-fill + +