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

Feature : setup log-opt with podman play kube #11727

Closed
Archloy opened this issue Sep 23, 2021 · 3 comments · Fixed by #12086
Closed

Feature : setup log-opt with podman play kube #11727

Archloy opened this issue Sep 23, 2021 · 3 comments · Fixed by #12086
Labels
kind/feature Categorizes issue or PR as related to a new feature. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@Archloy
Copy link

Archloy commented Sep 23, 2021

I'm tying to use kube.yaml directly with podman, I can set log-driver (I want to use journald) but I have to set also log-opt=tag="{{.ImageName}}" (because it's more clear, and driver journald refuse to work without that)
I can understand that setting log-path with kube is not possible but while we can't specify log-driver options directly into yaml file, I can't find any way to configure the log-driver.
Or, this option is here only to set to "none" ?
Thanks for help

@mheon
Copy link
Member

mheon commented Sep 23, 2021

Can you clarify exactly what you want to do - are you using podman play kube to make a pod, and want to set logging configuration for the created pod?

@Archloy
Copy link
Author

Archloy commented Sep 23, 2021

@mheon Yes, exactly. While podman play kube allow me to add option --log-driver, I also want to add --log-opt, as on podman run, so type something like :
podman play kube --log-driver="journald" --log-opt=some_opt kube.yaml

And I can't do that directly on kube.yaml file (or I didn't see how)
If there is no way to configure details on log-driver, the command line option "--log-driver" on podman play has an extremely restricted usage...

@mheon mheon added the kind/feature Categorizes issue or PR as related to a new feature. label Sep 23, 2021
@github-actions
Copy link

A friendly reminder that this issue had no activity for 30 days.

@mheon mheon removed the stale-issue label Oct 25, 2021
rhatdan added a commit to rhatdan/podman that referenced this issue Oct 25, 2021
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Categorizes issue or PR as related to a new feature. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants