-
Notifications
You must be signed in to change notification settings - Fork 213
Closed
Labels
Description
We are having problem with HAProxy not detecting services within the cluster, when routing requests to cert-manager pods. For example, HAProxy controller returns:
022/08/16 13:46:12 ERROR ingress/ingress.go:245 Ingress 'development/my-service': service 'development/cm-acme-http-solver-498h4' does not exist
2022/08/16 13:46:12 INFO handler/https.go:123 removing client TLS authentication
And the rule from Ingress is like so:
ingressClassName: external-haproxy
rules:
- host: example.com
http:
paths:
- backend:
service:
name: cm-acme-http-solver-498h4
port:
number: 8089
path: /.well-known/path/to/acme-challenge
pathType: ImplementationSpecific
I've checked haproxy.cfg and I cannot find the internal IP either of the mentioned service or the pod.
We are also having split-horizon dns with two HAProxies - internal and external. I've also found the offending line: https://github.com/haproxytech/kubernetes-ingress/blob/v1.8.3/pkg/ingress/ingress.go#L245
Do you know why this happens? It seems that haproxy cannot find a service, despite service existing in the cluster.
ognjenVlad