-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrbac.yaml
56 lines (55 loc) · 1.15 KB
/
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
55
56
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
app.kubernetes.io/name: cloudwatch-alerts-operator
name: cloudwatch-alerts-operator
rules:
- apiGroups:
- ""
- crd.k8s.sas.io
- apiextensions.k8s.io
- extensions
- events.k8s.io
- events
resources:
- customresourcedefinitions
- clusterkopfpeerings
- cwalerts
- events
# - ingresses
# - ingresses/status
# - services
# - pods/status
verbs:
- create
- get
- list
- update
- watch
- patch
- delete
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
app.kubernetes.io/name: cloudwatch-alerts-operator
name: cloudwatch-alerts-operator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cloudwatch-alerts-operator
subjects:
- kind: ServiceAccount
name: cloudwatch-alerts-operator
namespace: kube-system
---
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
app.kubernetes.io/name: cloudwatch-alerts-operator
name: cloudwatch-alerts-operator
namespace: kube-system