aboutsummaryrefslogtreecommitdiff
path: root/events-kube/rbac/cluster-events-watcher.yml
blob: c8384b676b21822b44c77e33a7b86e1d00b219fc (plain) (blame)
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
# If events-kube-kafka-* goes crashlooping you probably need this
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
  name: events-watcher
  labels:
    origin: github.com_Yolean_kubernetes-kafka
rules:
- apiGroups:
  - ""
  resources:
  - events
  verbs:
  - watch
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
  name: kafka-events-watcher
  labels:
    origin: github.com_Yolean_kubernetes-kafka
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: events-watcher
subjects:
- kind: ServiceAccount
  name: default
  namespace: kafka