feat(node-taint): Adding the node taint experiment (#258)

Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io>
This commit is contained in:
Shubham Chaudhary
2020-07-09 14:21:51 +05:30
committed by GitHub
parent 52615cb691
commit b24c6d7631
7 changed files with 193 additions and 2 deletions

View File

@@ -0,0 +1,32 @@
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-taint-sa
monitoring: false
# It can be delete/retain
jobCleanUpPolicy: 'delete'
experiments:
- name: node-taint
spec:
components:
env:
# set node name
- name: APP_NODE
value: 'node-1'
# set taint label & effect
# key=value:effect or key:effect
- name: TAINTS
value: 'node.kubernetes.io/unreachable:NoExecute'