Skip to content

Commit

Permalink
753654842: version upgraded for chaos-charts
Browse files Browse the repository at this point in the history
  • Loading branch information
litmusbot committed Apr 15, 2021
1 parent cf8982e commit 6c7ac2d
Show file tree
Hide file tree
Showing 3 changed files with 498 additions and 511 deletions.
113 changes: 2 additions & 111 deletions charts/generic/experiments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ spec:
- "patch"
- "update"
- "delete"
image: "litmuschaos/ansible-runner:latest"
image: "litmuschaos/ansible-runner:1.13.3"
imagePullPolicy: Always
args:
- -c
Expand Down Expand Up @@ -2071,115 +2071,6 @@ spec:
- name: id-rsa
mountPath: /mnt/

---
apiVersion: litmuschaos.io/v1alpha1
description:
message: |
injects dns failure in target pod container
kind: ChaosExperiment
metadata:
name: pod-dns-chaos
labels:
name: pod-dns-chaos
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: 1.13.3
spec:
definition:
scope: Namespaced
permissions:
- apiGroups:
- ""
- "batch"
- "apps"
- "apps.openshift.io"
- "argoproj.io"
- "litmuschaos.io"
resources:
- "jobs"
- "pods"
- "pods/log"
- "replicationcontrollers"
- "deployments"
- "statefulsets"
- "daemonsets"
- "replicasets"
- "deploymentconfigs"
- "rollouts"
- "pods/exec"
- "events"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
verbs:
- "create"
- "list"
- "get"
- "patch"
- "update"
- "delete"
- "deletecollection"
image: "litmuschaos/go-runner:1.13.3"
args:
- -c
- ./experiments -name pod-dns-chaos
command:
- /bin/bash
env:

- name: TARGET_CONTAINER
value: ''

# provide lib image
- name: LIB_IMAGE
value: 'litmuschaos/go-runner:1.13.3'

- name: TOTAL_CHAOS_DURATION
value: '60' # in seconds

# Time period to wait before and after injection of chaos in sec
- name: RAMP_TIME
value: ''

## percentage of total pods to target
- name: PODS_AFFECTED_PERC
value: ''

- name: TARGET_PODS
value: ''

# provide the name of container runtime, it supports docker, containerd, crio
- name: CONTAINER_RUNTIME
value: 'docker'

# provide the socket file path
- name: SOCKET_PATH
value: '/var/run/docker.sock'

## it defines the sequence of chaos execution for multiple target pods
## supported values: serial, parallel
- name: SEQUENCE
value: 'parallel'

# list of the target hostnames or kewywords eg. '["litmuschaos","chaosnative.io"]' . If empty all hostnames are targets
- name: TARGET_HOSTNAMES
value: ''

# can be either exact or substring, determines whether the dns query has to match exactly with one of the targets or can have any of the targets as substring
- name: MATCH_SCHEME
value: 'exact'

# currently only error chaos is supported
- name: CHAOS_TYPE
value: 'error'

labels:
experiment: pod-dns-chaos
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: 1.13.3


---
apiVersion: litmuschaos.io/v1alpha1
description:
Expand Down Expand Up @@ -2366,4 +2257,4 @@ spec:
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: 1.13.3

---
---
106 changes: 101 additions & 5 deletions charts/kube-aws/experiments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ description:
Detaching an ebs volume from ec2 instance.
kind: ChaosExperiment
metadata:
name: ec2-terminate
name: ec2-terminate-by-tag
labels:
name: ec2-terminate
name: ec2-terminate-by-tag
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: 1.13.3
Expand Down Expand Up @@ -39,12 +39,103 @@ spec:
imagePullPolicy: Always
args:
- -c
- ./experiments -name ec2-terminate
- ./experiments -name ec2-terminate-by-tag
command:
- /bin/bash
env:
- name: TOTAL_CHAOS_DURATION
value: '60'
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'

- name: REGION
value: ''

# Target the percentage of instance filtered from tag
- name: INSTANCE_AFFECTED_PERC
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-tag
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: 1.13.3
secrets:
- name: cloud-secret
mountPath: /tmp/

---
apiVersion: litmuschaos.io/v1alpha1
description:
message: |
Detaching an ebs volume from ec2 instance.
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: 1.13.3
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:1.13.3"
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
Expand All @@ -54,12 +145,17 @@ spec:
- name: MANAGED_NODEGROUP
value: 'disable'

# Instance ID of the target ec2 instance
# Multiple IDs can also be provided as comma seperated 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'
Expand All @@ -70,7 +166,7 @@ spec:
value: 'litmus'

labels:
name: ec2-terminate
name: ec2-terminate-by-id
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: 1.13.3
Expand Down
Loading

0 comments on commit 6c7ac2d

Please sign in to comment.