3704268152: version upgraded for chaos-charts
This commit is contained in:
@@ -117,12 +117,7 @@ spec:
|
||||
# 0 will consume all the available cpu cores
|
||||
- name: CPU_CORE
|
||||
value: '0'
|
||||
|
||||
# provide the LIB
|
||||
# only litmus supported
|
||||
- name: LIB
|
||||
value: 'litmus'
|
||||
|
||||
|
||||
labels:
|
||||
name: aws-ssm-chaos-by-tag
|
||||
app.kubernetes.io/part-of: litmus
|
||||
@@ -249,11 +244,6 @@ spec:
|
||||
- name: CPU_CORE
|
||||
value: '0'
|
||||
|
||||
# provide the LIB
|
||||
# only litmus supported
|
||||
- name: LIB
|
||||
value: 'litmus'
|
||||
|
||||
labels:
|
||||
name: aws-ssm-chaos-by-id
|
||||
app.kubernetes.io/part-of: litmus
|
||||
|
@@ -1,101 +1,4 @@
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Detaches disk from the VM and then re-attaches disk to the VM
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
name: azure-disk-loss
|
||||
labels:
|
||||
name: azure-disk-loss
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: chaosexperiment
|
||||
app.kubernetes.io/version: latest
|
||||
spec:
|
||||
definition:
|
||||
scope: Cluster
|
||||
permissions:
|
||||
# Create and monitor the experiment & helper pods
|
||||
- apiGroups: [""]
|
||||
resources: ["pods"]
|
||||
verbs: ["create","delete","get","list","patch","update", "deletecollection"]
|
||||
# Performs CRUD operations on the events inside chaosengine and chaosresult
|
||||
- apiGroups: [""]
|
||||
resources: ["events"]
|
||||
verbs: ["create","get","list","patch","update"]
|
||||
# Fetch configmaps & secrets details and mount it to the experiment pod (if specified)
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets","configmaps"]
|
||||
verbs: ["get","list",]
|
||||
# Track and get the runner, experiment, and helper pods log
|
||||
- apiGroups: [""]
|
||||
resources: ["pods/log"]
|
||||
verbs: ["get","list","watch"]
|
||||
# for creating and managing to execute comands inside target container
|
||||
- apiGroups: [""]
|
||||
resources: ["pods/exec"]
|
||||
verbs: ["get","list","create"]
|
||||
# for configuring and monitor the experiment job by the chaos-runner pod
|
||||
- apiGroups: ["batch"]
|
||||
resources: ["jobs"]
|
||||
verbs: ["create","list","get","delete","deletecollection"]
|
||||
# for creation, status polling and deletion of litmus chaos resources used within a chaos workflow
|
||||
- apiGroups: ["litmuschaos.io"]
|
||||
resources: ["chaosengines","chaosexperiments","chaosresults"]
|
||||
verbs: ["create","list","get","patch","update","delete"]
|
||||
image: "litmuschaos/go-runner:latest"
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- -c
|
||||
- ./experiments -name azure-disk-loss
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: '30'
|
||||
|
||||
- name: CHAOS_INTERVAL
|
||||
value: '30'
|
||||
|
||||
- name: LIB
|
||||
value: 'litmus'
|
||||
|
||||
# Period to wait before and after injection of chaos in sec
|
||||
- name: RAMP_TIME
|
||||
value: ''
|
||||
|
||||
# provide the resource group of the instance
|
||||
- name: RESOURCE_GROUP
|
||||
value: ''
|
||||
|
||||
# accepts enable/disable, default is disable
|
||||
- name: SCALE_SET
|
||||
value: ''
|
||||
|
||||
# provide the virtual disk names (comma separated if multiple)
|
||||
- name: VIRTUAL_DISK_NAMES
|
||||
value: ''
|
||||
|
||||
# provide the sequence type for the run. Options: serial/parallel
|
||||
- name: SEQUENCE
|
||||
value: 'parallel'
|
||||
|
||||
# provide the path to aks credentials mounted from secret
|
||||
- name: AZURE_AUTH_LOCATION
|
||||
value: '/tmp/azure.auth'
|
||||
|
||||
labels:
|
||||
name: azure-disk-loss
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: experiment-job
|
||||
app.kubernetes.io/version: latest
|
||||
|
||||
secrets:
|
||||
- name: cloud-secret
|
||||
mountPath: /tmp/
|
||||
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Terminating azure VM instance
|
||||
@@ -175,12 +78,7 @@ spec:
|
||||
value: '/tmp/azure.auth'
|
||||
|
||||
- name: SEQUENCE
|
||||
value: 'parallel'
|
||||
|
||||
# provide the LIB
|
||||
# only litmus supported
|
||||
- name: LIB
|
||||
value: 'litmus'
|
||||
value: 'parallel'
|
||||
|
||||
labels:
|
||||
name: azure-instance-stop
|
||||
@@ -193,3 +91,97 @@ spec:
|
||||
|
||||
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Detaches disk from the VM and then re-attaches disk to the VM
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
name: azure-disk-loss
|
||||
labels:
|
||||
name: azure-disk-loss
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: chaosexperiment
|
||||
app.kubernetes.io/version: latest
|
||||
spec:
|
||||
definition:
|
||||
scope: Cluster
|
||||
permissions:
|
||||
# Create and monitor the experiment & helper pods
|
||||
- apiGroups: [""]
|
||||
resources: ["pods"]
|
||||
verbs: ["create","delete","get","list","patch","update", "deletecollection"]
|
||||
# Performs CRUD operations on the events inside chaosengine and chaosresult
|
||||
- apiGroups: [""]
|
||||
resources: ["events"]
|
||||
verbs: ["create","get","list","patch","update"]
|
||||
# Fetch configmaps & secrets details and mount it to the experiment pod (if specified)
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets","configmaps"]
|
||||
verbs: ["get","list",]
|
||||
# Track and get the runner, experiment, and helper pods log
|
||||
- apiGroups: [""]
|
||||
resources: ["pods/log"]
|
||||
verbs: ["get","list","watch"]
|
||||
# for creating and managing to execute comands inside target container
|
||||
- apiGroups: [""]
|
||||
resources: ["pods/exec"]
|
||||
verbs: ["get","list","create"]
|
||||
# for configuring and monitor the experiment job by the chaos-runner pod
|
||||
- apiGroups: ["batch"]
|
||||
resources: ["jobs"]
|
||||
verbs: ["create","list","get","delete","deletecollection"]
|
||||
# for creation, status polling and deletion of litmus chaos resources used within a chaos workflow
|
||||
- apiGroups: ["litmuschaos.io"]
|
||||
resources: ["chaosengines","chaosexperiments","chaosresults"]
|
||||
verbs: ["create","list","get","patch","update","delete"]
|
||||
image: "litmuschaos/go-runner:latest"
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- -c
|
||||
- ./experiments -name azure-disk-loss
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: '30'
|
||||
|
||||
- name: CHAOS_INTERVAL
|
||||
value: '30'
|
||||
|
||||
# Period to wait before and after injection of chaos in sec
|
||||
- name: RAMP_TIME
|
||||
value: ''
|
||||
|
||||
# provide the resource group of the instance
|
||||
- name: RESOURCE_GROUP
|
||||
value: ''
|
||||
|
||||
# accepts enable/disable, default is disable
|
||||
- name: SCALE_SET
|
||||
value: ''
|
||||
|
||||
# provide the virtual disk names (comma separated if multiple)
|
||||
- name: VIRTUAL_DISK_NAMES
|
||||
value: ''
|
||||
|
||||
# provide the sequence type for the run. Options: serial/parallel
|
||||
- name: SEQUENCE
|
||||
value: 'parallel'
|
||||
|
||||
# provide the path to aks credentials mounted from secret
|
||||
- name: AZURE_AUTH_LOCATION
|
||||
value: '/tmp/azure.auth'
|
||||
|
||||
labels:
|
||||
name: azure-disk-loss
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: experiment-job
|
||||
app.kubernetes.io/version: latest
|
||||
|
||||
secrets:
|
||||
- name: cloud-secret
|
||||
mountPath: /tmp/
|
||||
|
||||
---
|
||||
|
@@ -109,11 +109,6 @@ spec:
|
||||
- name: SEQUENCE
|
||||
value: 'parallel'
|
||||
|
||||
## env var that describes the library used to execute the chaos
|
||||
## default: litmus. Supported values: litmus
|
||||
- name: LIB
|
||||
value: 'litmus'
|
||||
|
||||
labels:
|
||||
name: cassandra-pod-delete
|
||||
app.kubernetes.io/part-of: litmus
|
||||
|
@@ -1,4 +1,185 @@
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Causes loss of a non-boot storage persistent disk from a GCP VM instance filtered by a label for a specified duration before attaching them back
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
name: gcp-vm-disk-loss-by-label
|
||||
labels:
|
||||
name: gcp-vm-disk-loss-by-label
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: chaosexperiment
|
||||
app.kubernetes.io/version: latest
|
||||
spec:
|
||||
definition:
|
||||
scope: Cluster
|
||||
permissions:
|
||||
# Create and monitor the experiment & helper pods
|
||||
- apiGroups: [""]
|
||||
resources: ["pods"]
|
||||
verbs: ["create","delete","get","list","patch","update", "deletecollection"]
|
||||
# Performs CRUD operations on the events inside chaosengine and chaosresult
|
||||
- apiGroups: [""]
|
||||
resources: ["events"]
|
||||
verbs: ["create","get","list","patch","update"]
|
||||
# Fetch configmaps & secrets details and mount it to the experiment pod (if specified)
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets","configmaps"]
|
||||
verbs: ["get","list",]
|
||||
# Track and get the runner, experiment, and helper pods log
|
||||
- apiGroups: [""]
|
||||
resources: ["pods/log"]
|
||||
verbs: ["get","list","watch"]
|
||||
# for configuring and monitor the experiment job by the chaos-runner pod
|
||||
- apiGroups: ["batch"]
|
||||
resources: ["jobs"]
|
||||
verbs: ["create","list","get","delete","deletecollection"]
|
||||
# for creation, status polling and deletion of litmus chaos resources used within a chaos workflow
|
||||
- apiGroups: ["litmuschaos.io"]
|
||||
resources: ["chaosengines","chaosexperiments","chaosresults"]
|
||||
verbs: ["create","list","get","patch","update","delete"]
|
||||
image: "litmuschaos/go-runner:latest"
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- -c
|
||||
- ./experiments -name gcp-vm-disk-loss-by-label
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
|
||||
# set chaos duration (in sec) as desired
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: '30'
|
||||
|
||||
# set chaos interval (in sec) as desired
|
||||
- name: CHAOS_INTERVAL
|
||||
value: '30'
|
||||
|
||||
# set the GCP project id
|
||||
- name: GCP_PROJECT_ID
|
||||
value: ''
|
||||
|
||||
# set the zone in which all the disks are created
|
||||
# all the disks must exist in the same zone
|
||||
- name: ZONES
|
||||
value: ''
|
||||
|
||||
# set the label of the target disk volumes
|
||||
- name: DISK_VOLUME_LABEL
|
||||
value: ''
|
||||
|
||||
# set the percentage value of the disks with the given label
|
||||
# which should be targeted as part of the chaos injection
|
||||
- name: DISK_AFFECTED_PERC
|
||||
value: ''
|
||||
|
||||
labels:
|
||||
name: gcp-vm-disk-loss-by-label
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: experiment-job
|
||||
app.kubernetes.io/version: latest
|
||||
secrets:
|
||||
- name: cloud-secret
|
||||
mountPath: /tmp/
|
||||
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Stops GCP VM instances and GKE nodes for a specified duration and later restarts them
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
name: gcp-vm-instance-stop
|
||||
labels:
|
||||
name: gcp-vm-instance-stop
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: chaosexperiment
|
||||
app.kubernetes.io/version: latest
|
||||
spec:
|
||||
definition:
|
||||
scope: Cluster
|
||||
permissions:
|
||||
# Create and monitor the experiment & helper pods
|
||||
- apiGroups: [""]
|
||||
resources: ["pods"]
|
||||
verbs: ["create","delete","get","list","patch","update", "deletecollection"]
|
||||
# Performs CRUD operations on the events inside chaosengine and chaosresult
|
||||
- apiGroups: [""]
|
||||
resources: ["events"]
|
||||
verbs: ["create","get","list","patch","update"]
|
||||
# Fetch configmaps & secrets details and mount it to the experiment pod (if specified)
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets","configmaps"]
|
||||
verbs: ["get","list",]
|
||||
# Track and get the runner, experiment, and helper pods log
|
||||
- apiGroups: [""]
|
||||
resources: ["pods/log"]
|
||||
verbs: ["get","list","watch"]
|
||||
# for configuring and monitor the experiment job by the chaos-runner pod
|
||||
- apiGroups: ["batch"]
|
||||
resources: ["jobs"]
|
||||
verbs: ["create","list","get","delete","deletecollection"]
|
||||
# for creation, status polling and deletion of litmus chaos resources used within a chaos workflow
|
||||
- apiGroups: ["litmuschaos.io"]
|
||||
resources: ["chaosengines","chaosexperiments","chaosresults"]
|
||||
verbs: ["create","list","get","patch","update","delete"]
|
||||
# for experiment to perform node status checks
|
||||
- apiGroups: [""]
|
||||
resources: ["nodes"]
|
||||
verbs: ["get","list"]
|
||||
image: "litmuschaos/go-runner:latest"
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- -c
|
||||
- ./experiments -name gcp-vm-instance-stop
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: '30'
|
||||
|
||||
- name: CHAOS_INTERVAL
|
||||
value: '30'
|
||||
|
||||
# parallel or serial; determines how the VM instances are terminated, all at once or one at a time
|
||||
- name: SEQUENCE
|
||||
value: 'parallel'
|
||||
|
||||
# period to wait before and after injection of chaos in sec
|
||||
- name: RAMP_TIME
|
||||
value: ''
|
||||
|
||||
# enable or disable; shall be set to enable if the target instances are a part of a managed instance group
|
||||
- name: MANAGED_INSTANCE_GROUP
|
||||
value: 'disable'
|
||||
|
||||
# Instance name of the target vm instance(s)
|
||||
# Multiple instance names can be provided as comma separated values ex: instance1,instance2
|
||||
- name: VM_INSTANCE_NAMES
|
||||
value: ''
|
||||
|
||||
# GCP project ID to which the vm instances belong
|
||||
- name: GCP_PROJECT_ID
|
||||
value: ''
|
||||
|
||||
# Instance zone(s) of the target vm instance(s)
|
||||
# If more than one instance is targetted, provide zone for each in the order of their
|
||||
# respective instance name in VM_INSTANCE_NAME as comma separated values ex: zone1,zone2
|
||||
- name: ZONES
|
||||
value: ''
|
||||
|
||||
labels:
|
||||
name: gcp-vm-instance-stop
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: experiment-job
|
||||
app.kubernetes.io/version: latest
|
||||
secrets:
|
||||
- name: cloud-secret
|
||||
mountPath: /tmp/
|
||||
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Stops GCP VM instances and GKE nodes filtered by a label for a specified duration and later restarts them
|
||||
@@ -149,9 +330,6 @@ spec:
|
||||
|
||||
- name: CHAOS_INTERVAL
|
||||
value: '30'
|
||||
|
||||
- name: LIB
|
||||
value: 'litmus'
|
||||
|
||||
# Period to wait before and after injection of chaos in sec
|
||||
- name: RAMP_TIME
|
||||
@@ -186,189 +364,3 @@ spec:
|
||||
mountPath: /tmp/
|
||||
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Causes loss of a non-boot storage persistent disk from a GCP VM instance filtered by a label for a specified duration before attaching them back
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
name: gcp-vm-disk-loss-by-label
|
||||
labels:
|
||||
name: gcp-vm-disk-loss-by-label
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: chaosexperiment
|
||||
app.kubernetes.io/version: latest
|
||||
spec:
|
||||
definition:
|
||||
scope: Cluster
|
||||
permissions:
|
||||
# Create and monitor the experiment & helper pods
|
||||
- apiGroups: [""]
|
||||
resources: ["pods"]
|
||||
verbs: ["create","delete","get","list","patch","update", "deletecollection"]
|
||||
# Performs CRUD operations on the events inside chaosengine and chaosresult
|
||||
- apiGroups: [""]
|
||||
resources: ["events"]
|
||||
verbs: ["create","get","list","patch","update"]
|
||||
# Fetch configmaps & secrets details and mount it to the experiment pod (if specified)
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets","configmaps"]
|
||||
verbs: ["get","list",]
|
||||
# Track and get the runner, experiment, and helper pods log
|
||||
- apiGroups: [""]
|
||||
resources: ["pods/log"]
|
||||
verbs: ["get","list","watch"]
|
||||
# for configuring and monitor the experiment job by the chaos-runner pod
|
||||
- apiGroups: ["batch"]
|
||||
resources: ["jobs"]
|
||||
verbs: ["create","list","get","delete","deletecollection"]
|
||||
# for creation, status polling and deletion of litmus chaos resources used within a chaos workflow
|
||||
- apiGroups: ["litmuschaos.io"]
|
||||
resources: ["chaosengines","chaosexperiments","chaosresults"]
|
||||
verbs: ["create","list","get","patch","update","delete"]
|
||||
image: "litmuschaos/go-runner:latest"
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- -c
|
||||
- ./experiments -name gcp-vm-disk-loss-by-label
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
|
||||
# set chaos duration (in sec) as desired
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: '30'
|
||||
|
||||
# set chaos interval (in sec) as desired
|
||||
- name: CHAOS_INTERVAL
|
||||
value: '30'
|
||||
|
||||
# set the GCP project id
|
||||
- name: GCP_PROJECT_ID
|
||||
value: ''
|
||||
|
||||
# set the zone in which all the disks are created
|
||||
# all the disks must exist in the same zone
|
||||
- name: ZONES
|
||||
value: ''
|
||||
|
||||
# set the label of the target disk volumes
|
||||
- name: DISK_VOLUME_LABEL
|
||||
value: ''
|
||||
|
||||
# set the percentage value of the disks with the given label
|
||||
# which should be targeted as part of the chaos injection
|
||||
- name: DISK_AFFECTED_PERC
|
||||
value: ''
|
||||
|
||||
labels:
|
||||
name: gcp-vm-disk-loss-by-label
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: experiment-job
|
||||
app.kubernetes.io/version: latest
|
||||
secrets:
|
||||
- name: cloud-secret
|
||||
mountPath: /tmp/
|
||||
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Stops GCP VM instances and GKE nodes for a specified duration and later restarts them
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
name: gcp-vm-instance-stop
|
||||
labels:
|
||||
name: gcp-vm-instance-stop
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: chaosexperiment
|
||||
app.kubernetes.io/version: latest
|
||||
spec:
|
||||
definition:
|
||||
scope: Cluster
|
||||
permissions:
|
||||
# Create and monitor the experiment & helper pods
|
||||
- apiGroups: [""]
|
||||
resources: ["pods"]
|
||||
verbs: ["create","delete","get","list","patch","update", "deletecollection"]
|
||||
# Performs CRUD operations on the events inside chaosengine and chaosresult
|
||||
- apiGroups: [""]
|
||||
resources: ["events"]
|
||||
verbs: ["create","get","list","patch","update"]
|
||||
# Fetch configmaps & secrets details and mount it to the experiment pod (if specified)
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets","configmaps"]
|
||||
verbs: ["get","list",]
|
||||
# Track and get the runner, experiment, and helper pods log
|
||||
- apiGroups: [""]
|
||||
resources: ["pods/log"]
|
||||
verbs: ["get","list","watch"]
|
||||
# for configuring and monitor the experiment job by the chaos-runner pod
|
||||
- apiGroups: ["batch"]
|
||||
resources: ["jobs"]
|
||||
verbs: ["create","list","get","delete","deletecollection"]
|
||||
# for creation, status polling and deletion of litmus chaos resources used within a chaos workflow
|
||||
- apiGroups: ["litmuschaos.io"]
|
||||
resources: ["chaosengines","chaosexperiments","chaosresults"]
|
||||
verbs: ["create","list","get","patch","update","delete"]
|
||||
# for experiment to perform node status checks
|
||||
- apiGroups: [""]
|
||||
resources: ["nodes"]
|
||||
verbs: ["get","list"]
|
||||
image: "litmuschaos/go-runner:latest"
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- -c
|
||||
- ./experiments -name gcp-vm-instance-stop
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: '30'
|
||||
|
||||
- name: CHAOS_INTERVAL
|
||||
value: '30'
|
||||
|
||||
# parallel or serial; determines how the VM instances are terminated, all at once or one at a time
|
||||
- name: SEQUENCE
|
||||
value: 'parallel'
|
||||
|
||||
# provide the LIB
|
||||
# only litmus supported
|
||||
- name: LIB
|
||||
value: 'litmus'
|
||||
|
||||
# period to wait before and after injection of chaos in sec
|
||||
- name: RAMP_TIME
|
||||
value: ''
|
||||
|
||||
# enable or disable; shall be set to enable if the target instances are a part of a managed instance group
|
||||
- name: MANAGED_INSTANCE_GROUP
|
||||
value: 'disable'
|
||||
|
||||
# Instance name of the target vm instance(s)
|
||||
# Multiple instance names can be provided as comma separated values ex: instance1,instance2
|
||||
- name: VM_INSTANCE_NAMES
|
||||
value: ''
|
||||
|
||||
# GCP project ID to which the vm instances belong
|
||||
- name: GCP_PROJECT_ID
|
||||
value: ''
|
||||
|
||||
# Instance zone(s) of the target vm instance(s)
|
||||
# If more than one instance is targetted, provide zone for each in the order of their
|
||||
# respective instance name in VM_INSTANCE_NAME as comma separated values ex: zone1,zone2
|
||||
- name: ZONES
|
||||
value: ''
|
||||
|
||||
labels:
|
||||
name: gcp-vm-instance-stop
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: experiment-job
|
||||
app.kubernetes.io/version: latest
|
||||
secrets:
|
||||
- name: cloud-secret
|
||||
mountPath: /tmp/
|
||||
|
||||
---
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,128 @@
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Deleting a kafka broker pod
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
name: kafka-broker-pod-failure
|
||||
labels:
|
||||
name: kafka-broker-pod-failure
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: chaosexperiment
|
||||
app.kubernetes.io/version: latest
|
||||
spec:
|
||||
definition:
|
||||
scope: Cluster
|
||||
permissions:
|
||||
# Create and monitor the experiment & helper pods
|
||||
- apiGroups: [""]
|
||||
resources: ["pods"]
|
||||
verbs: ["create","delete","get","list","patch","update", "deletecollection"]
|
||||
# Performs CRUD operations on the events inside chaosengine and chaosresult
|
||||
- apiGroups: [""]
|
||||
resources: ["events"]
|
||||
verbs: ["create","get","list","patch","update"]
|
||||
# Fetch configmaps & secrets details and mount it to the experiment pod (if specified)
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets","configmaps"]
|
||||
verbs: ["get","list",]
|
||||
# Track and get the runner, experiment, and helper pods log
|
||||
- apiGroups: [""]
|
||||
resources: ["pods/log"]
|
||||
verbs: ["get","list","watch"]
|
||||
# for creating and managing to execute comands inside target container
|
||||
- apiGroups: [""]
|
||||
resources: ["pods/exec"]
|
||||
verbs: ["get","list","create"]
|
||||
# for deriving the parent/owner details of the pod
|
||||
- apiGroups: ["apps"]
|
||||
resources: ["deployments","statefulsets"]
|
||||
verbs: ["list","get"]
|
||||
# for configuring and monitor the experiment job by the chaos-runner pod
|
||||
- apiGroups: ["batch"]
|
||||
resources: ["jobs"]
|
||||
verbs: ["create","list","get","delete","deletecollection"]
|
||||
# for creation, status polling and deletion of litmus chaos resources used within a chaos workflow
|
||||
- apiGroups: ["litmuschaos.io"]
|
||||
resources: ["chaosengines","chaosexperiments","chaosresults"]
|
||||
verbs: ["create","list","get","patch","update","delete"]
|
||||
image: "litmuschaos/go-runner:latest"
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- -c
|
||||
- ./experiments -name kafka-broker-pod-failure
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
|
||||
- name: KAFKA_KIND
|
||||
value: 'statefulset'
|
||||
|
||||
- name: KAFKA_LIVENESS_STREAM
|
||||
value: 'enable'
|
||||
|
||||
- name: KAFKA_LIVENESS_IMAGE
|
||||
value: 'litmuschaos/kafka-client:latest'
|
||||
|
||||
# Recommended timeout for EKS platform: 60000 ms
|
||||
- name: KAFKA_CONSUMER_TIMEOUT
|
||||
value: '30000' #in ms
|
||||
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: '15'
|
||||
|
||||
- name: CHAOS_INTERVAL
|
||||
value: '5'
|
||||
|
||||
## it defines the sequence of chaos execution for multiple target pods
|
||||
## supported values: serial, parallel
|
||||
- name: SEQUENCE
|
||||
value: 'parallel'
|
||||
|
||||
- name: FORCE
|
||||
value: 'true'
|
||||
|
||||
- name: KAFKA_INSTANCE_NAME
|
||||
value: ''
|
||||
|
||||
- name: KAFKA_NAMESPACE
|
||||
value: ''
|
||||
|
||||
- name: KAFKA_LABEL
|
||||
value: ''
|
||||
|
||||
- name: KAFKA_BROKER
|
||||
value: ''
|
||||
|
||||
- name: KAFKA_REPLICATION_FACTOR
|
||||
value: ''
|
||||
|
||||
- name: KAFKA_SERVICE
|
||||
value: ''
|
||||
|
||||
- name: KAFKA_PORT
|
||||
value: ''
|
||||
|
||||
- name: ZOOKEEPER_NAMESPACE
|
||||
value: ''
|
||||
|
||||
- name: ZOOKEEPER_LABEL
|
||||
value: ''
|
||||
|
||||
- name: ZOOKEEPER_SERVICE
|
||||
value: ''
|
||||
|
||||
- name: ZOOKEEPER_PORT
|
||||
value: ''
|
||||
|
||||
labels:
|
||||
name: kafka-broker-pod-failure
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: experiment-job
|
||||
app.kubernetes.io/version: latest
|
||||
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Detaching a persistent disk from a node/instance for kafka.
|
||||
@@ -118,132 +242,3 @@ spec:
|
||||
|
||||
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Deleting a kafka broker pod
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
name: kafka-broker-pod-failure
|
||||
labels:
|
||||
name: kafka-broker-pod-failure
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: chaosexperiment
|
||||
app.kubernetes.io/version: latest
|
||||
spec:
|
||||
definition:
|
||||
scope: Cluster
|
||||
permissions:
|
||||
# Create and monitor the experiment & helper pods
|
||||
- apiGroups: [""]
|
||||
resources: ["pods"]
|
||||
verbs: ["create","delete","get","list","patch","update", "deletecollection"]
|
||||
# Performs CRUD operations on the events inside chaosengine and chaosresult
|
||||
- apiGroups: [""]
|
||||
resources: ["events"]
|
||||
verbs: ["create","get","list","patch","update"]
|
||||
# Fetch configmaps & secrets details and mount it to the experiment pod (if specified)
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets","configmaps"]
|
||||
verbs: ["get","list",]
|
||||
# Track and get the runner, experiment, and helper pods log
|
||||
- apiGroups: [""]
|
||||
resources: ["pods/log"]
|
||||
verbs: ["get","list","watch"]
|
||||
# for creating and managing to execute comands inside target container
|
||||
- apiGroups: [""]
|
||||
resources: ["pods/exec"]
|
||||
verbs: ["get","list","create"]
|
||||
# for deriving the parent/owner details of the pod
|
||||
- apiGroups: ["apps"]
|
||||
resources: ["deployments","statefulsets"]
|
||||
verbs: ["list","get"]
|
||||
# for configuring and monitor the experiment job by the chaos-runner pod
|
||||
- apiGroups: ["batch"]
|
||||
resources: ["jobs"]
|
||||
verbs: ["create","list","get","delete","deletecollection"]
|
||||
# for creation, status polling and deletion of litmus chaos resources used within a chaos workflow
|
||||
- apiGroups: ["litmuschaos.io"]
|
||||
resources: ["chaosengines","chaosexperiments","chaosresults"]
|
||||
verbs: ["create","list","get","patch","update","delete"]
|
||||
image: "litmuschaos/go-runner:latest"
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- -c
|
||||
- ./experiments -name kafka-broker-pod-failure
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
|
||||
- name: KAFKA_KIND
|
||||
value: 'statefulset'
|
||||
|
||||
- name: KAFKA_LIVENESS_STREAM
|
||||
value: 'enable'
|
||||
|
||||
- name: KAFKA_LIVENESS_IMAGE
|
||||
value: 'litmuschaos/kafka-client:latest'
|
||||
|
||||
# Recommended timeout for EKS platform: 60000 ms
|
||||
- name: KAFKA_CONSUMER_TIMEOUT
|
||||
value: '30000' #in ms
|
||||
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: '15'
|
||||
|
||||
- name: CHAOS_INTERVAL
|
||||
value: '5'
|
||||
|
||||
## it defines the sequence of chaos execution for multiple target pods
|
||||
## supported values: serial, parallel
|
||||
- name: SEQUENCE
|
||||
value: 'parallel'
|
||||
|
||||
- name: FORCE
|
||||
value: 'true'
|
||||
|
||||
- name: KAFKA_INSTANCE_NAME
|
||||
value: ''
|
||||
|
||||
- name: KAFKA_NAMESPACE
|
||||
value: ''
|
||||
|
||||
- name: KAFKA_LABEL
|
||||
value: ''
|
||||
|
||||
- name: KAFKA_BROKER
|
||||
value: ''
|
||||
|
||||
- name: KAFKA_REPLICATION_FACTOR
|
||||
value: ''
|
||||
|
||||
- name: KAFKA_SERVICE
|
||||
value: ''
|
||||
|
||||
- name: KAFKA_PORT
|
||||
value: ''
|
||||
|
||||
- name: ZOOKEEPER_NAMESPACE
|
||||
value: ''
|
||||
|
||||
- name: ZOOKEEPER_LABEL
|
||||
value: ''
|
||||
|
||||
- name: ZOOKEEPER_SERVICE
|
||||
value: ''
|
||||
|
||||
- name: ZOOKEEPER_PORT
|
||||
value: ''
|
||||
|
||||
## env var that describes the library used to execute the chaos
|
||||
## default: litmus. Supported values: litmus
|
||||
- name: LIB
|
||||
value: 'litmus'
|
||||
|
||||
labels:
|
||||
name: kafka-broker-pod-failure
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: experiment-job
|
||||
app.kubernetes.io/version: latest
|
||||
|
||||
---
|
||||
|
@@ -3,6 +3,93 @@ description:
|
||||
message: |
|
||||
Detaching an ebs volume from ec2 instance.
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
name: ebs-loss-by-tag
|
||||
labels:
|
||||
name: ebs-loss-by-tag
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: chaosexperiment
|
||||
app.kubernetes.io/version: latest
|
||||
spec:
|
||||
definition:
|
||||
scope: Cluster
|
||||
permissions:
|
||||
# Create and monitor the experiment & helper pods
|
||||
- apiGroups: [""]
|
||||
resources: ["pods"]
|
||||
verbs: ["create","delete","get","list","patch","update", "deletecollection"]
|
||||
# Performs CRUD operations on the events inside chaosengine and chaosresult
|
||||
- apiGroups: [""]
|
||||
resources: ["events"]
|
||||
verbs: ["create","get","list","patch","update"]
|
||||
# Fetch configmaps & secrets details and mount it to the experiment pod (if specified)
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets","configmaps"]
|
||||
verbs: ["get","list",]
|
||||
# Track and get the runner, experiment, and helper pods log
|
||||
- apiGroups: [""]
|
||||
resources: ["pods/log"]
|
||||
verbs: ["get","list","watch"]
|
||||
# for creating and managing to execute comands inside target container
|
||||
- apiGroups: [""]
|
||||
resources: ["pods/exec"]
|
||||
verbs: ["get","list","create"]
|
||||
# for configuring and monitor the experiment job by the chaos-runner pod
|
||||
- apiGroups: ["batch"]
|
||||
resources: ["jobs"]
|
||||
verbs: ["create","list","get","delete","deletecollection"]
|
||||
# for creation, status polling and deletion of litmus chaos resources used within a chaos workflow
|
||||
- apiGroups: ["litmuschaos.io"]
|
||||
resources: ["chaosengines","chaosexperiments","chaosresults"]
|
||||
verbs: ["create","list","get","patch","update","delete"]
|
||||
image: "litmuschaos/go-runner:latest"
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- -c
|
||||
- ./experiments -name ebs-loss-by-tag
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: '30'
|
||||
|
||||
- name: CHAOS_INTERVAL
|
||||
value: '30'
|
||||
|
||||
- name: RAMP_TIME
|
||||
value: ''
|
||||
|
||||
- name: EBS_VOLUME_TAG
|
||||
value: ''
|
||||
|
||||
- name: REGION
|
||||
value: ''
|
||||
|
||||
- name: SEQUENCE
|
||||
value: 'parallel'
|
||||
|
||||
- name: VOLUME_AFFECTED_PERC
|
||||
value: ''
|
||||
|
||||
# Provide the path of aws credentials mounted from secret
|
||||
- name: AWS_SHARED_CREDENTIALS_FILE
|
||||
value: '/tmp/cloud_config.yml'
|
||||
|
||||
labels:
|
||||
name: ebs-loss-by-tag
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: experiment-job
|
||||
app.kubernetes.io/version: latest
|
||||
secrets:
|
||||
- name: cloud-secret
|
||||
mountPath: /tmp/
|
||||
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Detaching an ebs volume from ec2 instance.
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
name: ebs-loss-by-id
|
||||
labels:
|
||||
@@ -72,11 +159,6 @@ spec:
|
||||
# Provide the path of aws credentials mounted from secret
|
||||
- name: AWS_SHARED_CREDENTIALS_FILE
|
||||
value: '/tmp/cloud_config.yml'
|
||||
|
||||
# provide the LIB
|
||||
# only litmus supported
|
||||
- name: LIB
|
||||
value: 'litmus'
|
||||
|
||||
labels:
|
||||
name: ebs-loss-by-id
|
||||
@@ -87,6 +169,101 @@ spec:
|
||||
- name: cloud-secret
|
||||
mountPath: /tmp/
|
||||
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Stopping an EC2 instance identified by ID.
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
name: ec2-terminate-by-id
|
||||
labels:
|
||||
name: ec2-terminate-by-id
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: chaosexperiment
|
||||
app.kubernetes.io/version: latest
|
||||
spec:
|
||||
definition:
|
||||
scope: Cluster
|
||||
permissions:
|
||||
# Create and monitor the experiment & helper pods
|
||||
- apiGroups: [""]
|
||||
resources: ["pods"]
|
||||
verbs: ["create","delete","get","list","patch","update", "deletecollection"]
|
||||
# Performs CRUD operations on the events inside chaosengine and chaosresult
|
||||
- apiGroups: [""]
|
||||
resources: ["events"]
|
||||
verbs: ["create","get","list","patch","update"]
|
||||
# Fetch configmaps & secrets details and mount it to the experiment pod (if specified)
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets","configmaps"]
|
||||
verbs: ["get","list",]
|
||||
# Track and get the runner, experiment, and helper pods log
|
||||
- apiGroups: [""]
|
||||
resources: ["pods/log"]
|
||||
verbs: ["get","list","watch"]
|
||||
# for creating and managing to execute comands inside target container
|
||||
- apiGroups: [""]
|
||||
resources: ["pods/exec"]
|
||||
verbs: ["get","list","create"]
|
||||
# for configuring and monitor the experiment job by the chaos-runner pod
|
||||
- apiGroups: ["batch"]
|
||||
resources: ["jobs"]
|
||||
verbs: ["create","list","get","delete","deletecollection"]
|
||||
# for creation, status polling and deletion of litmus chaos resources used within a chaos workflow
|
||||
- apiGroups: ["litmuschaos.io"]
|
||||
resources: ["chaosengines","chaosexperiments","chaosresults"]
|
||||
verbs: ["create","list","get","patch","update","delete"]
|
||||
# for experiment to perform node status checks
|
||||
- apiGroups: [""]
|
||||
resources: ["nodes"]
|
||||
verbs: ["get","list"]
|
||||
image: "litmuschaos/go-runner:latest"
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- -c
|
||||
- ./experiments -name ec2-terminate-by-id
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: '30'
|
||||
|
||||
- name: CHAOS_INTERVAL
|
||||
value: '30'
|
||||
|
||||
# Period to wait before and after injection of chaos in sec
|
||||
- name: RAMP_TIME
|
||||
value: ''
|
||||
|
||||
# enable it if the target instance is a part of self-managed nodegroup.
|
||||
- name: MANAGED_NODEGROUP
|
||||
value: 'disable'
|
||||
|
||||
# Instance ID of the target ec2 instance
|
||||
# Multiple IDs can also be provided as comma separated values ex: id1,id2
|
||||
- name: EC2_INSTANCE_ID
|
||||
value: ''
|
||||
|
||||
- name: REGION
|
||||
value: ''
|
||||
|
||||
- name: SEQUENCE
|
||||
value: 'parallel'
|
||||
|
||||
# Provide the path of aws credentials mounted from secret
|
||||
- name: AWS_SHARED_CREDENTIALS_FILE
|
||||
value: '/tmp/cloud_config.yml'
|
||||
|
||||
labels:
|
||||
name: ec2-terminate-by-id
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: experiment-job
|
||||
app.kubernetes.io/version: latest
|
||||
secrets:
|
||||
- name: cloud-secret
|
||||
mountPath: /tmp/
|
||||
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
@@ -174,11 +351,6 @@ spec:
|
||||
# Provide the path of aws credentials mounted from secret
|
||||
- name: AWS_SHARED_CREDENTIALS_FILE
|
||||
value: '/tmp/cloud_config.yml'
|
||||
|
||||
# provide the LIB
|
||||
# only litmus supported
|
||||
- name: LIB
|
||||
value: 'litmus'
|
||||
|
||||
labels:
|
||||
name: ec2-terminate-by-tag
|
||||
@@ -268,195 +440,3 @@ spec:
|
||||
mountPath: /tmp/
|
||||
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Stopping an EC2 instance identified by ID.
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
name: ec2-terminate-by-id
|
||||
labels:
|
||||
name: ec2-terminate-by-id
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: chaosexperiment
|
||||
app.kubernetes.io/version: latest
|
||||
spec:
|
||||
definition:
|
||||
scope: Cluster
|
||||
permissions:
|
||||
# Create and monitor the experiment & helper pods
|
||||
- apiGroups: [""]
|
||||
resources: ["pods"]
|
||||
verbs: ["create","delete","get","list","patch","update", "deletecollection"]
|
||||
# Performs CRUD operations on the events inside chaosengine and chaosresult
|
||||
- apiGroups: [""]
|
||||
resources: ["events"]
|
||||
verbs: ["create","get","list","patch","update"]
|
||||
# Fetch configmaps & secrets details and mount it to the experiment pod (if specified)
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets","configmaps"]
|
||||
verbs: ["get","list",]
|
||||
# Track and get the runner, experiment, and helper pods log
|
||||
- apiGroups: [""]
|
||||
resources: ["pods/log"]
|
||||
verbs: ["get","list","watch"]
|
||||
# for creating and managing to execute comands inside target container
|
||||
- apiGroups: [""]
|
||||
resources: ["pods/exec"]
|
||||
verbs: ["get","list","create"]
|
||||
# for configuring and monitor the experiment job by the chaos-runner pod
|
||||
- apiGroups: ["batch"]
|
||||
resources: ["jobs"]
|
||||
verbs: ["create","list","get","delete","deletecollection"]
|
||||
# for creation, status polling and deletion of litmus chaos resources used within a chaos workflow
|
||||
- apiGroups: ["litmuschaos.io"]
|
||||
resources: ["chaosengines","chaosexperiments","chaosresults"]
|
||||
verbs: ["create","list","get","patch","update","delete"]
|
||||
# for experiment to perform node status checks
|
||||
- apiGroups: [""]
|
||||
resources: ["nodes"]
|
||||
verbs: ["get","list"]
|
||||
image: "litmuschaos/go-runner:latest"
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- -c
|
||||
- ./experiments -name ec2-terminate-by-id
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: '30'
|
||||
|
||||
- name: CHAOS_INTERVAL
|
||||
value: '30'
|
||||
|
||||
# Period to wait before and after injection of chaos in sec
|
||||
- name: RAMP_TIME
|
||||
value: ''
|
||||
|
||||
# enable it if the target instance is a part of self-managed nodegroup.
|
||||
- name: MANAGED_NODEGROUP
|
||||
value: 'disable'
|
||||
|
||||
# Instance ID of the target ec2 instance
|
||||
# Multiple IDs can also be provided as comma separated values ex: id1,id2
|
||||
- name: EC2_INSTANCE_ID
|
||||
value: ''
|
||||
|
||||
- name: REGION
|
||||
value: ''
|
||||
|
||||
- name: SEQUENCE
|
||||
value: 'parallel'
|
||||
|
||||
# Provide the path of aws credentials mounted from secret
|
||||
- name: AWS_SHARED_CREDENTIALS_FILE
|
||||
value: '/tmp/cloud_config.yml'
|
||||
|
||||
# provide the LIB
|
||||
# only litmus supported
|
||||
- name: LIB
|
||||
value: 'litmus'
|
||||
|
||||
labels:
|
||||
name: ec2-terminate-by-id
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: experiment-job
|
||||
app.kubernetes.io/version: latest
|
||||
secrets:
|
||||
- name: cloud-secret
|
||||
mountPath: /tmp/
|
||||
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Detaching an ebs volume from ec2 instance.
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
name: ebs-loss-by-tag
|
||||
labels:
|
||||
name: ebs-loss-by-tag
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: chaosexperiment
|
||||
app.kubernetes.io/version: latest
|
||||
spec:
|
||||
definition:
|
||||
scope: Cluster
|
||||
permissions:
|
||||
# Create and monitor the experiment & helper pods
|
||||
- apiGroups: [""]
|
||||
resources: ["pods"]
|
||||
verbs: ["create","delete","get","list","patch","update", "deletecollection"]
|
||||
# Performs CRUD operations on the events inside chaosengine and chaosresult
|
||||
- apiGroups: [""]
|
||||
resources: ["events"]
|
||||
verbs: ["create","get","list","patch","update"]
|
||||
# Fetch configmaps & secrets details and mount it to the experiment pod (if specified)
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets","configmaps"]
|
||||
verbs: ["get","list",]
|
||||
# Track and get the runner, experiment, and helper pods log
|
||||
- apiGroups: [""]
|
||||
resources: ["pods/log"]
|
||||
verbs: ["get","list","watch"]
|
||||
# for creating and managing to execute comands inside target container
|
||||
- apiGroups: [""]
|
||||
resources: ["pods/exec"]
|
||||
verbs: ["get","list","create"]
|
||||
# for configuring and monitor the experiment job by the chaos-runner pod
|
||||
- apiGroups: ["batch"]
|
||||
resources: ["jobs"]
|
||||
verbs: ["create","list","get","delete","deletecollection"]
|
||||
# for creation, status polling and deletion of litmus chaos resources used within a chaos workflow
|
||||
- apiGroups: ["litmuschaos.io"]
|
||||
resources: ["chaosengines","chaosexperiments","chaosresults"]
|
||||
verbs: ["create","list","get","patch","update","delete"]
|
||||
image: "litmuschaos/go-runner:latest"
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- -c
|
||||
- ./experiments -name ebs-loss-by-tag
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: '30'
|
||||
|
||||
- name: CHAOS_INTERVAL
|
||||
value: '30'
|
||||
|
||||
- name: RAMP_TIME
|
||||
value: ''
|
||||
|
||||
- name: EBS_VOLUME_TAG
|
||||
value: ''
|
||||
|
||||
- name: REGION
|
||||
value: ''
|
||||
|
||||
- name: SEQUENCE
|
||||
value: 'parallel'
|
||||
|
||||
- name: VOLUME_AFFECTED_PERC
|
||||
value: ''
|
||||
|
||||
# Provide the path of aws credentials mounted from secret
|
||||
- name: AWS_SHARED_CREDENTIALS_FILE
|
||||
value: '/tmp/cloud_config.yml'
|
||||
|
||||
# provide the LIB
|
||||
# only litmus supported
|
||||
- name: LIB
|
||||
value: 'litmus'
|
||||
|
||||
labels:
|
||||
name: ebs-loss-by-tag
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: experiment-job
|
||||
app.kubernetes.io/version: latest
|
||||
secrets:
|
||||
- name: cloud-secret
|
||||
mountPath: /tmp/
|
||||
|
||||
---
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,280 @@
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
It can target random pods with a Spring Boot application and allows configuring the assaults to inject memory-stress
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
name: spring-boot-memory-stress
|
||||
labels:
|
||||
name: spring-boot-memory-stress
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: chaosexperiment
|
||||
app.kubernetes.io/version: latest
|
||||
spec:
|
||||
definition:
|
||||
scope: Namespaced
|
||||
permissions:
|
||||
# Create and monitor the experiment & helper pods
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ "pods" ]
|
||||
verbs: [ "create","delete","get","list","patch","update", "deletecollection" ]
|
||||
# Performs CRUD operations on the events inside chaosengine and chaosresult
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ "events" ]
|
||||
verbs: [ "create","get","list","patch","update" ]
|
||||
# Track and get the runner, experiment, and helper pods log
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ "pods/log" ]
|
||||
verbs: [ "get","list","watch" ]
|
||||
# for creating and managing to execute commands inside target container
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ "pods/exec" ]
|
||||
verbs: [ "get","list","create" ]
|
||||
# for configuring and monitor the experiment job by the chaos-runner pod
|
||||
- apiGroups: [ "batch" ]
|
||||
resources: [ "jobs" ]
|
||||
verbs: [ "create","list","get","delete","deletecollection" ]
|
||||
# for creation, status polling and deletion of litmus chaos resources used within a chaos workflow
|
||||
- apiGroups: [ "litmuschaos.io" ]
|
||||
resources: [ "chaosengines","chaosexperiments","chaosresults" ]
|
||||
verbs: [ "create","list","get","patch","update","delete" ]
|
||||
image: "litmuschaos/go-runner:latest"
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- -c
|
||||
- ./experiments -name spring-boot-memory-stress
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
|
||||
# it contains fraction of memory to be stressed(0.70 equals 70%)
|
||||
# it supports value in range [0.01,0.95]
|
||||
- name: MEMORY_FILL_FRACTION
|
||||
value: '0.70'
|
||||
|
||||
# port of the spring boot application
|
||||
- name: CM_PORT
|
||||
value: ''
|
||||
|
||||
# it contains number of requests are to be attacked
|
||||
# n value means nth request will be affected
|
||||
- name: CM_LEVEL
|
||||
value: '1'
|
||||
|
||||
# it limits watched packages/classes/methods
|
||||
- name: CM_WATCHED_CUSTOM_SERVICES
|
||||
value: ''
|
||||
|
||||
# provide name of watcher
|
||||
# it supports controller, restController, service, repository, component, webClient
|
||||
- name: CM_WATCHERS
|
||||
value: 'restController'
|
||||
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: '30'
|
||||
|
||||
## percentage of total pods to target
|
||||
- name: PODS_AFFECTED_PERC
|
||||
value: ''
|
||||
|
||||
## Period to wait before and after injection of chaos
|
||||
- name: RAMP_TIME
|
||||
value: ''
|
||||
|
||||
## it defines the sequence of chaos execution for multiple target pods
|
||||
## supported values: serial, parallel
|
||||
- name: SEQUENCE
|
||||
value: 'parallel'
|
||||
|
||||
labels:
|
||||
name: spring-boot-memory-stress
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: experiment-job
|
||||
app.kubernetes.io/version: latest
|
||||
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
It can target random pods with a Spring Boot application and allows configuring the assaults to inject app-kill
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
name: spring-boot-app-kill
|
||||
labels:
|
||||
name: spring-boot-app-kill
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: chaosexperiment
|
||||
app.kubernetes.io/version: latest
|
||||
spec:
|
||||
definition:
|
||||
scope: Namespaced
|
||||
permissions:
|
||||
# Create and monitor the experiment & helper pods
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ "pods" ]
|
||||
verbs: [ "create","delete","get","list","patch","update", "deletecollection" ]
|
||||
# Performs CRUD operations on the events inside chaosengine and chaosresult
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ "events" ]
|
||||
verbs: [ "create","get","list","patch","update" ]
|
||||
# Track and get the runner, experiment, and helper pods log
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ "pods/log" ]
|
||||
verbs: [ "get","list","watch" ]
|
||||
# for creating and managing to execute commands inside target container
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ "pods/exec" ]
|
||||
verbs: [ "get","list","create" ]
|
||||
# for configuring and monitor the experiment job by the chaos-runner pod
|
||||
- apiGroups: [ "batch" ]
|
||||
resources: [ "jobs" ]
|
||||
verbs: [ "create","list","get","delete","deletecollection" ]
|
||||
# for creation, status polling and deletion of litmus chaos resources used within a chaos workflow
|
||||
- apiGroups: [ "litmuschaos.io" ]
|
||||
resources: [ "chaosengines","chaosexperiments","chaosresults" ]
|
||||
verbs: [ "create","list","get","patch","update","delete" ]
|
||||
image: "litmuschaos/go-runner:latest"
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- -c
|
||||
- ./experiments -name spring-boot-app-kill
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
# port of the spring boot application
|
||||
- name: CM_PORT
|
||||
value: ''
|
||||
|
||||
#it contains number of requests are to be attacked
|
||||
# n value means nth request will be affected
|
||||
- name: CM_LEVEL
|
||||
value: '1'
|
||||
|
||||
# it limits watched packages/classes/methods
|
||||
- name: CM_WATCHED_CUSTOM_SERVICES
|
||||
value: ''
|
||||
|
||||
# provide name of watcher
|
||||
# it supports controller, restController, service, repository, component, webClient
|
||||
- name: CM_WATCHERS
|
||||
value: 'restController'
|
||||
|
||||
## percentage of total pods to target
|
||||
- name: PODS_AFFECTED_PERC
|
||||
value: ''
|
||||
|
||||
## Period to wait before and after injection of chaos
|
||||
- name: RAMP_TIME
|
||||
value: ''
|
||||
|
||||
## it defines the sequence of chaos execution for multiple target pods
|
||||
## supported values: serial, parallel
|
||||
- name: SEQUENCE
|
||||
value: 'parallel'
|
||||
|
||||
labels:
|
||||
name: spring-boot-app-kill
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: experiment-job
|
||||
app.kubernetes.io/version: latest
|
||||
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
It can target random pods with a Spring Boot application and allows configuring the assaults to inject cpu-stress
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
name: spring-boot-cpu-stress
|
||||
labels:
|
||||
name: spring-boot-cpu-stress
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: chaosexperiment
|
||||
app.kubernetes.io/version: latest
|
||||
spec:
|
||||
definition:
|
||||
scope: Namespaced
|
||||
permissions:
|
||||
# Create and monitor the experiment & helper pods
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ "pods" ]
|
||||
verbs: [ "create","delete","get","list","patch","update", "deletecollection" ]
|
||||
# Performs CRUD operations on the events inside chaosengine and chaosresult
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ "events" ]
|
||||
verbs: [ "create","get","list","patch","update" ]
|
||||
# Track and get the runner, experiment, and helper pods log
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ "pods/log" ]
|
||||
verbs: [ "get","list","watch" ]
|
||||
# for creating and managing to execute commands inside target container
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ "pods/exec" ]
|
||||
verbs: [ "get","list","create" ]
|
||||
# for configuring and monitor the experiment job by the chaos-runner pod
|
||||
- apiGroups: [ "batch" ]
|
||||
resources: [ "jobs" ]
|
||||
verbs: [ "create","list","get","delete","deletecollection" ]
|
||||
# for creation, status polling and deletion of litmus chaos resources used within a chaos workflow
|
||||
- apiGroups: [ "litmuschaos.io" ]
|
||||
resources: [ "chaosengines","chaosexperiments","chaosresults" ]
|
||||
verbs: [ "create","list","get","patch","update","delete" ]
|
||||
image: "litmuschaos/go-runner:latest"
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- -c
|
||||
- ./experiments -name spring-boot-cpu-stress
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
|
||||
# it contains fraction of cpu to be stressed(0.95 equals 95%)
|
||||
# it supports value in range [0.1,1.0]
|
||||
- name: CPU_LOAD_FRACTION
|
||||
value: '0.9'
|
||||
|
||||
# port of the spring boot application
|
||||
- name: CM_PORT
|
||||
value: ''
|
||||
|
||||
#it contains number of requests are to be attacked
|
||||
# n value means nth request will be affected
|
||||
- name: CM_LEVEL
|
||||
value: '1'
|
||||
|
||||
# it limits watched packages/classes/methods
|
||||
- name: CM_WATCHED_CUSTOM_SERVICES
|
||||
value: ''
|
||||
|
||||
# provide name of watcher
|
||||
# it supports controller, restController, service, repository, component, webClient
|
||||
- name: CM_WATCHERS
|
||||
value: 'restController'
|
||||
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: '30'
|
||||
|
||||
## percentage of total pods to target
|
||||
- name: PODS_AFFECTED_PERC
|
||||
value: ''
|
||||
|
||||
## Period to wait before and after injection of chaos
|
||||
- name: RAMP_TIME
|
||||
value: ''
|
||||
|
||||
## it defines the sequence of chaos execution for multiple target pods
|
||||
## supported values: serial, parallel
|
||||
- name: SEQUENCE
|
||||
value: 'parallel'
|
||||
|
||||
labels:
|
||||
name: spring-boot-cpu-stress
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: experiment-job
|
||||
app.kubernetes.io/version: latest
|
||||
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
It can target random pods with a Spring Boot application and allows configuring the assaults to inject cpu-stress
|
||||
@@ -128,11 +404,6 @@ spec:
|
||||
- name: SEQUENCE
|
||||
value: 'parallel'
|
||||
|
||||
## env var that describes the library used to execute the chaos
|
||||
## default: litmus. Supported values: litmus
|
||||
- name: LIB
|
||||
value: 'litmus'
|
||||
|
||||
labels:
|
||||
name: spring-boot-faults
|
||||
app.kubernetes.io/part-of: litmus
|
||||
@@ -143,12 +414,12 @@ spec:
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
It can target random pods with a Spring Boot application and allows configuring the assaults to inject memory-stress
|
||||
It can target random pods with a Spring Boot application and allows configuring the assaults to inject network latency
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
name: spring-boot-memory-stress
|
||||
name: spring-boot-latency
|
||||
labels:
|
||||
name: spring-boot-memory-stress
|
||||
name: spring-boot-latency
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: chaosexperiment
|
||||
app.kubernetes.io/version: latest
|
||||
@@ -184,15 +455,14 @@ spec:
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- -c
|
||||
- ./experiments -name spring-boot-memory-stress
|
||||
- ./experiments -name spring-boot-latency
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
|
||||
# it contains fraction of memory to be stressed(0.70 equals 70%)
|
||||
# it supports value in range [0.01,0.95]
|
||||
- name: MEMORY_FILL_FRACTION
|
||||
value: '0.70'
|
||||
# provide the latency (ms)
|
||||
- name: LATENCY
|
||||
value: '2000'
|
||||
|
||||
# port of the spring boot application
|
||||
- name: CM_PORT
|
||||
@@ -228,13 +498,8 @@ spec:
|
||||
- name: SEQUENCE
|
||||
value: 'parallel'
|
||||
|
||||
## env var that describes the library used to execute the chaos
|
||||
## default: litmus. Supported values: litmus
|
||||
- name: LIB
|
||||
value: 'litmus'
|
||||
|
||||
labels:
|
||||
name: spring-boot-memory-stress
|
||||
name: spring-boot-latency
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: experiment-job
|
||||
app.kubernetes.io/version: latest
|
||||
@@ -331,11 +596,6 @@ spec:
|
||||
- name: SEQUENCE
|
||||
value: 'parallel'
|
||||
|
||||
## env var that describes the library used to execute the chaos
|
||||
## default: litmus. Supported values: litmus
|
||||
- name: LIB
|
||||
value: 'litmus'
|
||||
|
||||
labels:
|
||||
name: spring-boot-exceptions
|
||||
app.kubernetes.io/part-of: litmus
|
||||
@@ -343,293 +603,3 @@ spec:
|
||||
app.kubernetes.io/version: latest
|
||||
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
It can target random pods with a Spring Boot application and allows configuring the assaults to inject app-kill
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
name: spring-boot-app-kill
|
||||
labels:
|
||||
name: spring-boot-app-kill
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: chaosexperiment
|
||||
app.kubernetes.io/version: latest
|
||||
spec:
|
||||
definition:
|
||||
scope: Namespaced
|
||||
permissions:
|
||||
# Create and monitor the experiment & helper pods
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ "pods" ]
|
||||
verbs: [ "create","delete","get","list","patch","update", "deletecollection" ]
|
||||
# Performs CRUD operations on the events inside chaosengine and chaosresult
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ "events" ]
|
||||
verbs: [ "create","get","list","patch","update" ]
|
||||
# Track and get the runner, experiment, and helper pods log
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ "pods/log" ]
|
||||
verbs: [ "get","list","watch" ]
|
||||
# for creating and managing to execute commands inside target container
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ "pods/exec" ]
|
||||
verbs: [ "get","list","create" ]
|
||||
# for configuring and monitor the experiment job by the chaos-runner pod
|
||||
- apiGroups: [ "batch" ]
|
||||
resources: [ "jobs" ]
|
||||
verbs: [ "create","list","get","delete","deletecollection" ]
|
||||
# for creation, status polling and deletion of litmus chaos resources used within a chaos workflow
|
||||
- apiGroups: [ "litmuschaos.io" ]
|
||||
resources: [ "chaosengines","chaosexperiments","chaosresults" ]
|
||||
verbs: [ "create","list","get","patch","update","delete" ]
|
||||
image: "litmuschaos/go-runner:latest"
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- -c
|
||||
- ./experiments -name spring-boot-app-kill
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
# port of the spring boot application
|
||||
- name: CM_PORT
|
||||
value: ''
|
||||
|
||||
#it contains number of requests are to be attacked
|
||||
# n value means nth request will be affected
|
||||
- name: CM_LEVEL
|
||||
value: '1'
|
||||
|
||||
# it limits watched packages/classes/methods
|
||||
- name: CM_WATCHED_CUSTOM_SERVICES
|
||||
value: ''
|
||||
|
||||
# provide name of watcher
|
||||
# it supports controller, restController, service, repository, component, webClient
|
||||
- name: CM_WATCHERS
|
||||
value: 'restController'
|
||||
|
||||
## percentage of total pods to target
|
||||
- name: PODS_AFFECTED_PERC
|
||||
value: ''
|
||||
|
||||
## Period to wait before and after injection of chaos
|
||||
- name: RAMP_TIME
|
||||
value: ''
|
||||
|
||||
## it defines the sequence of chaos execution for multiple target pods
|
||||
## supported values: serial, parallel
|
||||
- name: SEQUENCE
|
||||
value: 'parallel'
|
||||
|
||||
## env var that describes the library used to execute the chaos
|
||||
## default: litmus. Supported values: litmus
|
||||
- name: LIB
|
||||
value: 'litmus'
|
||||
|
||||
labels:
|
||||
name: spring-boot-app-kill
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: experiment-job
|
||||
app.kubernetes.io/version: latest
|
||||
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
It can target random pods with a Spring Boot application and allows configuring the assaults to inject network latency
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
name: spring-boot-latency
|
||||
labels:
|
||||
name: spring-boot-latency
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: chaosexperiment
|
||||
app.kubernetes.io/version: latest
|
||||
spec:
|
||||
definition:
|
||||
scope: Namespaced
|
||||
permissions:
|
||||
# Create and monitor the experiment & helper pods
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ "pods" ]
|
||||
verbs: [ "create","delete","get","list","patch","update", "deletecollection" ]
|
||||
# Performs CRUD operations on the events inside chaosengine and chaosresult
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ "events" ]
|
||||
verbs: [ "create","get","list","patch","update" ]
|
||||
# Track and get the runner, experiment, and helper pods log
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ "pods/log" ]
|
||||
verbs: [ "get","list","watch" ]
|
||||
# for creating and managing to execute commands inside target container
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ "pods/exec" ]
|
||||
verbs: [ "get","list","create" ]
|
||||
# for configuring and monitor the experiment job by the chaos-runner pod
|
||||
- apiGroups: [ "batch" ]
|
||||
resources: [ "jobs" ]
|
||||
verbs: [ "create","list","get","delete","deletecollection" ]
|
||||
# for creation, status polling and deletion of litmus chaos resources used within a chaos workflow
|
||||
- apiGroups: [ "litmuschaos.io" ]
|
||||
resources: [ "chaosengines","chaosexperiments","chaosresults" ]
|
||||
verbs: [ "create","list","get","patch","update","delete" ]
|
||||
image: "litmuschaos/go-runner:latest"
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- -c
|
||||
- ./experiments -name spring-boot-latency
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
|
||||
# provide the latency (ms)
|
||||
- name: LATENCY
|
||||
value: '2000'
|
||||
|
||||
# port of the spring boot application
|
||||
- name: CM_PORT
|
||||
value: ''
|
||||
|
||||
# it contains number of requests are to be attacked
|
||||
# n value means nth request will be affected
|
||||
- name: CM_LEVEL
|
||||
value: '1'
|
||||
|
||||
# it limits watched packages/classes/methods
|
||||
- name: CM_WATCHED_CUSTOM_SERVICES
|
||||
value: ''
|
||||
|
||||
# provide name of watcher
|
||||
# it supports controller, restController, service, repository, component, webClient
|
||||
- name: CM_WATCHERS
|
||||
value: 'restController'
|
||||
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: '30'
|
||||
|
||||
## percentage of total pods to target
|
||||
- name: PODS_AFFECTED_PERC
|
||||
value: ''
|
||||
|
||||
## Period to wait before and after injection of chaos
|
||||
- name: RAMP_TIME
|
||||
value: ''
|
||||
|
||||
## it defines the sequence of chaos execution for multiple target pods
|
||||
## supported values: serial, parallel
|
||||
- name: SEQUENCE
|
||||
value: 'parallel'
|
||||
|
||||
## env var that describes the library used to execute the chaos
|
||||
## default: litmus. Supported values: litmus
|
||||
- name: LIB
|
||||
value: 'litmus'
|
||||
|
||||
labels:
|
||||
name: spring-boot-latency
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: experiment-job
|
||||
app.kubernetes.io/version: latest
|
||||
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
It can target random pods with a Spring Boot application and allows configuring the assaults to inject cpu-stress
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
name: spring-boot-cpu-stress
|
||||
labels:
|
||||
name: spring-boot-cpu-stress
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: chaosexperiment
|
||||
app.kubernetes.io/version: latest
|
||||
spec:
|
||||
definition:
|
||||
scope: Namespaced
|
||||
permissions:
|
||||
# Create and monitor the experiment & helper pods
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ "pods" ]
|
||||
verbs: [ "create","delete","get","list","patch","update", "deletecollection" ]
|
||||
# Performs CRUD operations on the events inside chaosengine and chaosresult
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ "events" ]
|
||||
verbs: [ "create","get","list","patch","update" ]
|
||||
# Track and get the runner, experiment, and helper pods log
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ "pods/log" ]
|
||||
verbs: [ "get","list","watch" ]
|
||||
# for creating and managing to execute commands inside target container
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ "pods/exec" ]
|
||||
verbs: [ "get","list","create" ]
|
||||
# for configuring and monitor the experiment job by the chaos-runner pod
|
||||
- apiGroups: [ "batch" ]
|
||||
resources: [ "jobs" ]
|
||||
verbs: [ "create","list","get","delete","deletecollection" ]
|
||||
# for creation, status polling and deletion of litmus chaos resources used within a chaos workflow
|
||||
- apiGroups: [ "litmuschaos.io" ]
|
||||
resources: [ "chaosengines","chaosexperiments","chaosresults" ]
|
||||
verbs: [ "create","list","get","patch","update","delete" ]
|
||||
image: "litmuschaos/go-runner:latest"
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- -c
|
||||
- ./experiments -name spring-boot-cpu-stress
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
|
||||
# it contains fraction of cpu to be stressed(0.95 equals 95%)
|
||||
# it supports value in range [0.1,1.0]
|
||||
- name: CPU_LOAD_FRACTION
|
||||
value: '0.9'
|
||||
|
||||
# port of the spring boot application
|
||||
- name: CM_PORT
|
||||
value: ''
|
||||
|
||||
#it contains number of requests are to be attacked
|
||||
# n value means nth request will be affected
|
||||
- name: CM_LEVEL
|
||||
value: '1'
|
||||
|
||||
# it limits watched packages/classes/methods
|
||||
- name: CM_WATCHED_CUSTOM_SERVICES
|
||||
value: ''
|
||||
|
||||
# provide name of watcher
|
||||
# it supports controller, restController, service, repository, component, webClient
|
||||
- name: CM_WATCHERS
|
||||
value: 'restController'
|
||||
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: '30'
|
||||
|
||||
## percentage of total pods to target
|
||||
- name: PODS_AFFECTED_PERC
|
||||
value: ''
|
||||
|
||||
## Period to wait before and after injection of chaos
|
||||
- name: RAMP_TIME
|
||||
value: ''
|
||||
|
||||
## it defines the sequence of chaos execution for multiple target pods
|
||||
## supported values: serial, parallel
|
||||
- name: SEQUENCE
|
||||
value: 'parallel'
|
||||
|
||||
## env var that describes the library used to execute the chaos
|
||||
## default: litmus. Supported values: litmus
|
||||
- name: LIB
|
||||
value: 'litmus'
|
||||
|
||||
labels:
|
||||
name: spring-boot-cpu-stress
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: experiment-job
|
||||
app.kubernetes.io/version: latest
|
||||
|
||||
---
|
||||
|
@@ -80,9 +80,6 @@ spec:
|
||||
- name: CHAOS_INTERVAL
|
||||
value: '30'
|
||||
|
||||
- name: LIB
|
||||
value: 'litmus'
|
||||
|
||||
- name: RAMP_TIME
|
||||
value: ''
|
||||
|
||||
|
Reference in New Issue
Block a user