(refactor): Rename drain_node experiment to node_drain (#107)

Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io>
This commit is contained in:
Shubham Chaudhary
2020-01-13 14:25:41 +05:30
committed by Karthik Satchitanand
parent 26157f3272
commit 64e0a742e8
5 changed files with 10 additions and 10 deletions

View File

@@ -0,0 +1,64 @@
---
apiVersion: litmuschaos.io/v1alpha1
description:
message: |
Drain the node where application pod is scheduled
kind: ChaosExperiment
metadata:
name: node-drain
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/node_drain/node_drain_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: node-drain

View File

@@ -0,0 +1,42 @@
apiVersion: litmuchaos.io/v1alpha1
kind: ChartServiceVersion
metadata:
name: node-drain
version: 0.1.4
annotations:
categories: Kubernetes
vendor: Mayadata
repository: https://github.com/litmuschaos/chaos-charts
support: https://app.slack.com/client/T09NY5SBT/CNXNB0ZTN
spec:
displayName: node-drain
categoryDescription: >
Drain the node where application pod is scheduled
keywords:
- Kubernetes
- Node
- State
platforms:
- GKE
- AWS(KOPS)
- Packet(Kubeadm)
- Konvoy
maturity: alpha
chaosType: infra
maintainers:
- name: shubham chaudhary
email: shubham.chaudhary@mayadata.io
minKubeVersion: 1.12.0
provider:
name: Mayadata
links:
- name: Kubernetes Website
url: https://kubernetes.io
- name: Source Code
url: https://github.com/litmuschaos/litmus/tree/master/experiments/generic
- name: Docs
url: https://docs.litmuschaos.io/docs/node-drain/
icon:
- url: ""
mediatype: ""
chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/generic/node-drain/experiment.yaml