apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: ingress namespace: ingress rules: - apiGroups: - "" resources: - configmaps - pods - secrets - endpoints verbs: - get - apiGroups: - "" resources: - configmaps resourceNames: # Defaults to "-" # Here: "-" # This has to be adapted if you change either parameter # when launching the nginx-ingress-controller. - "ingress-controller-leader-public" verbs: - get - update - apiGroups: - "" resources: - configmaps verbs: - create - apiGroups: - "" resources: - endpoints verbs: - get - apiGroups: - "coordination.k8s.io" resources: - leases verbs: - create - get - update