Nginx as load balancer

Just starting off with Rancher so pardon this newb question.

I already have a stack that uses Nginx as the load balancer. Rather than using the builtin load balancer would it be an issue continuing with nginx as a LB. What I mean is can I just not use the built in LB and instead configure nginx as another service and just use it? What are the gotchas to watch out for?

Thanks

You can do that, the main thing is by default nginx will resolve names only once on startup, so if you use service discovery DNS names as targets you need to configure a resolver (169.254.169.250) and timeout and use directives that support it. Otherwise you will end up with a stale list of IPs and sending traffic to bad containers.