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

Add preStop lifecycle hook #105

Merged
merged 2 commits into from
Nov 6, 2019
Merged

Add preStop lifecycle hook #105

merged 2 commits into from
Nov 6, 2019

Conversation

jasonodonnell
Copy link
Contributor

Kubernetes sends SIGTERM signals to pods being deleted and waits for a grace period before sending SIGKILL. The Vault pod wasn't receiving SIGTERM, so it never got the shutdown request, so the server was not shutting down gracefully. This resulted in slow failover, sluggish pod deletions and zombie Consul services.

Fixes #29

@jasonodonnell jasonodonnell added the bug Something isn't working label Nov 5, 2019
Copy link
Contributor

@catsby catsby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jasonodonnell jasonodonnell merged commit a9e6a0a into master Nov 6, 2019
@jasonodonnell jasonodonnell deleted the sigterm branch November 6, 2019 16:07
radudd pushed a commit to radudd/vault-helm that referenced this pull request Jun 5, 2020
* Add preStop lifecycle hook

* Fix typo in comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scaling Pods results in zombie instances in Consul
2 participants