Files
litmus-hub/charts/generic/pod-autoscaler/experiment.yaml
Shubham Chaudhary 6ced128ee5 chore(permissions): sync the experiment and rbac permissions (#406)
* chore(permissions): sync the experiment and rbac permissions

Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io>

* Add "statefulsets" in pod autoscaler permissions

Signed-off-by: udit <udit.gaurav@mayadata.io>

Co-authored-by: udit <udit.gaurav@mayadata.io>
2021-01-04 14:26:45 +05:30

81 lines
1.8 KiB
YAML

apiVersion: litmuschaos.io/v1alpha1
description:
message: |
Scale the application replicas and test the node autoscaling on cluster
kind: ChaosExperiment
metadata:
name: pod-autoscaler
labels:
name: pod-autoscaler
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: latest
spec:
definition:
scope: Cluster
permissions:
- apiGroups:
- ""
- "batch"
- "apps"
- "litmuschaos.io"
resources:
- "jobs"
- "pods"
- "pods/log"
- "pods/exec"
- "deployments"
- "statefulsets"
- "events"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
verbs:
- "create"
- "list"
- "get"
- "patch"
- "update"
- "delete"
- "deletecollection"
- apiGroups:
- ""
resources:
- "nodes"
verbs:
- "get"
- "list"
- "create"
- "patch"
- "update"
image: "litmuschaos/go-runner:latest"
imagePullPolicy: Always
args:
- -c
- ./experiments -name pod-autoscaler
command:
- /bin/bash
env:
- name: TOTAL_CHAOS_DURATION
value: '60'
# Period to wait before and after injection of chaos in sec
- name: RAMP_TIME
value: ''
# Number of replicas to scale
- name: REPLICA_COUNT
value: '5'
# PROVIDE THE LIB HERE
# ONLY LITMUS SUPPORTED
- name: LIB
value: 'litmus'
labels:
name: pod-autoscaler
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: latest