Reputation: 21
Envoy sending TERM signal and closing my application before the process completion. Increasing Drain Duration preventing the pod from going down after the completion.(its waiting for the grace duration to be over and not allowing any new requests.
Expectation:
Is there any way to check the completion of process in user container and send kill signal if there is no process alive?
Process running in user container is Gunicorn process.
Upvotes: 2
Views: 1633
Reputation: 3493
It's not clear from your post if you're running Knative, or if this is a general Istio question. (It has Knative tags, but doesn't mention Knative.) I'm also assuming you're running Istio on Kubernetes. This isn't a requirement for Istio, but is a common configuration.
Based on your description, it sounds like you have the lifecycles of the two components slightly confused. Istio isn't responsible for the lifecycle of your application, kubelet does this. You might need to set terminationGracePeriodSeconds
to give your application an early notice before it is due down my kubelet.
Upvotes: 0