You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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
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
The text was updated successfully, but these errors were encountered: