leader_election_role.yaml 729 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # permissions to do leader election.
  2. apiVersion: rbac.authorization.k8s.io/v1
  3. kind: Role
  4. metadata:
  5. labels:
  6. app.kubernetes.io/name: role
  7. app.kubernetes.io/instance: leader-election-role
  8. app.kubernetes.io/component: rbac
  9. app.kubernetes.io/created-by: nodb
  10. app.kubernetes.io/part-of: nodb
  11. app.kubernetes.io/managed-by: kustomize
  12. name: leader-election-role
  13. rules:
  14. - apiGroups:
  15. - ""
  16. resources:
  17. - configmaps
  18. verbs:
  19. - get
  20. - list
  21. - watch
  22. - create
  23. - update
  24. - patch
  25. - delete
  26. - apiGroups:
  27. - coordination.k8s.io
  28. resources:
  29. - leases
  30. verbs:
  31. - get
  32. - list
  33. - watch
  34. - create
  35. - update
  36. - patch
  37. - delete
  38. - apiGroups:
  39. - ""
  40. resources:
  41. - events
  42. verbs:
  43. - create
  44. - patch