1294674975: version upgraded for chaos-charts

This commit is contained in:
litmusbot
2021-10-01 10:26:49 +00:00
parent a1b589657f
commit 89d99df5e4
6 changed files with 2223 additions and 2210 deletions

View File

@@ -1,129 +1,4 @@
apiVersion: litmuschaos.io/v1alpha1 apiVersion: litmuschaos.io/v1alpha1
description:
message: |
Execute AWS SSM Chaos on given ec2 instance IDs
kind: ChaosExperiment
metadata:
name: aws-ssm-chaos-by-id
labels:
name: aws-ssm-chaos-by-id
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: latest
spec:
definition:
scope: Cluster
permissions:
- apiGroups:
- ""
- "batch"
- "litmuschaos.io"
resources:
- "jobs"
- "pods"
- "events"
- "pods/log"
- "pods/exec"
- "secrets"
- "configmaps"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
verbs:
- "create"
- "list"
- "get"
- "patch"
- "update"
- "delete"
image: "litmuschaos/go-runner:ci"
imagePullPolicy: Always
args:
- -c
- ./experiments -name aws-ssm-chaos-by-id
command:
- /bin/bash
env:
- name: TOTAL_CHAOS_DURATION
value: '60'
- name: CHAOS_INTERVAL
value: '60'
# Period to wait before and after injection of chaos in sec
- name: RAMP_TIME
value: ''
# 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: ''
# it defines the sequence of chaos execution for multiple target instances
# supported values: serial, parallel
- 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 name of ssm doc
# if not using the default stress docs
- name: DOCUMENT_NAME
value: ''
# Provide the type of ssm doc
# if not using the default stress docs
- name: DOCUMENT_TYPE
value: ''
# Provide the format of ssm doc
# if not using the default stress docs
- name: DOCUMENT_FORMAT
value: ''
# Provide the path of ssm doc
# if not using the default stress docs
- name: DOCUMENT_PATH
value: ''
# if you want to install dependencies to run default ssm docs
- name: INSTALL_DEPENDENCIES
value: 'True'
# provide the number of workers for memory stress
- name: NUMBER_OF_WORKERS
value: '1'
# provide the percentage of available memory to stress
- name: MEMORY_PERCENTAGE
value: '80'
# provide the CPU chores to be comsumed
# 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-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: description:
message: | message: |
Execute AWS SSM Chaos on given ec2 instance Tag Execute AWS SSM Chaos on given ec2 instance Tag
@@ -252,3 +127,128 @@ spec:
mountPath: /tmp/ mountPath: /tmp/
--- ---
apiVersion: litmuschaos.io/v1alpha1
description:
message: |
Execute AWS SSM Chaos on given ec2 instance IDs
kind: ChaosExperiment
metadata:
name: aws-ssm-chaos-by-id
labels:
name: aws-ssm-chaos-by-id
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: latest
spec:
definition:
scope: Cluster
permissions:
- apiGroups:
- ""
- "batch"
- "litmuschaos.io"
resources:
- "jobs"
- "pods"
- "events"
- "pods/log"
- "pods/exec"
- "secrets"
- "configmaps"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
verbs:
- "create"
- "list"
- "get"
- "patch"
- "update"
- "delete"
image: "litmuschaos/go-runner:ci"
imagePullPolicy: Always
args:
- -c
- ./experiments -name aws-ssm-chaos-by-id
command:
- /bin/bash
env:
- name: TOTAL_CHAOS_DURATION
value: '60'
- name: CHAOS_INTERVAL
value: '60'
# Period to wait before and after injection of chaos in sec
- name: RAMP_TIME
value: ''
# 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: ''
# it defines the sequence of chaos execution for multiple target instances
# supported values: serial, parallel
- 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 name of ssm doc
# if not using the default stress docs
- name: DOCUMENT_NAME
value: ''
# Provide the type of ssm doc
# if not using the default stress docs
- name: DOCUMENT_TYPE
value: ''
# Provide the format of ssm doc
# if not using the default stress docs
- name: DOCUMENT_FORMAT
value: ''
# Provide the path of ssm doc
# if not using the default stress docs
- name: DOCUMENT_PATH
value: ''
# if you want to install dependencies to run default ssm docs
- name: INSTALL_DEPENDENCIES
value: 'True'
# provide the number of workers for memory stress
- name: NUMBER_OF_WORKERS
value: '1'
# provide the percentage of available memory to stress
- name: MEMORY_PERCENTAGE
value: '80'
# provide the CPU chores to be comsumed
# 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-id
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: latest
secrets:
- name: cloud-secret
mountPath: /tmp/
---

View File

@@ -1,4 +1,95 @@
apiVersion: litmuschaos.io/v1alpha1 apiVersion: litmuschaos.io/v1alpha1
description:
message: |
Terminating azure VM instance
kind: ChaosExperiment
metadata:
name: azure-instance-stop
labels:
name: azure-instance-stop
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: latest
spec:
definition:
scope: Cluster
permissions:
- apiGroups:
- ""
- "batch"
- "litmuschaos.io"
resources:
- "jobs"
- "pods"
- "events"
- "pods/log"
- "pods/exec"
- "secrets"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
verbs:
- "create"
- "list"
- "get"
- "patch"
- "update"
- "delete"
image: "litmuschaos/go-runner:ci"
imagePullPolicy: Always
args:
- -c
- ./experiments -name azure-instance-stop
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 target instance name(s) (comma separated if multiple)
- name: AZURE_INSTANCE_NAME
value: ''
# provide the resource group of the instance
- name: RESOURCE_GROUP
value: ''
# accepts enable/disable, default is disable
- name: SCALE_SET
value: ''
# Provide the path of aks credentials mounted from secret
- name: AZURE_AUTH_LOCATION
value: '/tmp/azure.auth'
- name: SEQUENCE
value: 'parallel'
# provide the LIB
# only litmus supported
- name: LIB
value: 'litmus'
labels:
name: azure-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: description:
message: | message: |
Detaches disk from the VM and then re-attaches disk to the VM Detaches disk from the VM and then re-attaches disk to the VM
@@ -92,94 +183,3 @@ spec:
mountPath: /tmp/ mountPath: /tmp/
--- ---
apiVersion: litmuschaos.io/v1alpha1
description:
message: |
Terminating azure VM instance
kind: ChaosExperiment
metadata:
name: azure-instance-stop
labels:
name: azure-instance-stop
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: latest
spec:
definition:
scope: Cluster
permissions:
- apiGroups:
- ""
- "batch"
- "litmuschaos.io"
resources:
- "jobs"
- "pods"
- "events"
- "pods/log"
- "pods/exec"
- "secrets"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
verbs:
- "create"
- "list"
- "get"
- "patch"
- "update"
- "delete"
image: "litmuschaos/go-runner:ci"
imagePullPolicy: Always
args:
- -c
- ./experiments -name azure-instance-stop
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 target instance name(s) (comma separated if multiple)
- name: AZURE_INSTANCE_NAME
value: ''
# provide the resource group of the instance
- name: RESOURCE_GROUP
value: ''
# accepts enable/disable, default is disable
- name: SCALE_SET
value: ''
# Provide the path of aks credentials mounted from secret
- name: AZURE_AUTH_LOCATION
value: '/tmp/azure.auth'
- name: SEQUENCE
value: 'parallel'
# provide the LIB
# only litmus supported
- name: LIB
value: 'litmus'
labels:
name: azure-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

View File

@@ -4,9 +4,9 @@ description:
Detaching an ebs volume from ec2 instance. Detaching an ebs volume from ec2 instance.
kind: ChaosExperiment kind: ChaosExperiment
metadata: metadata:
name: ebs-loss-by-id name: ebs-loss-by-tag
labels: labels:
name: ebs-loss-by-id name: ebs-loss-by-tag
app.kubernetes.io/part-of: litmus app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: latest app.kubernetes.io/version: latest
@@ -39,7 +39,7 @@ spec:
imagePullPolicy: Always imagePullPolicy: Always
args: args:
- -c - -c
- ./experiments -name ebs-loss-by-id - ./experiments -name ebs-loss-by-tag
command: command:
- /bin/bash - /bin/bash
env: env:
@@ -49,18 +49,20 @@ spec:
- name: CHAOS_INTERVAL - name: CHAOS_INTERVAL
value: '30' value: '30'
# Period to wait before and after injection of chaos in sec
- name: RAMP_TIME - name: RAMP_TIME
value: '' value: ''
- name: EBS_VOLUME_ID - name: EBS_VOLUME_TAG
value: '' value: ''
- name: REGION - name: REGION
value: '' value: ''
- name: SEQUENCE - name: SEQUENCE
value: 'parallel' value: 'parallel'
- name: VOLUME_AFFECTED_PERC
value: ''
# Provide the path of aws credentials mounted from secret # Provide the path of aws credentials mounted from secret
- name: AWS_SHARED_CREDENTIALS_FILE - name: AWS_SHARED_CREDENTIALS_FILE
@@ -72,7 +74,7 @@ spec:
value: 'litmus' value: 'litmus'
labels: labels:
name: ebs-loss-by-id name: ebs-loss-by-tag
app.kubernetes.io/part-of: litmus app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: latest app.kubernetes.io/version: latest
@@ -267,9 +269,9 @@ description:
Detaching an ebs volume from ec2 instance. Detaching an ebs volume from ec2 instance.
kind: ChaosExperiment kind: ChaosExperiment
metadata: metadata:
name: ebs-loss-by-tag name: ebs-loss-by-id
labels: labels:
name: ebs-loss-by-tag name: ebs-loss-by-id
app.kubernetes.io/part-of: litmus app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: latest app.kubernetes.io/version: latest
@@ -302,7 +304,7 @@ spec:
imagePullPolicy: Always imagePullPolicy: Always
args: args:
- -c - -c
- ./experiments -name ebs-loss-by-tag - ./experiments -name ebs-loss-by-id
command: command:
- /bin/bash - /bin/bash
env: env:
@@ -312,20 +314,18 @@ spec:
- name: CHAOS_INTERVAL - name: CHAOS_INTERVAL
value: '30' value: '30'
# Period to wait before and after injection of chaos in sec
- name: RAMP_TIME - name: RAMP_TIME
value: '' value: ''
- name: EBS_VOLUME_TAG - name: EBS_VOLUME_ID
value: '' value: ''
- name: REGION - name: REGION
value: '' value: ''
- name: SEQUENCE - name: SEQUENCE
value: 'parallel' value: 'parallel'
- name: VOLUME_AFFECTED_PERC
value: ''
# Provide the path of aws credentials mounted from secret # Provide the path of aws credentials mounted from secret
- name: AWS_SHARED_CREDENTIALS_FILE - name: AWS_SHARED_CREDENTIALS_FILE
@@ -337,7 +337,7 @@ spec:
value: 'litmus' value: 'litmus'
labels: labels:
name: ebs-loss-by-tag name: ebs-loss-by-id
app.kubernetes.io/part-of: litmus app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: latest app.kubernetes.io/version: latest

View File

@@ -1,212 +1,3 @@
apiVersion: litmuschaos.io/v1alpha1
description:
message: |
Network loss to pool pod belonging to a OpenEBS PVC
kind: ChaosExperiment
metadata:
labels:
litmuschaos.io/name: openebs
name: openebs-pool-network-loss
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: latest
name: openebs-pool-network-loss
spec:
definition:
scope: Cluster
permissions:
- apiGroups:
- ""
- "apps"
- "litmuschaos.io"
- "batch"
- "extensions"
- "storage.k8s.io"
- "openebs.io"
resources:
- "pods"
- "pods/log"
- "pods/exec"
- "events"
- "jobs"
- "configmaps"
- "services"
- "persistentvolumeclaims"
- "storageclasses"
- "persistentvolumeclaims"
- "persistentvolumes"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
- "cstorpools"
- "cstorvolumereplicas"
- "replicasets"
verbs:
- "create"
- "get"
- "delete"
- "list"
- "patch"
- "update"
image: "litmuschaos/ansible-runner:latest"
imagePullPolicy: Always
args:
- -c
- ansible-playbook ./experiments/openebs/openebs-pool-network-loss/openebs_pool_network_loss_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0
command:
- /bin/bash
env:
- name: ANSIBLE_STDOUT_CALLBACK
value: 'default'
- name: OPENEBS_NAMESPACE
value: 'openebs'
# only pumba supported
# For pumba image use : gaiaadm/pumba:0.6.5
- name: LIB_IMAGE
value: 'gaiaadm/pumba:0.6.5'
- name: TC_IMAGE
value: 'gaiadocker/iproute2'
- name: NETWORK_PACKET_LOSS_PERCENTAGE
value: '100' # in percentage
- name: TOTAL_CHAOS_DURATION
value: '120' # in seconds
- name: LIVENESS_APP_LABEL
value: ''
- name: LIVENESS_APP_NAMESPACE
value: ''
- name: DATA_PERSISTENCE
value: ''
labels:
name: openebs-pool-network-loss
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: latest
---
---
apiVersion: litmuschaos.io/v1alpha1
description:
message: |
Kill the cstor target/Jiva controller container and check if gets created again
kind: ChaosExperiment
metadata:
labels:
litmuschaos.io/name: openebs
name: openebs-target-container-failure
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: latest
name: openebs-target-container-failure
spec:
definition:
scope: Cluster
permissions:
- apiGroups:
- ""
- "apps"
- "batch"
- "litmuschaos.io"
- "storage.k8s.io"
resources:
- "jobs"
- "pods"
- "events"
- "pods/exec"
- "pods/log"
- "configmaps"
- "secrets"
- "persistentvolumeclaims"
- "storageclasses"
- "persistentvolumes"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
verbs:
- "create"
- "delete"
- "get"
- "list"
- "patch"
- "update"
image: "litmuschaos/ansible-runner:latest"
imagePullPolicy: Always
args:
- -c
- ansible-playbook ./experiments/openebs/openebs-target-container-failure/openebs_target_container_failure_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0
command:
- /bin/bash
env:
- name: ANSIBLE_STDOUT_CALLBACK
value: 'default'
- name: OPENEBS_NAMESPACE
value: 'openebs'
- name: APP_PVC
value: ''
# LIB_IMAGE can be - gaiaadm/pumba:0.6.5, gprasath/crictl:ci
# For pumba image use : gaiaadm/pumba:0.6.5
# For containerd image use : gprasath/crictl:ci
- name: LIB_IMAGE
value: 'gaiaadm/pumba:0.6.5'
# Specify the container runtime used , to pick the relevant chaos util
- name: CONTAINER_RUNTIME
value: 'docker'
# TARGET_CONTAINER values: cstor-volume-mgmt , cstor-istgt
# For cstor-volume-istgt container kill use : cstor-istgt
# For volume-mgmt-kill container use : cstor-volume-mgmt
- name: TARGET_CONTAINER
value: 'cstor-volume-mgmt'
- name: FORCE
value: 'true'
- name: LIVENESS_APP_LABEL
value: ''
- name: LIVENESS_APP_NAMESPACE
value: ''
- name: DATA_PERSISTENCE
value: ''
- name: DEPLOY_TYPE
value: 'deployment'
# provide the chaos interval
- name: CHAOS_INTERVAL
value: '10'
# provide the total chaos duration
- name: TOTAL_CHAOS_DURATION
value: '20'
- name: SOAK_TIME
value: '60'
labels:
name: openebs-target-container-failure
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: latest
#configmaps:
#- name: openebs-target-container-failure
# mountPath: /mnt
---
--- ---
apiVersion: litmuschaos.io/v1alpha1 apiVersion: litmuschaos.io/v1alpha1
description: description:
@@ -496,6 +287,316 @@ spec:
#- name: openebs-target-pod-failure #- name: openebs-target-pod-failure
# mountPath: /mnt # mountPath: /mnt
---
apiVersion: litmuschaos.io/v1alpha1
description:
message: |
Network loss to target pod belonging to a OpenEBS PVC
kind: ChaosExperiment
metadata:
labels:
litmuschaos.io/name: openebs
name: openebs-target-network-loss
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: latest
name: openebs-target-network-loss
spec:
definition:
scope: Cluster
permissions:
- apiGroups:
- ""
- "extensions"
- "apps"
- "batch"
- "litmuschaos.io"
- "storage.k8s.io"
resources:
- "jobs"
- "pods"
- "events"
- "services"
- "pods/log"
- "pods/exec"
- "configmaps"
- "secrets"
- "persistentvolumeclaims"
- "storageclasses"
- "persistentvolumes"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
verbs:
- "create"
- "get"
- "delete"
- "list"
- "patch"
- "update"
image: "litmuschaos/ansible-runner:latest"
imagePullPolicy: Always
args:
- -c
- ansible-playbook ./experiments/openebs/openebs-target-network-loss/openebs_target_network_loss_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0
command:
- /bin/bash
env:
- name: ANSIBLE_STDOUT_CALLBACK
value: 'default'
- name: OPENEBS_NAMESPACE
value: 'openebs'
- name: APP_PVC
value: ''
- name: TC_IMAGE
value: 'gaiadocker/iproute2'
# only pumba supported
# For pumba image use : gaiaadm/pumba:0.6.5
- name: LIB_IMAGE
value: 'gaiaadm/pumba:0.6.5'
- name: NETWORK_PACKET_LOSS_PERCENTAGE
value: '100' # in percentage
- name: TOTAL_CHAOS_DURATION
value: '120' # in seconds
- name: LIVENESS_APP_LABEL
value: ''
- name: LIVENESS_APP_NAMESPACE
value: ''
- name: DATA_PERSISTENCE
value: ''
labels:
name: openebs-target-network-loss
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: latest
#configmaps:
#- name: openebs-target-network-loss
# mountPath: /mnt
---
---
apiVersion: litmuschaos.io/v1alpha1
description:
message: |
Kill the pool container and check if gets scheduled again
kind: ChaosExperiment
metadata:
labels:
litmuschaos.io/name: openebs
name: openebs-pool-container-failure
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: latest
name: openebs-pool-container-failure
spec:
definition:
scope: Cluster
permissions:
- apiGroups:
- ""
- "extensions"
- "apps"
- "batch"
- "litmuschaos.io"
- "openebs.io"
- "storage.k8s.io"
resources:
- "replicasets"
- "events"
- "jobs"
- "pods"
- "pods/log"
- "pods/exec"
- "configmaps"
- "secrets"
- "persistentvolumeclaims"
- "cstorvolumereplicas"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
verbs:
- "create"
- "get"
- "delete"
- "list"
- "patch"
- "update"
image: "litmuschaos/ansible-runner:latest"
imagePullPolicy: Always
args:
- -c
- ansible-playbook ./experiments/openebs/openebs-pool-container-failure/openebs_pool_container_failure_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0
command:
- /bin/bash
env:
- name: ANSIBLE_STDOUT_CALLBACK
value: 'default'
- name: OPENEBS_NS
value: 'openebs'
- name: APP_PVC
value: ''
- name: LIVENESS_APP_LABEL
value: ''
# only pumba supported
# For pumba image use : gaiaadm/pumba:0.6.5
- name: LIB_IMAGE
value: 'gaiaadm/pumba:0.6.5'
- name: LIVENESS_APP_NAMESPACE
value: ''
# provide the chaos interval
- name: CHAOS_INTERVAL
value: '10'
# provide the total chaos duration
- name: TOTAL_CHAOS_DURATION
value: '20'
- name: DATA_PERSISTENCE
value: ''
- name: CHAOS_ITERATIONS
value: '2'
labels:
name: openebs-pool-container-failure
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: latest
#configmaps:
#- name: openebs-pool-container-failure
# mountPath: /mnt
---
---
apiVersion: litmuschaos.io/v1alpha1
description:
message: |
Kill the cstor target/Jiva controller container and check if gets created again
kind: ChaosExperiment
metadata:
labels:
litmuschaos.io/name: openebs
name: openebs-target-container-failure
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: latest
name: openebs-target-container-failure
spec:
definition:
scope: Cluster
permissions:
- apiGroups:
- ""
- "apps"
- "batch"
- "litmuschaos.io"
- "storage.k8s.io"
resources:
- "jobs"
- "pods"
- "events"
- "pods/exec"
- "pods/log"
- "configmaps"
- "secrets"
- "persistentvolumeclaims"
- "storageclasses"
- "persistentvolumes"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
verbs:
- "create"
- "delete"
- "get"
- "list"
- "patch"
- "update"
image: "litmuschaos/ansible-runner:latest"
imagePullPolicy: Always
args:
- -c
- ansible-playbook ./experiments/openebs/openebs-target-container-failure/openebs_target_container_failure_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0
command:
- /bin/bash
env:
- name: ANSIBLE_STDOUT_CALLBACK
value: 'default'
- name: OPENEBS_NAMESPACE
value: 'openebs'
- name: APP_PVC
value: ''
# LIB_IMAGE can be - gaiaadm/pumba:0.6.5, gprasath/crictl:ci
# For pumba image use : gaiaadm/pumba:0.6.5
# For containerd image use : gprasath/crictl:ci
- name: LIB_IMAGE
value: 'gaiaadm/pumba:0.6.5'
# Specify the container runtime used , to pick the relevant chaos util
- name: CONTAINER_RUNTIME
value: 'docker'
# TARGET_CONTAINER values: cstor-volume-mgmt , cstor-istgt
# For cstor-volume-istgt container kill use : cstor-istgt
# For volume-mgmt-kill container use : cstor-volume-mgmt
- name: TARGET_CONTAINER
value: 'cstor-volume-mgmt'
- name: FORCE
value: 'true'
- name: LIVENESS_APP_LABEL
value: ''
- name: LIVENESS_APP_NAMESPACE
value: ''
- name: DATA_PERSISTENCE
value: ''
- name: DEPLOY_TYPE
value: 'deployment'
# provide the chaos interval
- name: CHAOS_INTERVAL
value: '10'
# provide the total chaos duration
- name: TOTAL_CHAOS_DURATION
value: '20'
- name: SOAK_TIME
value: '60'
labels:
name: openebs-target-container-failure
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: latest
#configmaps:
#- name: openebs-target-container-failure
# mountPath: /mnt
--- ---
--- ---
apiVersion: litmuschaos.io/v1alpha1 apiVersion: litmuschaos.io/v1alpha1
@@ -609,102 +710,6 @@ spec:
- name: cloud-secret - name: cloud-secret
mountPath: /tmp/ mountPath: /tmp/
---
apiVersion: litmuschaos.io/v1alpha1
description:
message: |
Network loss to target pod belonging to a OpenEBS PVC
kind: ChaosExperiment
metadata:
labels:
litmuschaos.io/name: openebs
name: openebs-target-network-loss
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: latest
name: openebs-target-network-loss
spec:
definition:
scope: Cluster
permissions:
- apiGroups:
- ""
- "extensions"
- "apps"
- "batch"
- "litmuschaos.io"
- "storage.k8s.io"
resources:
- "jobs"
- "pods"
- "events"
- "services"
- "pods/log"
- "pods/exec"
- "configmaps"
- "secrets"
- "persistentvolumeclaims"
- "storageclasses"
- "persistentvolumes"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
verbs:
- "create"
- "get"
- "delete"
- "list"
- "patch"
- "update"
image: "litmuschaos/ansible-runner:latest"
imagePullPolicy: Always
args:
- -c
- ansible-playbook ./experiments/openebs/openebs-target-network-loss/openebs_target_network_loss_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0
command:
- /bin/bash
env:
- name: ANSIBLE_STDOUT_CALLBACK
value: 'default'
- name: OPENEBS_NAMESPACE
value: 'openebs'
- name: APP_PVC
value: ''
- name: TC_IMAGE
value: 'gaiadocker/iproute2'
# only pumba supported
# For pumba image use : gaiaadm/pumba:0.6.5
- name: LIB_IMAGE
value: 'gaiaadm/pumba:0.6.5'
- name: NETWORK_PACKET_LOSS_PERCENTAGE
value: '100' # in percentage
- name: TOTAL_CHAOS_DURATION
value: '120' # in seconds
- name: LIVENESS_APP_LABEL
value: ''
- name: LIVENESS_APP_NAMESPACE
value: ''
- name: DATA_PERSISTENCE
value: ''
labels:
name: openebs-target-network-loss
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: latest
#configmaps:
#- name: openebs-target-network-loss
# mountPath: /mnt
--- ---
apiVersion: litmuschaos.io/v1alpha1 apiVersion: litmuschaos.io/v1alpha1
description: description:
@@ -801,6 +806,101 @@ spec:
#- name: openebs-target-network-delay #- name: openebs-target-network-delay
# mountPath: /mnt # mountPath: /mnt
---
apiVersion: litmuschaos.io/v1alpha1
description:
message: |
Network delay to pool pod belonging to a OpenEBS PVC
This experiment is using pumba lib for network chaos
kind: ChaosExperiment
metadata:
labels:
litmuschaos.io/name: openebs
name: openebs-pool-network-delay
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: latest
name: openebs-pool-network-delay
spec:
definition:
scope: Cluster
permissions:
- apiGroups:
- ""
- "apps"
- "litmuschaos.io"
- "batch"
- "extensions"
- "storage.k8s.io"
- "openebs.io"
resources:
- "pods"
- "pods/exec"
- "jobs"
- "pods/log"
- "events"
- "configmaps"
- "services"
- "persistentvolumeclaims"
- "storageclasses"
- "persistentvolumes"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
- "cstorpools"
- "cstorvolumereplicas"
- "replicasets"
verbs:
- "create"
- "get"
- "list"
- "patch"
- "update"
- "delete"
image: "litmuschaos/ansible-runner:latest"
imagePullPolicy: Always
args:
- -c
- ansible-playbook ./experiments/openebs/openebs-pool-network-delay/openebs_pool_network_delay_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0
command:
- /bin/bash
env:
- name: ANSIBLE_STDOUT_CALLBACK
value: 'default'
- name: OPENEBS_NAMESPACE
value: 'openebs'
# only pumba supported
# For pumba image use : gaiaadm/pumba:0.6.5
- name: LIB_IMAGE
value: 'gaiaadm/pumba:0.6.5'
# in milliseconds
- name: NETWORK_DELAY
value: '60000'
- name: TC_IMAGE
value: 'gaiadocker/iproute2'
- name: TOTAL_CHAOS_DURATION
value: '60' # in seconds
- name: LIVENESS_APP_LABEL
value: ''
- name: LIVENESS_APP_NAMESPACE
value: ''
- name: DATA_PERSISTENCE
value: ''
labels:
name: openebs-pool-network-delay
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: latest
--- ---
--- ---
apiVersion: litmuschaos.io/v1alpha1 apiVersion: litmuschaos.io/v1alpha1
@@ -904,17 +1004,16 @@ spec:
apiVersion: litmuschaos.io/v1alpha1 apiVersion: litmuschaos.io/v1alpha1
description: description:
message: | message: |
Network delay to pool pod belonging to a OpenEBS PVC Network loss to pool pod belonging to a OpenEBS PVC
This experiment is using pumba lib for network chaos
kind: ChaosExperiment kind: ChaosExperiment
metadata: metadata:
labels: labels:
litmuschaos.io/name: openebs litmuschaos.io/name: openebs
name: openebs-pool-network-delay name: openebs-pool-network-loss
app.kubernetes.io/part-of: litmus app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: latest app.kubernetes.io/version: latest
name: openebs-pool-network-delay name: openebs-pool-network-loss
spec: spec:
definition: definition:
scope: Cluster scope: Cluster
@@ -929,14 +1028,15 @@ spec:
- "openebs.io" - "openebs.io"
resources: resources:
- "pods" - "pods"
- "pods/exec"
- "jobs"
- "pods/log" - "pods/log"
- "pods/exec"
- "events" - "events"
- "jobs"
- "configmaps" - "configmaps"
- "services" - "services"
- "persistentvolumeclaims" - "persistentvolumeclaims"
- "storageclasses" - "storageclasses"
- "persistentvolumeclaims"
- "persistentvolumes" - "persistentvolumes"
- "chaosengines" - "chaosengines"
- "chaosexperiments" - "chaosexperiments"
@@ -947,15 +1047,15 @@ spec:
verbs: verbs:
- "create" - "create"
- "get" - "get"
- "delete"
- "list" - "list"
- "patch" - "patch"
- "update" - "update"
- "delete"
image: "litmuschaos/ansible-runner:latest" image: "litmuschaos/ansible-runner:latest"
imagePullPolicy: Always imagePullPolicy: Always
args: args:
- -c - -c
- ansible-playbook ./experiments/openebs/openebs-pool-network-delay/openebs_pool_network_delay_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0 - ansible-playbook ./experiments/openebs/openebs-pool-network-loss/openebs_pool_network_loss_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0
command: command:
- /bin/bash - /bin/bash
env: env:
@@ -970,15 +1070,14 @@ spec:
- name: LIB_IMAGE - name: LIB_IMAGE
value: 'gaiaadm/pumba:0.6.5' value: 'gaiaadm/pumba:0.6.5'
# in milliseconds
- name: NETWORK_DELAY
value: '60000'
- name: TC_IMAGE - name: TC_IMAGE
value: 'gaiadocker/iproute2' value: 'gaiadocker/iproute2'
- name: NETWORK_PACKET_LOSS_PERCENTAGE
value: '100' # in percentage
- name: TOTAL_CHAOS_DURATION - name: TOTAL_CHAOS_DURATION
value: '60' # in seconds value: '120' # in seconds
- name: LIVENESS_APP_LABEL - name: LIVENESS_APP_LABEL
value: '' value: ''
@@ -990,108 +1089,9 @@ spec:
value: '' value: ''
labels: labels:
name: openebs-pool-network-delay name: openebs-pool-network-loss
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: latest
---
---
apiVersion: litmuschaos.io/v1alpha1
description:
message: |
Kill the pool container and check if gets scheduled again
kind: ChaosExperiment
metadata:
labels:
litmuschaos.io/name: openebs
name: openebs-pool-container-failure
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: latest
name: openebs-pool-container-failure
spec:
definition:
scope: Cluster
permissions:
- apiGroups:
- ""
- "extensions"
- "apps"
- "batch"
- "litmuschaos.io"
- "openebs.io"
- "storage.k8s.io"
resources:
- "replicasets"
- "events"
- "jobs"
- "pods"
- "pods/log"
- "pods/exec"
- "configmaps"
- "secrets"
- "persistentvolumeclaims"
- "cstorvolumereplicas"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
verbs:
- "create"
- "get"
- "delete"
- "list"
- "patch"
- "update"
image: "litmuschaos/ansible-runner:latest"
imagePullPolicy: Always
args:
- -c
- ansible-playbook ./experiments/openebs/openebs-pool-container-failure/openebs_pool_container_failure_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0
command:
- /bin/bash
env:
- name: ANSIBLE_STDOUT_CALLBACK
value: 'default'
- name: OPENEBS_NS
value: 'openebs'
- name: APP_PVC
value: ''
- name: LIVENESS_APP_LABEL
value: ''
# only pumba supported
# For pumba image use : gaiaadm/pumba:0.6.5
- name: LIB_IMAGE
value: 'gaiaadm/pumba:0.6.5'
- name: LIVENESS_APP_NAMESPACE
value: ''
# provide the chaos interval
- name: CHAOS_INTERVAL
value: '10'
# provide the total chaos duration
- name: TOTAL_CHAOS_DURATION
value: '20'
- name: DATA_PERSISTENCE
value: ''
- name: CHAOS_ITERATIONS
value: '2'
labels:
name: openebs-pool-container-failure
app.kubernetes.io/part-of: litmus app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: latest app.kubernetes.io/version: latest
#configmaps:
#- name: openebs-pool-container-failure
# mountPath: /mnt
--- ---

View File

@@ -1,7 +1,7 @@
apiVersion: litmuschaos.io/v1alpha1 apiVersion: litmuschaos.io/v1alpha1
description: description:
message: | message: |
stops a vm for a certain chaos duration Stops one or more VMs for a certain chaos duration.
kind: ChaosExperiment kind: ChaosExperiment
metadata: metadata:
name: vm-poweroff name: vm-poweroff