How to Customize Cluster Destination Address Based on Route Path at Runtime #1004
-
Looking for an existing configuration setting or extension point to control cluster destination addresses at run-time. I have a working proof on concept for my use case. Business Use CaseI have a use case that involves spinning up temporary customer specific Azure Docker container instances as part of a workflow. The Docker container instances will be deleted once the workflow task has completed. There will be thousands of these container instances created and deleted every day. Currently, you can only generate self-signed SSL certs for web assets running on an Azure Docker container because it does not support custom domain names. This led me to discover reverse-proxy, and build a working proof of concept to put the Docker instances behind a vanity url with wildcard SSL certificate.
What I found missing in reverse-proxy was the ability to influence how the cluster destination address is customized at runtime based on the route requested. It is not practical for me to pre-configure the routes and clusters due to the ephemeral nature of the Docker container instances, and I could not find an extension point to write my own provider. I was able to make a local patch to the Example Docker Contain Instanceshttp://docker-container-instance-4d89c7a3-950c-4f91-87df-810dbf5e6651.southcentralus.azurecontainer.io:8080/4d89c7a3-950c-4f91-87df-810dbf5e6651/index.html Example Reverse Proxy URLshttps://some.vanity.url.com/4d89c7a3-950c-4f91-87df-810dbf5e6651/index.html appsettings.json
Local Code Patch
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I agree your scenario doesn't make sense for pre-configured routes. Nor would it work with any of the built in features like session affinity, load balancing, health checks, etc. Instead, take a look at https://microsoft.github.io/reverse-proxy/articles/direct-proxying.html. |
Beta Was this translation helpful? Give feedback.
I agree your scenario doesn't make sense for pre-configured routes. Nor would it work with any of the built in features like session affinity, load balancing, health checks, etc. Instead, take a look at https://microsoft.github.io/reverse-proxy/articles/direct-proxying.html.