Skip to content

Commit a8ee55b

Browse files
committed
With default service account curl works again
fixes #39
1 parent 05107fd commit a8ee55b

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# For kubectl get node, required for kafka init container rack awareness
2+
---
3+
kind: ClusterRole
4+
apiVersion: rbac.authorization.k8s.io/v1beta1
5+
metadata:
6+
name: events-watcher
7+
rules:
8+
- apiGroups:
9+
- ""
10+
resources:
11+
- events
12+
verbs:
13+
- watch
14+
---
15+
kind: ClusterRoleBinding
16+
apiVersion: rbac.authorization.k8s.io/v1beta1
17+
metadata:
18+
name: kafka-events-watcher
19+
roleRef:
20+
apiGroup: rbac.authorization.k8s.io
21+
kind: ClusterRole
22+
name: events-watcher
23+
subjects:
24+
- kind: ServiceAccount
25+
name: default
26+
namespace: kafka

0 commit comments

Comments
 (0)