2018-02-13 09:08:44 +08:00
|
|
|
---
|
2020-04-15 04:14:04 +08:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
2018-02-13 09:08:44 +08:00
|
|
|
kind: Role
|
|
|
|
metadata:
|
|
|
|
name: ingress-nginx
|
|
|
|
namespace: {{ ingress_nginx_namespace }}
|
2018-09-02 12:19:38 +08:00
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: ingress-nginx
|
|
|
|
app.kubernetes.io/part-of: ingress-nginx
|
2018-02-13 09:08:44 +08:00
|
|
|
rules:
|
|
|
|
- apiGroups: [""]
|
2020-04-22 23:41:52 +08:00
|
|
|
resources: ["namespaces"]
|
2018-02-13 09:08:44 +08:00
|
|
|
verbs: ["get"]
|
2020-04-22 23:41:52 +08:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["configmaps", "pods", "secrets", "endpoints"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["services"]
|
2021-02-09 23:53:13 +08:00
|
|
|
verbs: ["get", "list", "watch"]
|
2023-02-23 17:35:34 +08:00
|
|
|
- apiGroups: ["networking.k8s.io"]
|
|
|
|
resources: ["ingresses"]
|
2020-04-22 23:41:52 +08:00
|
|
|
verbs: ["get", "list", "watch"]
|
2023-02-23 17:35:34 +08:00
|
|
|
- apiGroups: ["networking.k8s.io"]
|
2020-04-22 23:41:52 +08:00
|
|
|
resources: ["ingresses/status"]
|
|
|
|
verbs: ["update"]
|
2020-06-09 17:45:18 +08:00
|
|
|
- apiGroups: ["networking.k8s.io"]
|
|
|
|
resources: ["ingressclasses"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
2022-07-15 09:46:25 +08:00
|
|
|
- apiGroups: ["coordination.k8s.io"]
|
|
|
|
resources: ["leases"]
|
2024-02-12 18:58:45 +08:00
|
|
|
# Defaults to "<election-id>", defined in
|
|
|
|
# ds-ingress-nginx-controller.yml.js
|
|
|
|
# by a command-line argument.
|
|
|
|
#
|
|
|
|
# This is the correct behaviour for ingress-controller
|
|
|
|
# version 1.8.1
|
2023-05-24 19:12:50 +08:00
|
|
|
resourceNames: ["ingress-controller-leader-{{ ingress_nginx_class }}"]
|
2022-07-15 09:46:25 +08:00
|
|
|
verbs: ["get", "update"]
|
2020-04-22 23:41:52 +08:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["events"]
|
|
|
|
verbs: ["create", "patch"]
|
2022-07-15 09:46:25 +08:00
|
|
|
- apiGroups: ["coordination.k8s.io"]
|
|
|
|
resources: ["leases"]
|
|
|
|
verbs: ["create"]
|
2022-10-19 07:53:00 +08:00
|
|
|
- apiGroups: ["discovery.k8s.io"]
|
|
|
|
resources: ["endpointslices"]
|
|
|
|
verbs: ["get", "list", "watch"]
|