AWS-AZ - Adding experiment charts for aws az (#542)
Signed-off-by: oumkale <oumk@jfrog.com>
This commit is contained in:
committed by
GitHub
parent
e52323b659
commit
fc95d63abb
@@ -2813,7 +2813,6 @@ spec:
|
||||
# Period to wait before and after injection of chaos in sec
|
||||
- name: RAMP_TIME
|
||||
value: ''
|
||||
|
||||
labels:
|
||||
name: node-drain
|
||||
app.kubernetes.io/part-of: litmus
|
||||
|
35
charts/kube-aws/aws-az-chaos/aws-az-chaos.chartserviceversion.yaml
Executable file
35
charts/kube-aws/aws-az-chaos/aws-az-chaos.chartserviceversion.yaml
Executable file
@@ -0,0 +1,35 @@
|
||||
apiVersion: litmuchaos.io/v1alpha1
|
||||
kind: ChartServiceVersion
|
||||
metadata:
|
||||
name: aws-az-chaos
|
||||
version: 0.1.0
|
||||
annotations:
|
||||
categories: Kubernetes
|
||||
vendor: CNCF
|
||||
support: https://slack.kubernetes.io/
|
||||
spec:
|
||||
displayName: aws-az-chaos
|
||||
categoryDescription: >
|
||||
Execute aws-az chaos to detach the target zones from the load balancer
|
||||
keywords:
|
||||
- "zone"
|
||||
- "load-balancer"
|
||||
- "aws"
|
||||
platforms:
|
||||
- "AWS"
|
||||
maturity: alpha
|
||||
maintainers:
|
||||
- name: oumkale
|
||||
email: imkaleoum@gmail.com
|
||||
labels:
|
||||
app.kubernetes.io/component: chartserviceversion
|
||||
app.kubernetes.io/version: latest
|
||||
links:
|
||||
- name: Source Code
|
||||
url: https://github.com/litmuschaos/litmus-python/tree/master/experiments/aws_az
|
||||
- name: Documentation
|
||||
url: https://litmuschaos.github.io/litmus/experiments/categories/aws/aws-az-chaos/
|
||||
icon:
|
||||
- url:
|
||||
mediatype: ""
|
||||
chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/kube-aws/aws-az-chaos/experiment.yaml
|
27
charts/kube-aws/aws-az-chaos/engine.yaml
Executable file
27
charts/kube-aws/aws-az-chaos/engine.yaml
Executable file
@@ -0,0 +1,27 @@
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
kind: ChaosEngine
|
||||
metadata:
|
||||
name: aws-az-chaos
|
||||
spec:
|
||||
# It can be active/stop
|
||||
engineState: 'active'
|
||||
chaosServiceAccount: aws-az-chaos-sa
|
||||
experiments:
|
||||
- name: aws-az-chaos
|
||||
spec:
|
||||
components:
|
||||
env:
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: '30'
|
||||
- name: CHAOS_INTERVAL
|
||||
value: '30'
|
||||
#LOAD_BALANCER_NAME name of the load balancer
|
||||
- name: LOAD_BALANCER_NAME
|
||||
value: ""
|
||||
#LOAD_BALANCER_ZONES can be multiple, provide it by comma separated
|
||||
- name: LOAD_BALANCER_ZONES
|
||||
value: ""
|
||||
- name: LOAD_BALANCERNAME_ARN
|
||||
value: "na"
|
||||
- name: AWS_SHARED_CREDENTIALS_FILE
|
||||
value: "/tmp/cloud_config.yml"
|
76
charts/kube-aws/aws-az-chaos/experiment.yaml
Executable file
76
charts/kube-aws/aws-az-chaos/experiment.yaml
Executable file
@@ -0,0 +1,76 @@
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Execute aws-az chaos to detach the target zones from the load balancer
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
name: aws-az-chaos
|
||||
labels:
|
||||
name: aws-az-chaos
|
||||
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"]
|
||||
# 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/py-runner:latest"
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- -c
|
||||
- python3 -u experiment -name aws-az-chaos
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: '30'
|
||||
- name: CHAOS_INTERVAL
|
||||
value: '30'
|
||||
- name: LIB
|
||||
value: 'litmus'
|
||||
- name: LOAD_BALANCER_NAME
|
||||
value: ''
|
||||
- name: LOAD_BALANCER_ZONES
|
||||
value: ''
|
||||
- name: LOAD_BALANCERNAME_ARN
|
||||
value: 'na'
|
||||
- name: AWS_SHARED_CREDENTIALS_FILE
|
||||
value: "/tmp/cloud_config.yml"
|
||||
- name: RAMP_TIME
|
||||
value: ''
|
||||
labels:
|
||||
name: aws-az-chaos
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: experiment-job
|
||||
app.kubernetes.io/version: latest
|
||||
secrets:
|
||||
- name: cloud-secret
|
||||
mountPath: /tmp/
|
60
charts/kube-aws/aws-az-chaos/rbac.yaml
Executable file
60
charts/kube-aws/aws-az-chaos/rbac.yaml
Executable file
@@ -0,0 +1,60 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: aws-az-chaos-sa
|
||||
namespace: default
|
||||
labels:
|
||||
name: aws-az-chaos-sa
|
||||
app.kubernetes.io/part-of: litmus
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||
kind: Role
|
||||
metadata:
|
||||
name: aws-az-chaos-sa
|
||||
namespace: default
|
||||
labels:
|
||||
name: aws-az-chaos-sa
|
||||
app.kubernetes.io/part-of: litmus
|
||||
rules:
|
||||
# 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"]
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: aws-az-chaos-sa
|
||||
namespace: default
|
||||
labels:
|
||||
name: aws-az-chaos-sa
|
||||
app.kubernetes.io/part-of: litmus
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: Role
|
||||
name: aws-az-chaos-sa
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: aws-az-chaos-sa
|
||||
namespace: default
|
@@ -382,3 +382,81 @@ spec:
|
||||
mountPath: /tmp/
|
||||
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Execute aws-az chaos to detach the target zones from the load balancer
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
name: aws-az-chaos
|
||||
labels:
|
||||
name: aws-az-chaos
|
||||
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"]
|
||||
# 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/py-runner:latest"
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- -c
|
||||
- python3 -u experiment -name aws-az-chaos
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: '30'
|
||||
- name: CHAOS_INTERVAL
|
||||
value: '30'
|
||||
- name: LIB
|
||||
value: 'litmus'
|
||||
- name: LOAD_BALANCER_NAME
|
||||
value: ''
|
||||
- name: LOAD_BALANCER_ZONES
|
||||
value: ''
|
||||
- name: LOAD_BALANCERNAME_ARN
|
||||
value: 'na'
|
||||
- name: AWS_SHARED_CREDENTIALS_FILE
|
||||
value: "/tmp/cloud_config.yml"
|
||||
- name: RAMP_TIME
|
||||
value: ''
|
||||
labels:
|
||||
name: aws-az-chaos
|
||||
app.kubernetes.io/part-of: litmus
|
||||
app.kubernetes.io/component: experiment-job
|
||||
app.kubernetes.io/version: latest
|
||||
secrets:
|
||||
- name: cloud-secret
|
||||
mountPath: /tmp/
|
||||
|
||||
---
|
BIN
charts/kube-aws/icons/aws-az-chaos.png
Normal file
BIN
charts/kube-aws/icons/aws-az-chaos.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
@@ -16,20 +16,24 @@ spec:
|
||||
- ec2-terminate-by-tag
|
||||
- ebs-loss-by-id
|
||||
- ebs-loss-by-tag
|
||||
- aws-az-chaos
|
||||
keywords:
|
||||
- AWS
|
||||
- EC2
|
||||
- EBS
|
||||
- AZ
|
||||
maintainers:
|
||||
- name: ksatchit
|
||||
email: karthik.s@mayadata.io
|
||||
provider:
|
||||
name: Intuit
|
||||
- name: oumkale
|
||||
email: imkaleoum@gmail.com
|
||||
links:
|
||||
- name: Kubernetes Website
|
||||
url: https://kubernetes.io
|
||||
- name: Source Code
|
||||
url: https://github.com/litmuschaos/litmus-python/tree/master/chaos-test
|
||||
url: https://github.com/litmuschaos/litmus-go/tree/master/experiments/kube-aws
|
||||
- name: Source Code
|
||||
url: https://github.com/litmuschaos/litmus-python/tree/master/experiments/aws_az
|
||||
- name: Kubernetes Slack
|
||||
url: https://slack.kubernetes.io/
|
||||
icon:
|
||||
|
@@ -12,3 +12,6 @@ experiments:
|
||||
- name: ebs-loss-by-tag
|
||||
CSV: ebs-loss-by-tag.chartserviceversion.yaml
|
||||
desc: "ebs-loss-by-tag"
|
||||
- name: aws-az-chaos
|
||||
CSV: aws-az-chaos.chartserviceversion.yaml
|
||||
desc: "aws-az-chaos"
|
||||
|
Reference in New Issue
Block a user