Lifecycle
Appears in
.Values.workload.$name.podSpec.containers.$name
lifecycle
Define lifecycle for the container
Key | workload.$name.podSpec.containers.$name.lifecycle |
Type | map |
Required | ❌ |
Helm tpl | ❌ |
Default | {} |
Example
lifecycle.preStop
Define preStop lifecycle
Key | workload.$name.podSpec.containers.$name.lifecycle.preStop |
Type | map |
Required | ❌ |
Helm tpl | ❌ |
Default | {} |
Example
lifecycle.postStart
Define preStop lifecycle
Key | workload.$name.podSpec.containers.$name.lifecycle.postStart |
Type | map |
Required | ❌ |
Helm tpl | ❌ |
Default | {} |
Example
lifecycle.$hook.type
Define hook type
Key | workload.$name.podSpec.containers.$name.lifecycle.$hook.type |
Type | string |
Required | ❌ |
Helm tpl | ❌ |
Default | "" |
Valid Values:
exec
http
https
Example
lifecycle.$hook.command
Define command(s)
See Command for more information.
lifecycle.$hook.port
Define the port
Key | workload.$name.podSpec.containers.$name.lifecycle.$hook.port |
Type | int |
Required | ✅ |
Helm tpl | ✅ |
Default | "" |
Example
lifecycle.$hook.host
Define the host
Key | workload.$name.podSpec.containers.$name.lifecycle.$hook.host |
Type | string |
Required | ❌ |
Helm tpl | ✅ |
Default | "" |
Example
lifecycle.$hook.path
Define the path
Key | workload.$name.podSpec.containers.$name.lifecycle.$hook.path |
Type | string |
Required | ❌ |
Helm tpl | ✅ |
Default | "/" |
Example
lifecycle.$hook.httpHeaders
Define the httpHeaders
Key | workload.$name.podSpec.containers.$name.lifecycle.$hook.httpHeaders |
Type | map |
Required | ❌ |
Helm tpl | ✅ (On value only) |
Default | {} |
Example