-
Notifications
You must be signed in to change notification settings - Fork 2
/
elmo-chaos-rbac.yaml
54 lines (54 loc) · 1.33 KB
/
elmo-chaos-rbac.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: elmo-attack-sa
namespace: elmo
labels:
name: elmo-attack-sa
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: elmo-attack-sa
namespace: elmo
labels:
name: elmo-attack-sa
rules:
- apiGroups: [""]
resources: ["pods","events"]
verbs: ["create","list","get","patch","update","delete","deletecollection"]
- apiGroups: [""]
resources: ["pods/exec","pods/log","replicationcontrollers"]
verbs: ["create","list","get"]
- apiGroups: ["batch"]
resources: ["jobs"]
verbs: ["create","list","get","delete","deletecollection"]
- apiGroups: ["apps"]
resources: ["deployments","statefulsets","daemonsets","replicasets"]
verbs: ["list","get"]
- apiGroups: ["apps.openshift.io"]
resources: ["deploymentconfigs"]
verbs: ["list","get"]
- apiGroups: ["argoproj.io"]
resources: ["rollouts"]
verbs: ["list","get"]
- apiGroups: ["litmuschaos.io"]
resources: ["chaosengines","chaosexperiments","chaosresults"]
verbs: ["create","list","get","patch","update"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: elmo-attack-sa
namespace: elmo
labels:
name: elmo-attack-sa
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: elmo-attack-sa
subjects:
- kind: ServiceAccount
name: elmo-attack-sa
namespace: elmo