55 lines
1.1 KiB
YAML
55 lines
1.1 KiB
YAML
---
|
|
apiVersion: litmuschaos.io/v1alpha1
|
|
description:
|
|
message: |
|
|
Drain the node where application pod is scheduled
|
|
kind: ChaosExperiment
|
|
metadata:
|
|
name: drain-node
|
|
version: 0.1.0
|
|
spec:
|
|
definition:
|
|
permissions:
|
|
apiGroups:
|
|
- ""
|
|
- "extensions"
|
|
- "apps"
|
|
- "batch"
|
|
- "litmuschaos.io"
|
|
resources:
|
|
- "daemonsets"
|
|
- "statefulsets"
|
|
- "deployments"
|
|
- "replicasets"
|
|
- "jobs"
|
|
- "pods"
|
|
- "pods/exec"
|
|
- "chaosengines"
|
|
- "chaosexperiments"
|
|
- "chaosresults"
|
|
verbs:
|
|
- "*"
|
|
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 |