feat(node-taint): Adding the node taint experiment (#258)
Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io>
This commit is contained in:
committed by
GitHub
parent
52615cb691
commit
b24c6d7631
74
charts/generic/node-taint/experiment.yaml
Normal file
74
charts/generic/node-taint/experiment.yaml
Normal file
@@ -0,0 +1,74 @@
|
||||
---
|
||||
apiVersion: litmuschaos.io/v1alpha1
|
||||
description:
|
||||
message: |
|
||||
Taint the node where application pod is scheduled
|
||||
kind: ChaosExperiment
|
||||
metadata:
|
||||
name: node-taint
|
||||
version: 0.1.0
|
||||
spec:
|
||||
definition:
|
||||
scope: Cluster
|
||||
permissions:
|
||||
- apiGroups:
|
||||
- ""
|
||||
- "batch"
|
||||
- "extensions"
|
||||
- "litmuschaos.io"
|
||||
resources:
|
||||
- "jobs"
|
||||
- "pods"
|
||||
- "events"
|
||||
- "pods/log"
|
||||
- "daemonsets"
|
||||
- "pods/eviction"
|
||||
- "chaosengines"
|
||||
- "chaosexperiments"
|
||||
- "chaosresults"
|
||||
verbs:
|
||||
- "create"
|
||||
- "list"
|
||||
- "get"
|
||||
- "patch"
|
||||
- "update"
|
||||
- "delete"
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- "nodes"
|
||||
verbs:
|
||||
- "get"
|
||||
- "list"
|
||||
- "patch"
|
||||
image: "litmuschaos/go-runner:latest"
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- -c
|
||||
- ./experiments/node-taint
|
||||
command:
|
||||
- /bin/bash
|
||||
env:
|
||||
|
||||
- name: APP_NODE
|
||||
value: ''
|
||||
|
||||
- name: TOTAL_CHAOS_DURATION
|
||||
value: '60'
|
||||
|
||||
# Provide the LIB here
|
||||
# Only litmus supported
|
||||
- name: LIB
|
||||
value: 'litmus'
|
||||
|
||||
# Period to wait before and after injection of chaos in sec
|
||||
- name: RAMP_TIME
|
||||
value: ''
|
||||
|
||||
# set taint label & effect
|
||||
# key=value:effect or key:effect
|
||||
- name: TAINTS
|
||||
value: ''
|
||||
|
||||
labels:
|
||||
name: node-taint
|
Reference in New Issue
Block a user