apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: machines-endpoints
rules:
  - apiGroups: [""]
    resources:
      - services
      - endpoints
    verbs: ["get", "update", "create"]
  - apiGroups: ["discovery.k8s.io"]
    resources:
      - endpointslices
    verbs: ["get", "update", "create"]
