blob: 6194e84592f2a5f0cebdae9b24d5000f41fa6cff (
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
|
# For kubectl get node, required for kafka init container rack awareness
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: events-watcher
rules:
- apiGroups:
- ""
resources:
- events
verbs:
- watch
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: kafka-events-watcher
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: events-watcher
subjects:
- kind: ServiceAccount
name: default
namespace: kafka
|