chore(docs): refactor the charts, rbac & engine manifests (#324)

Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io>
This commit is contained in:
Shubham Chaudhary
2020-09-14 20:15:04 +05:30
committed by GitHub
parent 1e86227a6f
commit 983ae3e35e
13 changed files with 27 additions and 26 deletions

View File

@@ -62,7 +62,7 @@ spec:
# provide cassandra port
# default port: 9042
- name: CASSANDRA_PORT
value: ''
value: '9042'
# provide liveness deployement port
# default port: 8088, It only supports 8088 port
@@ -92,10 +92,6 @@ spec:
- name: RAMP_TIME
value: ''
# provide the kill count
- name: KILL_COUNT
value: ''
- name: FORCE
value: ''

View File

@@ -17,7 +17,7 @@ metadata:
rules:
- apiGroups: ["","litmuschaos.io","batch","apps"]
resources: ["pods","deployments","statefulsets","services","pods/log","pods/exec","events","jobs","chaosengines","chaosexperiments","chaosresults"]
verbs: ["create","list","get","patch","update","delete"]
verbs: ["create","list","get","patch","update","delete", "deletecollection"]
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: RoleBinding

View File

@@ -35,10 +35,16 @@ spec:
- name: TOTAL_CHAOS_DURATION
value: '20'
# For containerd image use: litmuschaos/container-kill-helper:latest
- name: LIB_IMAGE
value: 'gaiaadm/pumba:0.6.5'
value: 'litmuschaos/go-runner:latest'
# It supports pumba and containerd
- name: LIB
value: 'pumba'
# provide the name of container runtime
# it supports docker, containerd, crio
# default to docker
- name: CONTAINER_RUNTIME
value: 'docker'
# provide the container runtime path for containerd
# applicable only for containerd runtime
- name: CONTAINER_PATH
value: '/run/containerd/containerd.sock'

View File

@@ -23,11 +23,13 @@ spec:
spec:
components:
nodeSelector:
# provide the node labels
kubernetes.io/hostname: 'node02'
env:
# set chaos duration (in sec) as desired
- name: TOTAL_CHAOS_DURATION
value: '90'
# provide the actual name of node under test
- name: APP_NODE
value: 'node-01'

View File

@@ -23,10 +23,12 @@ spec:
spec:
components:
nodeSelector:
# provide the node labels
kubernetes.io/hostname: 'node02'
env:
- name: TOTAL_CHAOS_DURATION
value: '90' # in seconds
# provide the actual name of node under test
- name: APP_NODE
value: 'node-01'

View File

@@ -52,8 +52,6 @@ spec:
- name: RAMP_TIME
value: ''
## ENTER THE NUMBER OF CORES OF CPU FOR CPU HOGGING
## OPTIONAL VALUE IN CASE OF EMPTY VALUE IT WILL TAKE NODE CPU CAPACITY
- name: NODE_CPU_CORE

View File

@@ -23,6 +23,7 @@ spec:
spec:
components:
nodeSelector:
# provide the node labels
kubernetes.io/hostname: 'node02'
env:
# set node name

View File

@@ -49,9 +49,6 @@ spec:
- /bin/bash
env:
- name: LIVENESS_APP_LABEL
value: ''
- name: APP_NODE
value: ''
@@ -67,8 +64,5 @@ spec:
- name: RAMP_TIME
value: ''
- name: LIVENESS_APP_NAMESPACE
value: ''
labels:
name: node-drain

View File

@@ -2,7 +2,7 @@ apiVersion: litmuchaos.io/v1alpha1
kind: ChartServiceVersion
metadata:
createdAt: 2020-09-12T10:28:08Z
name:
name: node-io-stress
version: 0.1.0
annotations:
categories: Kubernetes
@@ -34,12 +34,12 @@ spec:
name: Mayadata
links:
- name: Source Code
url: https://github.com/litmuschaos/litmus-go/tree/master/experiments/generic/
url: https://github.com/litmuschaos/litmus-go/tree/master/experiments/generic/node-io-stress
- name: Documentation
url: https://docs.litmuschaos.io/docs//
url: https://docs.litmuschaos.io/docs/node-io-stress/
- name: Video
url:
icon:
- url: ""
mediatype: ""
chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/generic//experiment.yaml
chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/generic/node-io-stress/experiment.yaml

View File

@@ -23,11 +23,13 @@ spec:
spec:
components:
nodeSelector:
# provide the node labels
kubernetes.io/hostname: 'node02'
env:
# set node name
- name: APP_NODE
value: 'node-01'
# set taint label & effect
# key=value:effect or key:effect
- name: TAINTS

View File

@@ -17,7 +17,7 @@ metadata:
rules:
- apiGroups: ["","litmuschaos.io","batch","apps"]
resources: ["pods","deployments","pods/log","events","jobs","chaosengines","chaosexperiments","chaosresults"]
verbs: ["create","list","get","patch","update","delete"]
verbs: ["create","list","get","patch","update","delete","deletecollection"]
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: RoleBinding

View File

@@ -17,7 +17,7 @@ metadata:
rules:
- apiGroups: ["","litmuschaos.io","batch","apps"]
resources: ["pods","deployments","pods/log","events","jobs","chaosengines","chaosexperiments","chaosresults"]
verbs: ["create","list","get","patch","update","delete"]
verbs: ["create","list","get","patch","update","delete","deletecollection"]
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: RoleBinding