Skip to content

Conversation

tklauser
Copy link
Member

@tklauser tklauser commented Sep 16, 2020

Report HTTP status "service unavailable" (503) instead of "internal
server error" (500) on liveness/readiness probs in case the agent is
unhealthy.

Fixes: efffbdb ("daemon: expose HTTP endpoint on localhost for health checks")
Reported-by: André Martins andre@cilium.io

Report HTTP "service unavailable" (503) instead of "internal
server error" (500) in unhealthy state, commonly used in Kubernetes liveness and readiness probes.

@tklauser tklauser added release-note/misc This PR makes changes that have no direct user impact. needs-backport/1.8 labels Sep 16, 2020
@tklauser tklauser requested a review from a team September 16, 2020 11:24
Report HTTP status "service unavailable" (503) instead of "internal
server error" (500) on liveness/readiness probs in case the agent is
unhealthy.

Fixes: efffbdb ("daemon: expose HTTP endpoint on localhost for health checks")
Reported-by: André Martins <andre@cilium.io>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
@tklauser tklauser force-pushed the pr/tklauser/daemon-agent-health-status branch from 7e5773f to 3cd8bd8 Compare September 16, 2020 11:25
@tklauser
Copy link
Member Author

test-me-please

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Sep 16, 2020
@aanm aanm merged commit 868feac into master Sep 16, 2020
@aanm aanm deleted the pr/tklauser/daemon-agent-health-status branch September 16, 2020 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants