haproxytech / kubernetes-ingress

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

scale-server-slots on Ingress resource is ignored #670

Open mike-code opened 2 weeks ago

mike-code commented 2 weeks ago

appVersion: 3.0.1

Using the following Ingress

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ingress-thanos
  namespace: monitoring
  annotations:
    haproxy.org/scale-server-slots: "4"
spec:
  ingressClassName: haproxy-thanos
  rules:
  - host: "..."
    http:
      ...

the backend still scales to 42.

hdurand0710 commented 2 weeks ago

Hi @mike-code ,

Could you check if you have any of the legacy annotation servers-increment or server-slots in your Ingress Controller Configmap ?

mike-code commented 2 weeks ago

Hi @mike-code ,

Could you check if you have any of the legacy annotation servers-increment or server-slots in your Ingress Controller Configmap ?

The ConfigMap (created by helm chart) is empty

hdurand0710 commented 2 weeks ago

Hi @mike-code Can you also check the same thing on the Service ?