Skip to content

Commit e643e30

Browse files
committed
Adds RBAC policy for curl, default service account
1 parent 166b44f commit e643e30

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# If events-kube-kafka-* goes crashlooping you probably need this
2+
---
3+
kind: ClusterRole
4+
apiVersion: rbac.authorization.k8s.io/v1beta1
5+
metadata:
6+
name: events-watcher
7+
labels:
8+
origin: github.com_Yolean_kubernetes-kafka
9+
rules:
10+
- apiGroups:
11+
- ""
12+
resources:
13+
- events
14+
verbs:
15+
- watch
16+
---
17+
kind: ClusterRoleBinding
18+
apiVersion: rbac.authorization.k8s.io/v1beta1
19+
metadata:
20+
name: kafka-events-watcher
21+
labels:
22+
origin: github.com_Yolean_kubernetes-kafka
23+
roleRef:
24+
apiGroup: rbac.authorization.k8s.io
25+
kind: ClusterRole
26+
name: events-watcher
27+
subjects:
28+
- kind: ServiceAccount
29+
name: default
30+
namespace: kafka

0 commit comments

Comments
 (0)