Shutdown V1
Definitions:
Operator will send shutdown request once all containers marked with annotation are stopped.
Example:
metadata:
annotations:
core.shutdown.arangodb.com/app: "wait"
core.shutdown.arangodb.com/app2: "wait"
container.shutdown.arangodb.com/app3: port1
spec:
containers:
- name: app
- name: app2
- name: app3
ports:
name: port1
Pod will receive shutdown request on port port1
if containers app
and app2
will be in non running state.
Extensions
DebugPackage PreShutdown Hook
The PreShutdown hook copies all non-empty files from the debug-package-mount volume when the main container exits.
How to enable:
metadata:
labels:
shutdown.integration.profiles.arangodb.com/debug: enabled
This creates a Pod volume named debug-package-mount, which can be mounted to any container (including InitContainers) via the volumeMounts directive.
spec:
containers:
- name: XXX
volumeMounts:
- mountPath: /debug
name: debug-package-mount