In kubernetes can ```service.spec.sessionAffinityConfig.clientIP.timeoutSeconds``` be set to infinity?

4/1/2020

As described in the title, can service.spec.sessionAffinityConfig.clientIP.timeoutSeconds be specified to infinity? I want the sessions never to change pod.

-- alpaca2333
kubernetes
service

1 Answer

4/1/2020

From the api docs timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP". Default value is 10800(for 3 hours).

So it can not be infinity.

-- Arghya Sadhu
Source: StackOverflow