The behavior of Helm Chart defined postStart hook on a container when the container dies

11/12/2019

In Helm Chart, one can define a postStart hook with parameters from the values.yaml file.

WIf the container dies and replaced, or upgraded, will postStart always be called with the same values in each start of a container?

-- user1015767
charts
hook
kubernetes
kubernetes-helm

1 Answer

11/12/2019

postStart and preStop are container lifecycle events so as long as your deployment configuration is not changed, those hooks will be called in each restart.

-- Mesut
Source: StackOverflow