opened
Cryptophobia
username_0
_From @rvadim on March 7, 2017 7:36_

Hello,
thank you for you work.
We have a problem with zero downtime deployment in deis 2, due to http://stackoverflow.com/questions/40545581/do-kubernetes-pods-still-receive-requests-after-receiving-sigterm
I tested it with gatling on different applications(pull, config:set etc) and get 5 - 100 errors (502) under 100 RPS
We workaround this issue in native k8s interface with preStop hook /bin/sh -c "sleep 5", but i don't know how to fix this in deis controller, due to for example images with golang binary from scratch don't have any shell.
Have anyone an idea how to fix this?

Additional info:
- https://kubernetes.io/docs/user-guide/pods/#termination-of-pods

Thank you.

_Copied from original issue: deis/controller#1254_
Some portion of failed requests (502) during application deployment (regression since deis 1.x)
issue