Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4731

Haproxy 1.8.13 & kubernetes service Discovery

$
0
0

@gabrielsousa wrote:

hello

i’m trying to use DNS for Service Discovery but without success
my config

global
debug

resolvers kube
  nameserver dns1 10.96.0.10:53

defaults
  mode http
  timeout connect 5000ms
  timeout client 50000ms
  timeout server 50000ms

listen stats
  bind *:1936
  mode http
  stats enable
  stats refresh 5s
  stats show-node
  stats show-legends
  stats auth admin:admin
  stats uri /stats

backend vccrm
  #server-template www 0-10 _vccrm-latest-qa._tcp.vccrm-latest-qa.qa:8000 check resolvers kube
  #server-template www 10 _vccrm-latest-qa._tcp.vccrm-latest-qa.qa.svc.cluster.local:8000 check resolvers kube
  #server-template www 10 _8000._tcp.vccrm-latest-qa.qa.svc.cluster.local:8000 check resolvers kube
  server-template www 0-8 _http._tcp.vccrm-latest-qa.qa.svc.cluster.local:8000 check resolvers kube resolve-prefer ipv4
  #server-template www 10 _vccrm-latest-qa._tcp.qa.svc.cluster.local:8000 check resolvers kube
  #server-template www 10 vccrm-latest-qa.qa.svc.cluster.local:8000 check resolvers kube
  #server-template www 10 _vccrm-latest-qa.vccrm-latest-qa.qa.svc.cluster.local.:8000 check resolvers kube
frontend vccrm
  bind *:80
  mode http
  default_backend vccrm

what i’m doing wrong ?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4731

Trending Articles