109 lines
2.4 KiB
YAML
109 lines
2.4 KiB
YAML
apiVersion: litmuschaos.io/v1alpha1
|
|
description:
|
|
message: |
|
|
Deletes a pod belonging to a casandra statefulset
|
|
kind: ChaosExperiment
|
|
metadata:
|
|
name: cassandra-pod-delete
|
|
version: 0.1.4
|
|
spec:
|
|
definition:
|
|
scope: Namespaced
|
|
permissions:
|
|
- apiGroups:
|
|
- ""
|
|
- "apps"
|
|
- "batch"
|
|
- "litmuschaos.io"
|
|
resources:
|
|
- "deployments"
|
|
- "statefulsets"
|
|
- "jobs"
|
|
- "pods"
|
|
- "pods/log"
|
|
- "pods/exec"
|
|
- "services"
|
|
- "events"
|
|
- "configmaps"
|
|
- "chaosengines"
|
|
- "chaosexperiments"
|
|
- "chaosresults"
|
|
verbs:
|
|
- "create"
|
|
- "list"
|
|
- "get"
|
|
- "patch"
|
|
- "update"
|
|
- "delete"
|
|
- apiGroups:
|
|
- ""
|
|
resources:
|
|
- "nodes"
|
|
verbs:
|
|
- "get"
|
|
- "list"
|
|
image: "litmuschaos/ansible-runner:latest"
|
|
imagePullPolicy: Always
|
|
args:
|
|
- -c
|
|
- ansible-playbook ./experiments/cassandra/pod-delete/pod_delete_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0
|
|
command:
|
|
- /bin/bash
|
|
env:
|
|
|
|
- name: ANSIBLE_STDOUT_CALLBACK
|
|
value: 'default'
|
|
|
|
# provide cassandra service name
|
|
# default service: cassandra
|
|
- name: CASSANDRA_SVC_NAME
|
|
value: ''
|
|
|
|
# provide the keyspace replication factor
|
|
- name: KEYSPACE_REPLICATION_FACTOR
|
|
value: ''
|
|
|
|
# provide cassandra port
|
|
# default port: 9042
|
|
- name: CASSANDRA_PORT
|
|
value: ''
|
|
|
|
# provide liveness deployement port
|
|
# default port: 8088, It only supports 8088 port
|
|
- name: LIVENESS_SVC_PORT
|
|
value: '8088'
|
|
|
|
# provide cassandra liveness image
|
|
- name: CASSANDRA_LIVENESS_IMAGE
|
|
value: 'litmuschaos/cassandra-client:latest'
|
|
|
|
- name: TOTAL_CHAOS_DURATION
|
|
value: '15'
|
|
|
|
- name: CHAOS_INTERVAL
|
|
value: '15'
|
|
|
|
# SET THE CASSANDRA_LIVENESS_CHECK
|
|
# IT CAN BE `enabled` OR `disabled`
|
|
- name: CASSANDRA_LIVENESS_CHECK
|
|
value: ''
|
|
|
|
## Period to wait before and after injection of chaos
|
|
- name: RAMP_TIME
|
|
value: ''
|
|
|
|
# provide the kill count
|
|
- name: KILL_COUNT
|
|
value: ''
|
|
|
|
- name: FORCE
|
|
value: ''
|
|
|
|
## env var that describes the library used to execute the chaos
|
|
## default: litmus. Supported values: litmus, powerfulseal
|
|
- name: LIB
|
|
value: ''
|
|
|
|
labels:
|
|
name: cassandra-pod-delete
|