Helllo,
I have installed Traefik 2.10, Traefik CRDs, and API Gateways 0.6.2 CRDs and I have a bunch of authorization issues like this :
E0425 07:43:06.700629 1 reflector.go:140] k8s.io/client-go@v0.26.3/tools/cache/reflector.go:169: Failed to watch *v1alpha1.Middleware: failed to list *v1alpha1.Middleware: middlewares.traefik.io is forbidden: User "system:serviceaccount:traefik:traefik-controller" cannot list resource "middlewares" in API group "traefik.io" at the cluster scope
But if I run
kubectl auth can-i list middlewares --as=system:serviceaccount:traefik:traefik-controller
yes
If I take from the rbac from the doc :
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: traefik-ingress-controller
rules:
- apiGroups:
- traefik.containo.us
resources:
- middlewares
- middlewaretcps
- ingressroutes
- traefikservices
- ingressroutetcps
- ingressrouteudps
- tlsoptions
- tlsstores
- serverstransports
verbs:
- get
- list
- watch
The error shows this : cannot list resource "middlewares" in API group "traefik.io"
Is there something missing in the ClusterRole for API group traefik.io ? Is traefik.containo.us still a valid API ?