Skip to content

How to configure load balancing when proxying to a downstream kubernetes service? #2251

Discussion options

You must be logged in to vote

If you have DNS set up in a way that would return all instances, you could use the newly added IDestinationResolver (available in daily builds) to "explode" the list of destinations to all destinations returned by DNS for that host.

reverseProxyBuilder.AddDnsDestinationResolver();

But there is nothing currently built-in to resolve all destinations from the k8s API ahead of time.
An implementation for that would likely be similar to the built-in DNS resolver, just talking to the API instead.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by karelz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment