Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 truncate termination log file #32

Merged
merged 1 commit into from
Feb 21, 2024
Merged

Conversation

joerunde
Copy link
Collaborator

Motivation

Multiple restarts and crashes of a TGIS container on a k8s pod can show multiple errors (or usually, multiple lines of the same error) in /dev/termination-log

Modifications

This change truncates the termination log before writing so only the cause of the current container crash is shown

Result

Better pod termination reasons in k8s statuses

Signed-off-by: Prashant Gupta <[email protected]>
Signed-off-by: Joe Runde <[email protected]>
@joerunde joerunde merged commit ac1f655 into main Feb 21, 2024
7 checks passed
@joerunde joerunde deleted the truncate-termination-log branch February 21, 2024 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants