How can I customize healthcheck to make LB available

Posted October 17, 2018 2.9k views
Load BalancingKubernetes

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.

Submit an Answer
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:

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:


Join me in an experiment in community engagement?