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.

31 lines
948 B

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