(refactor): Modify the image of engine of all experiments

Signed-off-by: Udit Gaurav <uditgaurav@gmail.com>
This commit is contained in:
Udit Gaurav
2020-02-12 17:03:14 +05:30
parent 075c0af1eb
commit 20618e836a
20 changed files with 39 additions and 58 deletions

View File

@@ -10,12 +10,11 @@ spec:
appkind: 'deployment'
# It can be true/false
annotationCheck: 'false'
# It can be active/stop
engineState: 'active'
#ex. values: ns1:name=percona,ns2:run=nginx
auxiliaryAppInfo: ''
components:
runner:
image: 'litmuschaos/chaos-executor:1.0.0'
type: 'go'
chaosServiceAccount: coredns-sa
monitoring: false
# It can be delete/retain

View File

@@ -0,0 +1,33 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: coredns-sa
namespace: kube-system
labels:
name: coredns-sa
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: coredns-sa
labels:
name: coredns-sa
rules:
- apiGroups: ["","litmuschaos.io","batch"]
resources: ["services", "pods","jobs","chaosengines","chaosexperiments","chaosresults"]
verbs: ["create","list","get","patch","update","delete"]
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: coredns-sa
labels:
name: coredns-sa
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: coredns-sa
subjects:
- kind: ServiceAccount
name: coredns-sa
namespace: kube-system