97 lines
1.9 KiB
YAML
97 lines
1.9 KiB
YAML
|
{{- if and .Values.rbac.enabled (not .Values.rbac.namespaced) -}}
|
||
|
kind: ClusterRole
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
metadata:
|
||
|
name: {{ template "traefik.fullname" . }}
|
||
|
labels:
|
||
|
app.kubernetes.io/name: {{ template "traefik.name" . }}
|
||
|
helm.sh/chart: {{ template "traefik.chart" . }}
|
||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||
|
rules:
|
||
|
- apiGroups:
|
||
|
- ""
|
||
|
resources:
|
||
|
- services
|
||
|
- endpoints
|
||
|
- secrets
|
||
|
verbs:
|
||
|
- get
|
||
|
- list
|
||
|
- watch
|
||
|
- apiGroups:
|
||
|
- extensions
|
||
|
- networking.k8s.io
|
||
|
resources:
|
||
|
- ingresses
|
||
|
- ingressclasses
|
||
|
verbs:
|
||
|
- get
|
||
|
- list
|
||
|
- watch
|
||
|
- apiGroups:
|
||
|
- extensions
|
||
|
- networking.k8s.io
|
||
|
resources:
|
||
|
- ingresses/status
|
||
|
verbs:
|
||
|
- update
|
||
|
- apiGroups:
|
||
|
- traefik.containo.us
|
||
|
resources:
|
||
|
- ingressroutes
|
||
|
- ingressroutetcps
|
||
|
- ingressrouteudps
|
||
|
- middlewares
|
||
|
- middlewaretcps
|
||
|
- tlsoptions
|
||
|
- tlsstores
|
||
|
- traefikservices
|
||
|
- serverstransports
|
||
|
verbs:
|
||
|
- get
|
||
|
- list
|
||
|
- watch
|
||
|
{{- if .Values.podSecurityPolicy.enabled }}
|
||
|
- apiGroups:
|
||
|
- policy
|
||
|
resourceNames:
|
||
|
- {{ template "traefik.fullname" . }}
|
||
|
resources:
|
||
|
- podsecuritypolicies
|
||
|
verbs:
|
||
|
- use
|
||
|
{{- end -}}
|
||
|
{{- if .Values.experimental.kubernetesGateway.enabled }}
|
||
|
- apiGroups:
|
||
|
- ""
|
||
|
resources:
|
||
|
- namespaces
|
||
|
verbs:
|
||
|
- list
|
||
|
- watch
|
||
|
- apiGroups:
|
||
|
- gateway.networking.k8s.io
|
||
|
resources:
|
||
|
- gatewayclasses
|
||
|
- gateways
|
||
|
- httproutes
|
||
|
- tcproutes
|
||
|
- tlsroutes
|
||
|
verbs:
|
||
|
- get
|
||
|
- list
|
||
|
- watch
|
||
|
- apiGroups:
|
||
|
- gateway.networking.k8s.io
|
||
|
resources:
|
||
|
- gatewayclasses/status
|
||
|
- gateways/status
|
||
|
- httproutes/status
|
||
|
- tcproutes/status
|
||
|
- tlsroutes/status
|
||
|
verbs:
|
||
|
- update
|
||
|
{{- end -}}
|
||
|
{{- end -}}
|