* 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>
37 lines
953 B
YAML
37 lines
953 B
YAML
# chaosengine.yaml
|
|
apiVersion: litmuschaos.io/v1alpha1
|
|
kind: ChaosEngine
|
|
metadata:
|
|
name: k8-kiam-count
|
|
namespace: default
|
|
spec:
|
|
#ex. values: ns1:name=percona,ns2:run=nginx
|
|
appinfo:
|
|
appns: kube-system
|
|
# FYI, To see app label, apply kubectl get pods --show-labels
|
|
#applabel: "app=nginx"
|
|
applabel: "app=kiam"
|
|
appkind: deployment
|
|
jobCleanUpPolicy: retain
|
|
monitoring: false
|
|
annotationCheck: 'false'
|
|
engineState: 'active'
|
|
chaosServiceAccount: chaos-admin
|
|
experiments:
|
|
- name: k8-pod-delete
|
|
spec:
|
|
components:
|
|
env:
|
|
- name: NAME_SPACE
|
|
value: kube-system
|
|
- name: LABEL_NAME
|
|
value: kiam
|
|
- name: APP_ENDPOINT
|
|
value: 'localhost'
|
|
- name: FILE
|
|
value: 'pod-app-kill-count.json'
|
|
- name: REPORT
|
|
value: 'true'
|
|
- name: REPORT_ENDPOINT
|
|
value: 'none'
|