New service
This commit is contained in:
parent
c594c31cc5
commit
b10f548afc
2 changed files with 83 additions and 0 deletions
|
@ -62,6 +62,23 @@ sunet_frontend:
|
|||
haproxy_imagetag: '20230228-stable'
|
||||
frontendtools_imagetag: '20230228'
|
||||
|
||||
'catestdb':
|
||||
site_name: 'ca-test-db.platform.sunet.se'
|
||||
frontends:
|
||||
'lb-tug-test-1.sunet.se':
|
||||
ips: ['37.156.192.110']
|
||||
'lb-sthb-test-1.sunet.se':
|
||||
ips: ['37.156.192.111']
|
||||
backends:
|
||||
default:
|
||||
'ca-test-db-1-sto4.platform.sunet.se':
|
||||
ips: ['89.46.20.53']
|
||||
server_args: 'maxconn 100 check port 8008'
|
||||
allow_ports:
|
||||
- 5432
|
||||
haproxy_imagetag: '20230228-stable'
|
||||
frontendtools_imagetag: '20230228'
|
||||
|
||||
# 'edusealapit':
|
||||
# site_name: 'test-api.eduseal.sunet.se'
|
||||
# frontends:
|
||||
|
|
|
@ -0,0 +1,66 @@
|
|||
{% extends 'common/haproxy_base.j2' %}
|
||||
|
||||
{% from "common/haproxy_macros.j2" import bind_ip_tcp, output_backends %}
|
||||
|
||||
{% block defaults %}
|
||||
defaults
|
||||
log global
|
||||
mode tcp
|
||||
retries 2
|
||||
option dontlognull
|
||||
timeout client 30m
|
||||
timeout connect 4s
|
||||
timeout server 30m
|
||||
timeout check 5s
|
||||
{% endblock defaults %}
|
||||
|
||||
{% block stats %}
|
||||
frontend LB-http
|
||||
# expose stats info over HTTP to exabgp
|
||||
bind 127.0.0.1:9000
|
||||
http-request set-log-level silent
|
||||
default_backend LB
|
||||
|
||||
backend LB
|
||||
stats enable
|
||||
#stats hide-version
|
||||
stats uri /haproxy_stats
|
||||
{% endblock stats %}
|
||||
|
||||
|
||||
{% block global_backends %}
|
||||
{% endblock global_backends %}
|
||||
|
||||
|
||||
{% block https_everything %}
|
||||
{% endblock https_everything %}
|
||||
|
||||
#
|
||||
# Frontend section
|
||||
#
|
||||
|
||||
{% block frontend %}
|
||||
frontend {{ site_name }}
|
||||
{{ bind_ip_tcp(bind_ips, 5000,) }}
|
||||
option httpchk
|
||||
http-check expect status 200
|
||||
default-server inter 3s fall 3 rise 2 on-marked-down shutdown-sessions
|
||||
{% endblock frontend %}
|
||||
|
||||
#
|
||||
# Backend section
|
||||
#
|
||||
|
||||
{% block backend %}
|
||||
{{ output_backends(backends, config=[]) }}
|
||||
{% endblock backend %}
|
||||
|
||||
{% block backend %}
|
||||
{{ output_backends(backends,
|
||||
config=[
|
||||
'option httpchk GET',
|
||||
'http-check expect status 200',
|
||||
],
|
||||
)
|
||||
}}
|
||||
{% endblock backend %}
|
Loading…
Add table
Reference in a new issue