2020-12-15 15:40:05 +00:00
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
|
|
|
name: gateway-role
|
|
|
|
rules:
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- services
|
|
|
|
- endpoints
|
|
|
|
- secrets
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- watch
|
|
|
|
- apiGroups:
|
|
|
|
- networking.x-k8s.io
|
|
|
|
resources:
|
|
|
|
- gatewayclasses
|
|
|
|
- gateways
|
|
|
|
- httproutes
|
2021-05-20 09:50:12 +00:00
|
|
|
- tcproutes
|
|
|
|
- tlsroutes
|
2020-12-15 15:40:05 +00:00
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- watch
|
|
|
|
- apiGroups:
|
|
|
|
- networking.x-k8s.io
|
|
|
|
resources:
|
|
|
|
- gatewayclasses/status
|
|
|
|
- gateways/status
|
|
|
|
- httproutes/status
|
2021-05-20 09:50:12 +00:00
|
|
|
- tcproutes/status
|
|
|
|
- tlsroutes/status
|
2020-12-15 15:40:05 +00:00
|
|
|
verbs:
|
|
|
|
- update
|
|
|
|
|
|
|
|
---
|
2021-10-21 07:44:12 +00:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
2020-12-15 15:40:05 +00:00
|
|
|
kind: ClusterRoleBinding
|
|
|
|
metadata:
|
|
|
|
name: gateway-controller
|
|
|
|
|
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: ClusterRole
|
|
|
|
name: gateway-role
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: traefik-controller
|
|
|
|
namespace: default
|