I want to pass all traffic to local pods, I created a k8s service by the
internalTrafficPolicy: Local flag, and then created a IngressRoute
apiVersion: v1 kind: Service metadata: name: testbin-svr spec: internalTrafficPolicy: Local selector: app: testbin ports: - port: 80 --- apiVersion: traefik.containo.us/v1alpha1 kind: IngressRoute metadata: name: testbin-ingress-route spec: entryPoints: - websecure routes: - match: Host(`mydoman`) kind: Rule services: - name: testbin-svr port: 80 tls: secretName: mydoman.net.wildcard.cert
But something is wrong, traffic still be routed to pods randomly.
After checking the dashboard, I found traefik will not pass traffic to
k8s service cluster ip, traefik gets all pods' ip under my k8s service, and created a traefik servic LoadBalancer by those pod address
So, how to force traefik pss traffic to
k8s service cluster ip ?