Ok so today I configured my load balancer on k8s, unfortunately, Traefik refuse to work
I0919 00:22:09.884504 1 trace.go:205] Trace[1694895176]: "Reflector ListAndWatch" name:pkg/mod/k8s.io/client-go@v0.21.0/tools/cache/reflector.go:167 (19-Sep-2021 00:21:39.883) (total time: 30000ms):
Trace[1694895176]: [30.00075684s] [30.00075684s] END
E0919 00:22:09.884568 1 reflector.go:138] pkg/mod/k8s.io/client-go@v0.21.0/tools/cache/reflector.go:167: Failed to watch *v1.Service: failed to list *v1.Service: Get "https://10.233.0.1:443/api/v1/services?limit=500&resourceVersion=0": dial tcp 10.233.0.1:443: i/o timeout
I0919 00:22:10.052066 1 trace.go:205] Trace[656790688]: "Reflector ListAndWatch" name:pkg/mod/k8s.io/client-go@v0.21.0/tools/cache/reflector.go:167 (19-Sep-2021 00:21:40.050) (total time: 30001ms):
Trace[656790688]: [30.001945683s] [30.001945683s] END
These are my configurations
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: traefik-exposed-dashboard
namespace: default
spec:
entryPoints:
- web
routes:
- kind: Rule
match: Host(`x`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))
middlewares:
- name: traefik-exposed-dashboard-basic-auth
namespace: traefik
services:
- kind: TraefikService
name: api@internal
tls:
certResolver: myresolver
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: traefik-exposed-dashboard-basic-auth
namespace: default
spec:
basicAuth:
secret: traefik-exposed-dashboard-basic-auth
---
apiVersion: v1
data:
users: redacted
kind: Secret
metadata:
name: traefik-exposed-dashboard-basic-auth
namespace: default
Both the traefik deployement and the kubernetes service are on the namespace default
Any idea ?