aboutsummaryrefslogblamecommitdiff
path: root/rbac-namespace-default/events-watcher.yml
blob: 6194e84592f2a5f0cebdae9b24d5000f41fa6cff (plain) (tree)

























                                                                        
# 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