Does terminationGracePeriodSeconds have max value?

Hi everyone,
Does terminationGracePeriodSeconds has a max value? Can’t find it in documentation.
If yes - what is the value?

Thanks

Yes and No both. :slight_smile:

Yes, terminationGracePeriodSeconds does have a practical maximum value, although it might not be explicitly stated as a hard limit in the official Kubernetes API documentation.

Integer Limit: The terminationGracePeriodSeconds field in the Kubernetes API is typically stored as an integer. Therefore, the absolute theoretical maximum would be the maximum value of an integer type in the Go language used by Kubernetes (likely int64). So technically k8s do not have default value as limit but its default max for int64 from Golang. This would be a very large number (around 263−1), representing an impractical amount of time.

terminationGracePeriodSeconds to an extremely large value (greater than 253−1) could lead to pods hanging indefinitely in the Terminating state and potentially making nodes NotReady. This suggests that while the API might accept a very large integer, the underlying implementation can have issues with excessively long values.

Due to this reason some of the cloud prvoider may have limits setup e.g. in case of GKE Auto pilot I believe have 10 mins.