-
Story
-
Resolution: Done
-
Normal
-
None
-
False
-
-
False
-
Unset
-
No
-
-
Kubernetes includes Container Lifecycle hooks. PreStop enables customized behavior before shutting down a container.
Cost Management deploys Trino which has a mechanism for graceful shutdown. However, today, we cannot use this feature because we cannot set a PreStop hook, nor a graceful shutdown period. This leads to instability and many alerts during cluster upgrades as the Pods shuffle around on the nodes.
This story is a feature request to enable creating lifecycle hooks and setting the TerminationGracePeriodSeconds for deployments created via Clowder. The ability to set the TerminationGracePeriodSeconds is required when using a PreStop hook if the shutdown will take longer than the default 30 seconds. In the case of Trino, this shutdown can take up to 10 minutes.
Initial work was completed here: https://github.com/RedHatInsights/clowder/pull/830. But this PR needs more manual testing to confirm it works as expected, and test automation.
1.
|
Review PR for RHCLOUD-27862 |
|
Closed | |
Brandon Squizzato |