How can I customize healthcheck to make LB available

October 17, 2018 917 views
Kubernetes Load Balancing

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)?

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

Have another answer? Share your knowledge.