summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/juju2/public-api-proxy.yaml
blob: 02299aec85d64dd11d50324c8ee9047a48e2f771 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
    haproxy:
      charm: "local:{{ opnfv.distro }}/haproxy"
      num_units: 1
      options:
        services: |-
{% for service in public_api_services.values() %}
          - service_name: {{ service.name }}
            service_host: {{ public_api_ip }}
            service_port: {{ service.port }}
            service_options: [mode http, balance leastconn]
            servers: [[{{ service.name }}, {{ service.ip }}, {{ service.port }}, 'maxconn 100 cookie S0 check']]
{% endfor %}
      to:
        - "nodes=0"