-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix: allow redirection on the readinessProbe #549
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⛴
This change does not fix the issue.
|
@andrew-pickin-epi I think your error is different, in your case the return code is https://superuser.com/questions/501690/curl-http-code-of-000 |
Maybe so, but the point is that the readiness isn't succeeding when the system is working.
Clearly this returns a 200 when run directly from an exec. If I remove the output to /dev/null I see valid html. I'll not post this for brevity, but if you wish to see it, it's available. |
Ok I think I have an understanding of the what it happening here. The default initial delay of 10s is much too short.
I suggest a much bigger default initial delay or a startup probe or a readiness probe that takes account of curl failing before the network is established. Note the is no echo for a successful readiness probe, this can result in the last event being recorded as unhealthy. This can be potentially confusing. |
What does this PR do?
It adds the
-L
flag tocurl
to allow redirections.Why is it important?
It fixes the readinessProbe for kibana 8.0.0-SNAPSHOT version.
Related issues
Closes #548