Closed gjacquet closed 9 months ago
To make rolling update smoother, it is very common to add a sleep to containers preStop lifecycle to give Kubernetes some time to reconfigure the application's service endpoints.
Allow configuring each container lifecycle.
Set values:
lifecycle: {} preStop: exec: command: - "sh" - "-c" - "sleep 10"
and check lifecycle has been configured as expected
Which problem is this PR solving?
To make rolling update smoother, it is very common to add a sleep to containers preStop lifecycle to give Kubernetes some time to reconfigure the application's service endpoints.
Short description of the changes
Allow configuring each container lifecycle.
How to verify that this has the expected result
Set values:
and check lifecycle has been configured as expected