Question

How can I customize healthcheck to make LB available

Posted October 17, 2018 1.4k views
Load Balancing Kubernetes

I have a third party closed source app which is not designed to answer the standard/expected http status 200 on HEAD /, but supports another URL.

How can I change the LB’s healthcheck definition to set the expected URL instead of / (which I presume is the default setting)?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

2 answers

Hi again

I posted a possible solution for this but DO marked it as spam. Here it is in pastebin. Hopefully this one gets past the spam filter:

https://pastebin.com/raw/eS544WYT

Hey friend!

There is currently not a way to customize that I’m afraid. Building a custom LB with HAProxy or Nginx would probably be ideal in this case. I even use Caddy for my own load balancing, just because I absolutely love the configuration style:

https://caddyserver.com/docs/proxy

<3
Jarland

Join me in an experiment in community engagement?
https://discord.gg/sw8DmeY

Submit an Answer