Changes for report support and python package (#208)
* Changes for report support and python package * Changes for report support and python package * Changes for report support and python package * changes to port with new module call
This commit is contained in:
@@ -3,7 +3,7 @@ kind: ChartServiceVersion
|
|||||||
metadata:
|
metadata:
|
||||||
createdAt: 2020-02-24T10:28:08Z
|
createdAt: 2020-02-24T10:28:08Z
|
||||||
name: chaostoolkit
|
name: chaostoolkit
|
||||||
version: 0.0.3
|
version: 0.0.4
|
||||||
annotations:
|
annotations:
|
||||||
categories: Kubernetes
|
categories: Kubernetes
|
||||||
chartDescription: Injects chaostoolkit chaos
|
chartDescription: Injects chaostoolkit chaos
|
||||||
|
@@ -35,7 +35,7 @@ spec:
|
|||||||
image: "litmuschaos/chaostoolkit:latest"
|
image: "litmuschaos/chaostoolkit:latest"
|
||||||
args:
|
args:
|
||||||
- -c
|
- -c
|
||||||
- python /app/data/k8_wrapper.py; exit 0
|
- python /app/chaos/chaostest/kubernetes/k8_wrapper.py; exit 0
|
||||||
command:
|
command:
|
||||||
- /bin/bash
|
- /bin/bash
|
||||||
env:
|
env:
|
||||||
@@ -57,6 +57,12 @@ spec:
|
|||||||
- name: PERCENTAGE
|
- name: PERCENTAGE
|
||||||
value: '50'
|
value: '50'
|
||||||
|
|
||||||
|
- name: REPORT
|
||||||
|
value: 'true'
|
||||||
|
|
||||||
|
- name: REPORT_ENDPOINT
|
||||||
|
value: 'none'
|
||||||
|
|
||||||
labels:
|
labels:
|
||||||
name: k8-pod-delete
|
name: k8-pod-delete
|
||||||
|
|
||||||
|
36
charts/chaostoolkit/k8-pod-delete/engine-kiam.yaml
Normal file
36
charts/chaostoolkit/k8-pod-delete/engine-kiam.yaml
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
# chaosengine.yaml
|
||||||
|
apiVersion: litmuschaos.io/v1alpha1
|
||||||
|
kind: ChaosEngine
|
||||||
|
metadata:
|
||||||
|
name: k8-kiam-delete-count
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
#ex. values: ns1:name=percona,ns2:run=nginx
|
||||||
|
appinfo:
|
||||||
|
appns: kube-system
|
||||||
|
# FYI, To see app label, apply kubectl get pods --show-labels
|
||||||
|
#applabel: "app=nginx"
|
||||||
|
applabel: "app=kiam"
|
||||||
|
appkind: deployment
|
||||||
|
jobCleanUpPolicy: retain
|
||||||
|
monitoring: false
|
||||||
|
annotationCheck: 'false'
|
||||||
|
engineState: 'active'
|
||||||
|
chaosServiceAccount: chaos-admin
|
||||||
|
experiments:
|
||||||
|
- name: k8-pod-delete
|
||||||
|
spec:
|
||||||
|
components:
|
||||||
|
env:
|
||||||
|
- name: NAME_SPACE
|
||||||
|
value: kube-system
|
||||||
|
- name: LABEL_NAME
|
||||||
|
value: kiam
|
||||||
|
- name: APP_ENDPOINT
|
||||||
|
value: 'localhost'
|
||||||
|
- name: FILE
|
||||||
|
value: 'pod-app-kill-count.json'
|
||||||
|
- name: REPORT
|
||||||
|
value: 'true'
|
||||||
|
- name: REPORT_ENDPOINT
|
||||||
|
value: 'none'
|
@@ -29,3 +29,8 @@ spec:
|
|||||||
value: 'localhost'
|
value: 'localhost'
|
||||||
- name: FILE
|
- name: FILE
|
||||||
value: 'pod-app-kill-count.json'
|
value: 'pod-app-kill-count.json'
|
||||||
|
- name: REPORT
|
||||||
|
value: 'true'
|
||||||
|
- name: REPORT_ENDPOINT
|
||||||
|
value: 'none'
|
||||||
|
|
||||||
|
@@ -33,7 +33,7 @@ spec:
|
|||||||
image: "litmuschaos/chaostoolkit:latest"
|
image: "litmuschaos/chaostoolkit:latest"
|
||||||
args:
|
args:
|
||||||
- -c
|
- -c
|
||||||
- python /app/data/k8_wrapper.py; exit 0
|
- python /app/chaos/chaostest/kubernetes/k8_wrapper.py; exit 0
|
||||||
command:
|
command:
|
||||||
- /bin/bash
|
- /bin/bash
|
||||||
env:
|
env:
|
||||||
@@ -55,5 +55,11 @@ spec:
|
|||||||
- name: PERCENTAGE
|
- name: PERCENTAGE
|
||||||
value: '50'
|
value: '50'
|
||||||
|
|
||||||
|
- name: REPORT
|
||||||
|
value: 'true'
|
||||||
|
|
||||||
|
- name: REPORT_ENDPOINT
|
||||||
|
value: 'none'
|
||||||
|
|
||||||
labels:
|
labels:
|
||||||
name: k8-pod-delete
|
name: k8-pod-delete
|
||||||
|
@@ -2,7 +2,7 @@ apiVersion: litmuchaos.io/v1alpha1
|
|||||||
kind: ChartServiceVersion
|
kind: ChartServiceVersion
|
||||||
metadata:
|
metadata:
|
||||||
name: k8-pod-delete
|
name: k8-pod-delete
|
||||||
version: 0.0.3
|
version: 0.0.4
|
||||||
annotations:
|
annotations:
|
||||||
categories: Kubernetes
|
categories: Kubernetes
|
||||||
vendor: CNCF
|
vendor: CNCF
|
||||||
|
35
charts/chaostoolkit/k8-pod-delete/rbac-admin.yaml
Normal file
35
charts/chaostoolkit/k8-pod-delete/rbac-admin.yaml
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: chaos-admin
|
||||||
|
labels:
|
||||||
|
name: chaos-admin
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||||
|
kind: ClusterRole
|
||||||
|
metadata:
|
||||||
|
name: chaos-admin
|
||||||
|
labels:
|
||||||
|
name: chaos-admin
|
||||||
|
rules:
|
||||||
|
- apiGroups: ["","apps","batch","extensions","litmuschaos.io","openebs.io","storage.k8s.io"]
|
||||||
|
resources: ["chaosengines","chaosexperiments","chaosresults","configmaps","cstorpools","cstorvolumereplicas","events","jobs","persistentvolumeclaims","persistentvolumes","pods","pods/exec","pods/log","secrets","storageclasses","chaosengines","chaosexperiments","chaosresults","configmaps","cstorpools","cstorvolumereplicas","daemonsets","deployments","events","jobs","persistentvolumeclaims","persistentvolumes","pods","pods/eviction","pods/exec","pods/log","replicasets","secrets","services","statefulsets","storageclasses"]
|
||||||
|
verbs: ["create","delete","get","list","patch","update"]
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["nodes"]
|
||||||
|
verbs: ["get","list","patch"]
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
metadata:
|
||||||
|
name: chaos-admin
|
||||||
|
labels:
|
||||||
|
name: chaos-admin
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: chaos-admin
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: chaos-admin
|
||||||
|
namespace: msaasfmea4-perf-infra-usw2-ppd-pfi
|
Reference in New Issue
Block a user