leader_election_role.yaml 476 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # permissions to do leader election.
  2. apiVersion: rbac.authorization.k8s.io/v1
  3. kind: Role
  4. metadata:
  5. name: leader-election-role
  6. rules:
  7. - apiGroups:
  8. - ""
  9. resources:
  10. - configmaps
  11. verbs:
  12. - get
  13. - list
  14. - watch
  15. - create
  16. - update
  17. - patch
  18. - delete
  19. - apiGroups:
  20. - coordination.k8s.io
  21. resources:
  22. - leases
  23. verbs:
  24. - get
  25. - list
  26. - watch
  27. - create
  28. - update
  29. - patch
  30. - delete
  31. - apiGroups:
  32. - ""
  33. resources:
  34. - events
  35. verbs:
  36. - create
  37. - patch