2019-08-21 10:12:07 +02:00
|
|
|
# permissions to do leader election.
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: Role
|
|
|
|
metadata:
|
|
|
|
name: leader-election-role
|
|
|
|
rules:
|
2022-09-22 07:52:52 -05:00
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- configmaps
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- watch
|
|
|
|
- create
|
|
|
|
- update
|
|
|
|
- patch
|
|
|
|
- delete
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- configmaps/status
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- update
|
|
|
|
- patch
|