haproxytech / kubernetes-ingress

HAProxy Kubernetes Ingress Controller
https://www.haproxy.com/documentation/kubernetes/
Apache License 2.0
719 stars 202 forks source link

Constant Reloads with SVC backend #673

Open tman5 opened 2 months ago

tman5 commented 2 months ago

Using ingress 3.0.1, we're seeing constant reloads with this message

2024-09-03T16:21:11.086417412-04:00 stderr F 2024/09/03 20:21:11 INFO    service/service.go:157 [transactionID=f6269b17-dde8-436d-ac00-b740858bfcb9] reload required : Service 'clark-developer-featbit/featbit-dev2-els': backend 'clark-developer-featbit_featbit-dev2-els_80' updated: map[HTTPConnectionMode:[ http-server-close]]

We do have a backend object object

---
apiVersion: "ingress.v1.haproxy.org/v1"
kind: Backend
metadata:
  name: featbit-haproxy-backend-config
  namespace: clark-developer-featbit
spec:
  config:
    name: featbit-haproxy-backend-config
    http-server-close: "enabled"
    tunnel_timeout: 3600000

...

Ingress object

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    haproxy.org/cr-backend: clark-developer-featbit/featbit-haproxy-backend-config
    healthcheck: /health/liveness
    meta.helm.sh/release-name: featbit-dev2
    meta.helm.sh/release-namespace: clark-developer-featbit
  creationTimestamp: "2023-09-29T15:46:58Z"
  generation: 2
  labels:
    app.kubernetes.io/instance: featbit-dev2
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: featbit-dev2
    argocd.argoproj.io/instance: featbit-dev2
    helm.sh/chart: featbit-0.4.1
  name: featbit-dev2-els-ingress
  namespace: clark-developer-featbit
  resourceVersion: "376035891"
  uid: d96c0bfc-bc4e-4629-acd6-2e300e42c41a
spec:
  ingressClassName: haproxy
  rules:
  - host: featbit-eval-2.dev.internal
    http:
      paths:
      - backend:
          service:
            name: featbit-dev2-els
            port:
              number: 80
        path: /
        pathType: ImplementationSpecific
ivanmatmati commented 2 months ago

Thanks @tman5 for reporting, We've seen this bug and will provide a fix.

stale[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.