Yes, 30s is configurable on the pod yaml. See terminationGracePeriodSeconds
here: http://kubernetes.io/docs/api-reference/v1/definitions/

Although 10 minutes seems very big number and not sure it may cause some
other problems because killing a pod takes so long.

On Monday, December 5, 2016, Ravi Kapoor <[email protected]> wrote:

>
> Here is the use case:
> Each one of  my container is handling about 3000 websockets (aka TCP
> connections). The clients already have functionality built in to reconnect
> is disconnected.
>
> However if I disconnect 3000 clients at same time, it overwhelms my
> infrastructure. So I want to disconnect 5 or 10 clients every second. This
> means
> - my container should get a shutdown command (k8s gracefully gives this
> command)
> - k8s should wait for 10 mins before it kills the container.
>
> If I issue docker stop, it has a "-t" argument to wait for t number of
> seconds before killing it. I can pass -t=600 and my system works very well.
>
> However in k8s, it just seems to wait for 30 seconds and kill my container.
> I also do not see any flags equivalent of "-t" in commandline.
>
> Any ideas, how I can achieve this?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Kubernetes user discussion and Q&A" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <javascript:_e(%7B%7D,'cvml','kubernetes-users%[email protected]');>
> .
> To post to this group, send email to [email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>.
> Visit this group at https://groups.google.com/group/kubernetes-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to