Skip to content

How would you set route following two sets of similar routes to different machines? #2000

Answered by raman-m
sweetodev asked this question in Q&A
Discussion options

You must be logged in to vote

I don't understand, why did you split routes to 2 files?
Why not to have the same config file aka ocelot.json with merged routes in one file?

How would you set re-reoute following two set of similar routes to different machines. Please advise.

1

If you manage dedicated web servers manually, then copy the same config to all machines!

2

Prepare Docker image with Ocelot app having the config inside and your configuration will be distributed across K8s as Docker containers. All of them will have the same ocelot.json file for all containers.
Just update Docker image each time and start deployment of containers with new version.

3

We have Administration feature for more complicated scenarios …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by raman-m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Configuration Ocelot feature: Configuration Routing Ocelot feature: Routing
2 participants
Converted from issue

This discussion was converted from issue #1038 on March 17, 2024 15:59.