haproxy with hostnames

This commit is contained in:
do
2020-03-26 19:52:49 +01:00
parent a1bf995617
commit 036fedecef
4 changed files with 56 additions and 2 deletions

View File

@@ -62,9 +62,15 @@ haproxy:
bind: "*:7480"
default_backend: radosgw-backend
frontend2:
name: ceph-dashboard
name: www
bind: "*:80"
default_backend: ceph-dashboard
acls:
- host_ceph hdr_beg(host) -i ceph.
- host_stats hdr_beg(host) -i stats.
use_backends:
- grafana if host_stats
- ceph-dashboard if host_ceph
backends:
backend1:
name: radosgw-backend
@@ -85,7 +91,6 @@ haproxy:
host: 192.168.10.19
port: 7480
check: check
backend2:
name: ceph-dashboard
balance: roundrobin
@@ -105,3 +110,12 @@ haproxy:
# host: 192.168.10.19
# port: 8080
# check: check
backend3:
name: grafana
balance: roundrobin
servers:
server1:
name: riot01
host: 192.168.10.164
port: 3000
check: check