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

Is it possible to use this exporter to monitor PEM files within each pod? #188

Open
Reyzorcat opened this issue Sep 16, 2023 · 2 comments
Open
Assignees
Labels

Comments

@Reyzorcat
Copy link

Is it possible to use this exporter to monitor PEM files within each pod?
As far as I understand from the documentation, PEM files can only be monitored locally from the exporter pod itself or from the host using a daemonset. I would like to be able to monitor files within each cluster pod

@npdgm npdgm self-assigned this Sep 18, 2023
@npdgm npdgm added the usage label Sep 18, 2023
@npdgm
Copy link
Member

npdgm commented Sep 18, 2023

Hi,
The only good option would be to run the exporter as a sidecar in each Pod having PEM files. Mounting the volume with certificates for each container, or using an emptyDir ephemeral volume if PEM files are created at runtime only.
Then you could scrape the sidecar with a PodMonitor for example.
Other users have been wanting to do this with a DaemonSet mounting the whole kubelet directory, and a globbing pattern that could look for *.pem in every container overlayfs. It makes me a bit nauseous, I would not recommend that at all.
Cheers

@Reyzorcat
Copy link
Author

Thanks for reply. For now i choose to create separated pod with exporter and mount all certs from secrets to it. Maybe not the best solution, but the simplest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants