Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-27862

Allow use of Container Lifecycle hooks through Clowder

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • 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.

              mskarbek Michael Skarbek
              mskarbek Michael Skarbek
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: