85 lines
1.9 KiB
YAML
85 lines
1.9 KiB
YAML
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
|
|
version: 0.1.12
|
|
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"
|
|
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: ''
|
|
|
|
# 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
|
|
#configmaps:
|
|
#- name: openebs-target-network-loss
|
|
# mountPath: /mnt
|