Return code for failed /healthz endpoint check

7/15/2019

I'd like to sit a bare-metal cluster in front of an F5 LB and configure some healthchecks for the kube-api / master nodes using the /healthz endpoint. On a successful, we get the HTTP 200 response with the body 'ok', but can someone provide what sort of response we would get in terms of failures? Also, does the HTTP response stick to 200 on a failure, and simply provide a different response? My concern here is if a failed check returns HTTP 200 OK, but 'bad' as a response in the body, this would not work on an F5 as a result of being case insensitive.

-- Jeanluc Lariviere
kubernetes

1 Answer

7/15/2019

Normally a helthcheck in LB no matter what brand or implementation consider a healthy state when it has a response < 400

https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

-- wolmi
Source: StackOverflow