ContainerSolutions / ContainerSolutions/marathon-haproxy-subdomain-bridge

server-lines not created in listen blocks

Open
#2 2 comments 0 reactions 1 assignee Claimed by @frankscholten View on GitHub
Dominant language
Go
Stars
2
Forks
2
PR merge metrics
No merged PRs in 30d

Description

when i do

``` bash
curl -sSfLk -m 10 -H 'Accept: text/plain' http://10.20.75.162:8080/v2/tasks
```

i get

``` bash
lauras-artifactory 80 10.215.78.113:31000
lauras-bamboo 88 10.224.225.144:31001
lauras-bamboo 8008 10.224.225.144:31002
lauras-bamboo 8125 10.224.225.144:31003
lauras-commit-tester 80 10.224.225.144:31004
lauras-elk 80 10.16.85.111:31006
lauras-elk 5000 10.16.85.111:31007
lauras-gitlab-postgres 5432 10.215.78.113:31009
lauras-gitlab-redis 6379 10.108.159.39:31003
lauras-jenkins 80 10.215.78.113:31011
lauras-journey 80 10.16.85.111:31008 10.16.85.111:31000 10.224.225.144:31005 10.108.159.39:31000 10.215.78.113:31007
lauras-journey 443 10.16.85.111:31009 10.16.85.111:31001 10.224.225.144:31007 10.108.159.39:31002 10.215.78.113:31008
lauras-orchestration 8083 10.224.225.144:31000
lauras-simulator 80 10.224.225.144:31006
```

the output for the listen blocks is missing the server line, but it does appear in the backend blocks:

``` bash
cat /etc/haproxy/haproxy.cfg
global
daemon
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
maxconn 4096

defaults
mode http
log global
retries 3
maxconn 2000
timeout connect 5000
timeout client 50000
timeout server 50000

listen stats
bind 127.0.0.1:9090
balance
mode http
stats enable
stats auth admin:admin

listen lauras-bamboo-88
bind 0.0.0.0:88
mode tcp
option tcplog
balance leastconn

listen lauras-bamboo-8008
bind 0.0.0.0:8008
mode tcp
option tcplog
balance leastconn

listen lauras-bamboo-8125
bind 0.0.0.0:8125
mode tcp
option tcplog
balance leastconn

backend commit-tester
balance leastconn
option httpclose
option forwardfor
server lauras-commit-tester-1 10.224.225.144:31004 check

backend elk
balance leastconn
option httpclose
option forwardfor
server lauras-elk-1 10.16.85.111:31006 check

listen lauras-elk-5000
bind 0.0.0.0:5000
mode tcp
option tcplog
balance leastconn

listen lauras-gitlab-postgres-5432
bind 0.0.0.0:5432
mode tcp
option tcplog
balance leastconn

listen lauras-gitlab-redis-6379
bind 0.0.0.0:6379
mode tcp
option tcplog
balance leastconn

backend jenkins
balance leastconn
option httpclose
option forwardfor
server lauras-jenkins-1 10.215.78.113:31011 check

backend journey
balance leastconn
option httpclose
option forwardfor
server lauras-journey-1 10.16.85.111:31008 check
server lauras-journey-2 10.16.85.111:31000 check
server lauras-journey-3 10.224.225.144:31005 check
server lauras-journey-4 10.108.159.39:31000 check
server lauras-journey-5 10.215.78.113:31007 check

listen lauras-journey-443
bind 0.0.0.0:443
mode tcp
option tcplog
balance leastconn

listen lauras-orchestration-8083
bind 0.0.0.0:8083
mode tcp
option tcplog
balance leastconn

backend simulator
balance leastconn
option httpclose
option forwardfor
server lauras-simulator-1 10.224.225.144:31006 check

frontend http-in
bind :80
bind :443 ssl crt /etc/haproxy/site.pem
acl subdomain-lauras-commit-tester hdr(host) -i commit-tester.laurasjourney.nl
use_backend commit-tester if subdomain-lauras-commit-tester
acl subdomain-lauras-elk hdr(host) -i elk.laurasjourney.nl
use_backend elk if subdomain-lauras-elk
acl subdomain-lauras-jenkins hdr(host) -i jenkins.laurasjourney.nl
use_backend jenkins if subdomain-lauras-jenkins
acl subdomain-lauras-journey hdr(host) -i journey.laurasjourney.nl
use_backend journey if subdomain-lauras-journey
acl subdomain-lauras-simulator hdr(host) -i simulator.laurasjourney.nl
use_backend simulator if subdomain-lauras-simulator
default_backend journey
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.