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

k8s-env export logs on pod exit #3675

Open
busma13 opened this issue Jul 3, 2024 · 1 comment
Open

k8s-env export logs on pod exit #3675

busma13 opened this issue Jul 3, 2024 · 1 comment
Assignees
Labels
enhancement k8s Applies to Teraslice in kubernetes cluster mode only. pkg/scripts

Comments

@busma13
Copy link
Contributor

busma13 commented Jul 3, 2024

It would be nice to export logs from all teraslice pods to our local machine when a pod exits (either a quick once job or a pod crashing). There is already a function that does something similar in e2e testing, so this shouldn't be too difficult.

We should consider how long these logs stick around. Maybe delete the directory when we shutdown the kind cluster?

@busma13 busma13 added enhancement k8s Applies to Teraslice in kubernetes cluster mode only. pkg/scripts labels Jul 3, 2024
@godber
Copy link
Member

godber commented Jul 3, 2024

This is a bit trickier than you might think, unless kind holds onto them ... I see there's a kind export logs command. If you run that AFTER a pod has shut down, do you actually get the pod logs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement k8s Applies to Teraslice in kubernetes cluster mode only. pkg/scripts
Projects
None yet
Development

No branches or pull requests

3 participants