add(node-poweroff): Added node-poweroff experiment (based on node-restart) (#384)

* add(node-poweroff): Added node-poweroff experiment (based on node-restart)

Signed-off-by: Jordi Gil <jgil@redhat.com>

* Update node-poweroff.chartserviceversion.yaml

Co-authored-by: Karthik Satchitanand <karthik.s@mayadata.io>
This commit is contained in:
Jordi Gil
2020-11-29 22:52:17 -05:00
committed by GitHub
parent 12ac9fb80b
commit 7b02259913
4 changed files with 212 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
apiVersion: litmuschaos.io/v1alpha1
kind: ChaosEngine
metadata:
name: nginx-chaos
namespace: default
spec:
# It can be true/false
annotationCheck: 'false'
# It can be active/stop
engineState: 'active'
#ex. values: ns1:name=percona,ns2:run=nginx
auxiliaryAppInfo: ''
appinfo:
appns: 'default'
applabel: 'app=nginx'
appkind: 'deployment'
chaosServiceAccount: node-poweroff-sa
monitoring: false
# It can be delete/retain
jobCleanUpPolicy: 'delete'
experiments:
- name: node-poweroff
spec:
components:
nodeSelector:
# provide the node labels
kubernetes.io/hostname: 'node02'
env:
# ENTER THE TARGET NODE NAME
- name: TARGET_NODE
value: ''
# ENTER THE TARGET NODE IP
- name: TARGET_NODE_IP
value: ''
# ENTER THE USER TO BE USED FOR SSH AUTH
- name: SSH_USER
value: ''