haproxytech / helm-charts

Helm chart for HAProxy Kubernetes Ingress Controller
Apache License 2.0
155 stars 121 forks source link

Not able to setup retry-on functionality globally, I tried multiple values.yaml ! Please correct me if i am wrong ! #248

Closed abhi-gaur closed 3 months ago

abhi-gaur commented 4 months ago

-------------first-Values.yaml-----------------------

controller: ingressClassResource: enabled: true stats: enabled: true metrics: enabled: true serviceMonitor: enabled: true labels: release: kube-prometheus-stack metrics: relabelings:

-------------------second values.yaml ----------------

controller: ingressClassResource: enabled: true stats: enabled: true metrics: enabled: true serviceMonitor: enabled: true labels: release: kube-prometheus-stack metrics: relabelings:

-------------------third values.yaml --------------------

controller: ingressClassResource: enabled: true stats: enabled: true metrics: enabled: true serviceMonitor: enabled: true labels: release: kube-prometheus-stack metrics: relabelings:

oktalz commented 4 months ago

hi @abhi-gaur in order to set retry_on

best option is to use backed CRD for it, there is an option to set it https://github.com/haproxytech/kubernetes-ingress/blob/8211db60fb36e4983c74077548b5a8baa6608e1d/crs/definition/ingress.v1.haproxy.org_backends.yaml#L1781

how to use backend CRD can be seen here https://github.com/haproxytech/kubernetes-ingress/blob/master/documentation/custom-resources.md#backend (you need to create resource and in service add annotation for it)