You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
730 B

  1. ---
  2. apiVersion: rbac.authorization.k8s.io/v1beta1
  3. kind: Role
  4. metadata:
  5. name: ingress-nginx
  6. namespace: {{ ingress_nginx_namespace }}
  7. rules:
  8. - apiGroups: [""]
  9. resources: ["configmaps", "pods", "secrets", "namespaces"]
  10. verbs: ["get"]
  11. - apiGroups: [""]
  12. resources: ["configmaps"]
  13. # Defaults to "<election-id>-<ingress-class>"
  14. # Here: "<ingress-controller-leader>-<nginx>"
  15. # This has to be adapted if you change either parameter
  16. # when launching the nginx-ingress-controller.
  17. resourceNames: ["ingress-controller-leader-nginx"]
  18. verbs: ["get", "update"]
  19. - apiGroups: [""]
  20. resources: ["configmaps"]
  21. verbs: ["create"]
  22. - apiGroups: [""]
  23. resources: ["endpoints"]
  24. verbs: ["get"]