Skip to content

Commit 1254289

Browse files
committed
terminationMessagePolicy: "FallbackToLogsOnError" in default config
Means that the container termination message that shows in the pod status will be the last part of the logs if not set explicitly in a file by the code. See https://kubernetes.io/docs/tasks/debug/debug-application/determine-reason-pod-failure/#customizing-the-termination-message
1 parent dfab732 commit 1254289

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

deployment/base/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ spec:
7878
periodSeconds: 100
7979
timeoutSeconds: 8
8080

81+
terminationMessagePolicy: "FallbackToLogsOnError"
82+
8183
terminationGracePeriodSeconds: 120
8284

8385
strategy:

0 commit comments

Comments
 (0)