Answer the question
In order to leave comments, you need to log in
Is it possible to implement blue \ green deploy for the balancer on nginx?
Good afternoon.
The question is. Due to the specifics of the project, you often have to reboot nginx after adding an ip address to upstreams. There is such a thing as blue green deploy, how to use it in the code is understandable, but is it possible to apply it to the balancer?
For example:
There are 2 nginx, one on port 8080, one on port 8090, traffic passes through both, if nginx is changed on port 8080, it is restarted, then, in theory, blue-green deployment, while the first nginx is in reboot, the second one works.
So far, I realized that it is possible to fasten iptables redirect, but what if there are some other options?
Thank you.
Answer the question
In order to leave comments, you need to log in
So take a level higher, for example haproxy which will switch when necessary. In general, kubernetes most likely has utilities to balance network traffic!
UPD: Or dynamic DNS like your own DDNS on route53 or something like that :)
We take DNS, switch traffic routing to new instances, and when the load leaves the old ones, we delete them. Everything, profit
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question