Skip to content

Instantly share code, notes, and snippets.

@weivall
Created April 3, 2018 15:10
Show Gist options
  • Save weivall/9b85a2afea31c091098c6dafc5138145 to your computer and use it in GitHub Desktop.
Save weivall/9b85a2afea31c091098c6dafc5138145 to your computer and use it in GitHub Desktop.
kubernetes preStop hook
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