928: version upgraded for chaos-charts
This commit is contained in:
@@ -3,7 +3,7 @@ kind: ChartServiceVersion
|
|||||||
metadata:
|
metadata:
|
||||||
createdAt: 2020-04-14T10:28:08Z
|
createdAt: 2020-04-14T10:28:08Z
|
||||||
name: cassandra-pod-delete
|
name: cassandra-pod-delete
|
||||||
version: 0.1.0
|
version: 0.1.1
|
||||||
annotations:
|
annotations:
|
||||||
categories: Cassandra
|
categories: Cassandra
|
||||||
vendor: CNCF
|
vendor: CNCF
|
||||||
|
@@ -5,7 +5,7 @@ description:
|
|||||||
kind: ChaosExperiment
|
kind: ChaosExperiment
|
||||||
metadata:
|
metadata:
|
||||||
name: cassandra-pod-delete
|
name: cassandra-pod-delete
|
||||||
version: 0.1.0
|
version: 0.1.1
|
||||||
spec:
|
spec:
|
||||||
definition:
|
definition:
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
|
@@ -3,7 +3,7 @@ kind: ChartServiceVersion
|
|||||||
metadata:
|
metadata:
|
||||||
createdAt: 2020-04-14T10:28:08Z
|
createdAt: 2020-04-14T10:28:08Z
|
||||||
name: cassandra
|
name: cassandra
|
||||||
version: 0.1.0
|
version: 0.1.1
|
||||||
annotations:
|
annotations:
|
||||||
categories: Kubernetes
|
categories: Kubernetes
|
||||||
chartDescription: Injects cassandra kubernetes chaos
|
chartDescription: Injects cassandra kubernetes chaos
|
||||||
|
108
charts/cassandra/experiments.yaml
Normal file
108
charts/cassandra/experiments.yaml
Normal file
@@ -0,0 +1,108 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: litmuschaos.io/v1alpha1
|
||||||
|
description:
|
||||||
|
message: |
|
||||||
|
Deletes a pod belonging to a casandra statefulset
|
||||||
|
kind: ChaosExperiment
|
||||||
|
metadata:
|
||||||
|
name: cassandra-pod-delete
|
||||||
|
version: 0.1.1
|
||||||
|
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"
|
||||||
|
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 injection of chaos
|
||||||
|
- name: RAMP_TIME
|
||||||
|
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
|
||||||
|
|
||||||
|
---
|
||||||
|
|
Reference in New Issue
Block a user