Options for the Health
instance
• shutdownDelaySeconds: number
The amount of time to wait before starting to shut down. There is often a delay between when Kubernetes informs
the pod that it will be terminating and when all network requests to that pod have ceased, so this delay ensures
that in-flight requests are not rejected. Set to a number less than or equal to 0
to disable.
default
5
• shutdownSignals: Signals
[]
Signals that trigger application shutdown.
default
['SIGTERM', 'SIGHUP', 'SIGINT']
• terminationGracePeriodSeconds: number
The amount of time, in seconds, before the process is forcibly terminated after shutdown is initiated. Set to a
value less than or equal to 0
to disable.
default
30
▸ forciblyTerminate(): void
Function called to forcibly terminate the current process
default
() => process.exit(1)
void