aboutsummaryrefslogtreecommitdiff
path: root/rbac-namespace-default/events-watcher.yml
blob: 3b2e76d862d197ea4f4dd77887f2473161fb3167 (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
# For kubectl get node, required for kafka init container rack awareness
---
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