-
Type: Improvement
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: helm-chart-next
-
Component/s: Helm Chart
-
Tags:
K8s allows to store some informations when a pod is stopping.
A simple default for the helm chart could be to store the content of the running status, because:
- it's not easy to get (rsh + curl in the pod)
- its not present in the logs
...
spec:
containers:
- image: nuxeo:LTS
lifecycle:
preStop:
exec:
command:
- /bin/bash
- -c
- "/usr/bin/curl -m 3 localhost:8080/nuxeo/runningstatus > /dev/termination-log"
terminationMessagePolicy: FallbackToLogsOnError
...
cf for the in depth description https://dmetzler.github.io/troubleshooting-java-apps-in-k8s/