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

Support volume for pod running logs #1401

Closed
tanshanshan opened this issue Mar 4, 2019 · 3 comments
Closed

Support volume for pod running logs #1401

tanshanshan opened this issue Mar 4, 2019 · 3 comments

Comments

@tanshanshan
Copy link

tanshanshan commented Mar 4, 2019

We want to use volume for mounting the container running log contents to the host,
Can it support it ?
currently we just use

kubectl logs podname containername

to get them.

Thanks

@scholzj
Copy link
Member

scholzj commented Mar 4, 2019

This is currently not possible and it is not planned right now.

AFAIK the usual workflow is that the logs are written to the STDOUT of the container where they are collected and written to a file by the container engine (Docker) on the host. There they can be collected and sent somewhere to ElasticSearch etc.. So normally it is not needed to create any special volumes for writing logs to files.

@scholzj
Copy link
Member

scholzj commented Feb 22, 2022

Triaged on 22.02.2022: Might be useful in some edge-cases.

@scholzj
Copy link
Member

scholzj commented Mar 31, 2022

Triaged on 31.3.2022: We should close this and keep #3693 since that solves this problem in a most generic way.

@scholzj scholzj closed this as completed Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants