-
-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Currently switchboard only allows selecting one Traefik target service for external-dns integration. This works great when there is a single LoadBalancer-type service for Traefik.
I have recently found a use-case where I need to have two LoadBalancer-type services for the same Traefik deployment:
- The default service, exposing traefik's
webandwebsecureentrypoints on a first Load Balancer (AWS NLB); which uses private IPs. - The second service, to expose a new entrypoint (let's call it
websecure2), also pointing to port 443 of a second AWS NLB, which is internet-facing and uses public IPs.
This way I can expose webhooks to the internet, while keeping the rest of my API private. This is particularly useful for pre-production environments that require callbacks from external services. But this feature would also be helpful if there were multiple Traefik instances deployed on the same cluster.
Could there by a way to register more than one target service, and then select the desired one with an annotation on the IngressRoute object, so that the correct IP is used for the generated DNSEndpoint? For backwards compatibility, there could be a way to set the default target.
Let me know what you think!