Skip to content

nginx load balancer using confd to dynamically update balancing configuration

Notifications You must be signed in to change notification settings

just-containers/nginx-loadbalancer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 

Repository files navigation

nginx-loadbalancer Docker Repository on Quay.io

docker run -ti -e CONFD_PREFIX=/lb quay.io/justcontainers/nginx-loadbalancer

Backend should follow this rules in order to provide to nginx all required information:

/lb
  /settings
    /.nginx = '{}'
  /hosts
    /lisa.contoso.com
      /listeners
        /ls1 = 
          /.nginx = '{}'
          /value = '{
            "protocol": "http",
            "address": "0.0.0.0:80"
          }'
      /locations
        /loc2
          /.nginx = '{}'
          /value = '{
            "path": "/api/.*",
            "upstream": "up1"
          }'
  /upstreams
    /up1
      /servers
        /e1 = '{ "url": "10.10.10.10:8085" }'
        /e2 = '{ "url": "10.10.10.11:8085" }'
    /up2
      /servers
        /e1 = '{ "url": "10.10.10.10:8086" }'
        /e2 = '{ "url": "10.10.10.11:8086" }'

About

nginx load balancer using confd to dynamically update balancing configuration

Resources

Stars

Watchers

Forks

Packages

No packages published