Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Add preStop hook to allow graceful network shutdown #121

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

mrIncompetent
Copy link
Contributor

Adding a preStop sleep to allow other controllers to remove the pod from the network path. Without, there's a risk of breaking in-flight requests when the container is already stopped but the endpoints/endpointsSlice objects haven't been updated.

Source: https://learnk8s.io/graceful-shutdown

Adding a preStop sleep to allow other controllers to remove the pod from the network path.
Without, there's a risk of breaking in-flight requests when the container is already stopped but the endpoints/endpointsSlice objects haven't been updated.

Source:  https://learnk8s.io/graceful-shutdown
@mrIncompetent mrIncompetent merged commit dd8b4e5 into main Dec 21, 2023
1 check passed
@mrIncompetent mrIncompetent deleted the pre-stop-hook branch December 21, 2023 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants