jcmoraisjr / haproxy-ingress

HAProxy Ingress
https://haproxy-ingress.github.io
Apache License 2.0
1.04k stars 269 forks source link

Add a way to disable health checks #894

Open jcmoraisjr opened 2 years ago

jcmoraisjr commented 2 years ago

What are you trying to do

Disabling server health checks at all. Today the only reasonable way to do it is configuring with a huge interval, e.g. 1d.

What HAProxy Ingress should do or how it should behave differently

Actually non configured health check defaults to an interval of 2s, and there isn't a way to remove this configuration.

lenhard commented 2 years ago

Actually, you can do this with the current version. You need to explicitly set an empty value in the configuration configmap of the controller, e.g.:

apiVersion: v1
data:
  health-check-interval: ""

Based on the template this will avoid the entire check inter part.

So it is possible, it just might not be the most user-friendly way of specifying it. Maybe an explicit configuration parameter like turn-off-health-checks or similar would be nice.