Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Added handling of terminationGracePeriodSeconds to creation of systemd units #138

Merged
merged 3 commits into from
Apr 23, 2021

Conversation

soenkeliebau
Copy link
Member

The value for this field from the PodSpec is translated to the systemd config TimeoutStopSec

This will cause the service to be killed by systemd if it does not shutdown within the time in seconds specified by this parameter.
Default value for this parameter is 30 seconds, if terminationGracePeriodSeconds this is not specified in the unit file and this default stays in effect.

fixes #137

…d units.

The value for this field from the PodSpec is translated to the systemd config TimeoutStopSec

This will cause the service to be killed by systemd if it does not shutdown within the time in seconds specified by this parameter.
Default value for this parameter is 30 seconds, if terminationGracePeriodSeconds this is not specified in the unit file and this default stays in effect.
@soenkeliebau soenkeliebau requested a review from a team April 22, 2021 20:22
Copy link
Member

@siegfriedweber siegfriedweber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@soenkeliebau soenkeliebau merged commit 0401637 into main Apr 23, 2021
@soenkeliebau soenkeliebau deleted the stoptimeoutsec branch April 23, 2021 14:02
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make systemd shutdown timeout configurable
2 participants