summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/juju2/public-api-proxy.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'ci/config_tpl/juju2/public-api-proxy.yaml')
-rw-r--r--ci/config_tpl/juju2/public-api-proxy.yaml14
1 files changed, 14 insertions, 0 deletions
diff --git a/ci/config_tpl/juju2/public-api-proxy.yaml b/ci/config_tpl/juju2/public-api-proxy.yaml
new file mode 100644
index 00000000..02299aec
--- /dev/null
+++ b/ci/config_tpl/juju2/public-api-proxy.yaml
@@ -0,0 +1,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"