--- apiVersion: litmuschaos.io/v1alpha1 description: message: | Drain the node where application pod is scheduled kind: ChaosExperiment metadata: name: drain-node version: 0.1.2 spec: definition: scope: Cluster permissions: - apiGroups: - "" - "batch" - "extensions" - "litmuschaos.io" resources: - "jobs" - "pods" - "pods/eviction" - "daemonsets" - "chaosengines" - "chaosexperiments" - "chaosresults" verbs: - "create" - "list" - "get" - "patch" - "delete" - apiGroups: - "" resources: - "nodes" verbs : - "get" - "list" - "patch" image: "litmuschaos/ansible-runner:ci" args: - -c - ansible-playbook ./experiments/generic/drain_node/drain_node_ansible_logic.yml -i /etc/ansible/hosts -vv; exit 0 command: - /bin/bash env: - name: ANSIBLE_STDOUT_CALLBACK value: 'default' - name: LIVENESS_APP_LABEL value: '' - name: APP_NODE value: '' - name: TOTAL_CHAOS_DURATION value: '60' - name: LIVENESS_APP_NAMESPACE value: '' labels: name: drain-node