66 lines
1.2 KiB
YAML
66 lines
1.2 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"
|
|
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
|