Created
April 3, 2018 15:10
-
-
Save weivall/9b85a2afea31c091098c6dafc5138145 to your computer and use it in GitHub Desktop.
kubernetes preStop hook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lifecycle: | |
preStop: | |
exec: | |
# A hack to try to get 0% downtime during deploys. This should | |
# help ensure k8s eventually stops giving this node traffic. | |
command: ["sh", "-c", "sleep 5"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment