2018-02-13 01:08:44 +00:00
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
|
|
kind: Role
|
|
|
|
metadata:
|
|
|
|
name: ingress-nginx
|
|
|
|
namespace: {{ ingress_nginx_namespace }}
|
|
|
|
rules:
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["configmaps", "pods", "secrets", "namespaces"]
|
|
|
|
verbs: ["get"]
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["configmaps"]
|
|
|
|
# Defaults to "<election-id>-<ingress-class>"
|
|
|
|
# Here: "<ingress-controller-leader>-<nginx>"
|
|
|
|
# This has to be adapted if you change either parameter
|
|
|
|
# when launching the nginx-ingress-controller.
|
|
|
|
resourceNames: ["ingress-controller-leader-nginx"]
|
|
|
|
verbs: ["get", "update"]
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["configmaps"]
|
|
|
|
verbs: ["create"]
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["endpoints"]
|
|
|
|
verbs: ["get"]
|
2018-08-22 16:16:13 +00:00
|
|
|
- apiGroups:
|
|
|
|
- policy
|
|
|
|
resourceNames:
|
|
|
|
- ingress-nginx
|
|
|
|
resources:
|
|
|
|
- podsecuritypolicies
|
|
|
|
verbs:
|
|
|
|
- use
|