kube-anesthesia/config/rbac/leader_election_role.yaml
Frank Villaro-Dixon b604483aef wip
Signed-off-by: Frank Villaro-Dixon <frank.villarodixon@merkle.com>
2023-06-01 23:35:03 +02:00

44 lines
769 B
YAML

# permissions to do leader election.
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
labels:
app.kubernetes.io/name: role
app.kubernetes.io/instance: leader-election-role
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: kube-anesthesia-operator
app.kubernetes.io/part-of: kube-anesthesia-operator
app.kubernetes.io/managed-by: kustomize
name: leader-election-role
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch