(feat): add drain-node chart (#75)
Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io> Co-authored-by: Karthik Satchitanand <karthik.s@mayadata.io>
This commit is contained in:
committed by
Karthik Satchitanand
parent
600929f0ba
commit
512d17fb2b
52
charts/generic/drain-node/experiment.yaml
Normal file
52
charts/generic/drain-node/experiment.yaml
Normal file
@@ -0,0 +1,52 @@
|
||||
---
|
||||
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: LIVENESS_APP_NAMESPACE
|
||||
value: ''
|
||||
|
||||
labels:
|
||||
name: drain-node
|
@@ -0,0 +1,37 @@
|
||||
apiVersion: litmuchaos.io/v1alpha1
|
||||
kind: ChartServiceVersion
|
||||
metadata:
|
||||
name: drain-node
|
||||
version: 0.1.0
|
||||
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
|
||||
maturity: alpha
|
||||
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
|
||||
icon:
|
||||
- url: ""
|
||||
mediatype: ""
|
||||
chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/generic/drain-node/experiment.yaml
|
@@ -16,10 +16,14 @@ spec:
|
||||
- pod-delete
|
||||
- container-kill
|
||||
- pod-network-latency
|
||||
- drain-node
|
||||
|
||||
keywords:
|
||||
- Kubernetes
|
||||
- Container
|
||||
- node
|
||||
- pod
|
||||
- disk
|
||||
maintainers:
|
||||
- name: ksatchit
|
||||
email: karthik.s@mayadata.io
|
||||
|
@@ -21,3 +21,6 @@ experiments:
|
||||
- name: disk-loss
|
||||
CSV: disk-loss.chartserviceversion.yaml
|
||||
desc: "disk-loss"
|
||||
- name: drain-node
|
||||
CSV: drain-node.chartserviceversion.yaml
|
||||
desc: "drain-node"
|
||||
|
BIN
charts/generic/icons/drain-node.png
Normal file
BIN
charts/generic/icons/drain-node.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.5 KiB |
Reference in New Issue
Block a user