I am using Chaos Chart version 3.1.0 on AKS. The installation and setup verifications are fine as the the below document:
Getting Started with Litmus
But when I am running the following experiment:
apiVersion: litmuschaos.io/v1alpha1
kind: ChaosEngine
metadata:
name: nginx-chaos
namespace: nginx
spec:
appinfo:
appns: 'nginx'
applabel: 'app=nginx'
appkind: 'deployment'
# It can be true/false
#annotationCheck: 'false'
# It can be active/stop
engineState: 'active'
#ex. values: ns1:name=percona,ns2:run=nginx
auxiliaryAppInfo: ''
chaosServiceAccount: pod-delete-sa
# It can be delete/retain
jobCleanUpPolicy: 'retain'
experiments:
- name: pod-delete
spec:
components:
env:
# set chaos duration (in sec) as desired
- name: TOTAL_CHAOS_DURATION
value: '30'
# set chaos interval (in sec) as desired
- name: CHAOS_INTERVAL
value: '10'
# pod failures without '--force' & default terminationGracePeriodSeconds
- name: FORCE
value: 'false'
## percentage of total pods to target
- name: PODS_AFFECTED_PERC
value: ''
I am using Chaos Chart version 3.1.0 on AKS. The installation and setup verifications are fine as the the below document: Getting Started with Litmus
But when I am running the following experiment:
The respective RBAC:
Always the test is failing with the error:
Fail Step: [chaos]: Failed inside the chaoslib, err: please provide one of the appLabel or TARGET_PODS