I am working on migrating one of the application to kubernetes. I want to discard the result if the health check returns http(100-199).
Similar to one which we have in marathon
IgnoreHttp1xx (Optional. Default: false): Ignore HTTP informational status codes 100 to 199. If the HTTP health check returns one of these, the result is discarded and the health status of the task remains unchanged.
How can i achieve this in kubernetes? Does it accept if i pass like this?
livenessProbe:
httpGet:
path: /v1/health
port: 9102
scheme: HTTP
httpHeaders:
- name: ignoreHttp1xx
value: false
Unfortunately i have no way to test this in our environment. Does it ignore such requests? If not what is the alternative i can use for this.