Files
litmus-hub/charts/chaostoolkit/k8-pod-delete/experiment.yaml
sumit Nagal 2575334f96 Organised the use cases in better way (#278)
* Changes for chaostoolkit

* (refactor): update chaos experiment and sample engine CRs

Signed-off-by: ksatchit <karthik.s@mayadata.io>

* Added support for Reporting

* Added support for Reporting

* organised the cluster and service level chaos

Signed-off-by: Sumit Nagal <sumit_nagal@intuit.com>

Co-authored-by: ksatchit <karthik.s@mayadata.io>
2020-07-29 21:03:49 +05:30

73 lines
1.4 KiB
YAML

apiVersion: litmuschaos.io/v1alpha1
description:
message: |
Deletes a pod belonging to a deployment/statefulset/daemonset
kind: ChaosExperiment
metadata:
name: k8-pod-delete
version: 0.0.3
spec:
definition:
scope: Namespaced
permissions:
- apiGroups:
- ""
- "apps"
- "batch"
- "litmuschaos.io"
resources:
- "deployments"
- "jobs"
- "pods"
- "configmaps"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
verbs:
- "create"
- "list"
- "get"
- "patch"
- "update"
- "delete"
- apiGroups:
- ""
resources:
- "nodes"
verbs :
- "get"
- "list"
image: "litmuschaos/chaostoolkit:latest"
args:
- -c
- python /app/chaos/chaostest/kubernetes/k8_wrapper.py; exit 0
command:
- /bin/bash
env:
- name: CHAOSTOOLKIT_IN_POD
value: 'true'
- name: FILE
value: 'pod-app-kill-count.json'
- name: NAME_SPACE
value: ''
- name: LABEL_NAME
value: ''
- name: APP_ENDPOINT
value: ''
- name: PERCENTAGE
value: '50'
- name: REPORT
value: 'true'
- name: REPORT_ENDPOINT
value: 'none'
labels:
name: k8-pod-delete