Dynamic NGINX Upstreams from Consul via lua-nginx-module.
Recently I delivered a short talk at DevOps Days Austin contrasting the difference between hacking and engineering utilizing the problem of resolving NGINX upstreams dynamically from Consul. This article presents the technical solution sparing you the rhetoric. Those interested may review the slides from the talk here: Hacking vs Engineering.
REQUIREMENTS
- Must be able to present various service functionality via a single hostname to the user
- Must be able to expand backend service…