Skip to content
Prev Previous commit
Next Next commit
With default service account curl works again
fixes #39
  • Loading branch information
solsson committed Aug 5, 2017
commit a8ee55bb48a4915b2f119b0f409e7e714d9faf55
26 changes: 26 additions & 0 deletions rbac-namespace-default/events-watcher.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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