Sidecar approach for logs (via storage/PVC in k8s) #7206
Replies: 2 comments
|
For the sidecar itself, yes: the operator CRD exposes What I do not see in the operator API is a generic For log collection, I would prefer stdout/stderr collection unless the operator adds a main-container volumeMount hook. |
|
While stdout is an option... in environments like GCP the logs would reach more targets that I would like to. An example would be a datasource for Grafana, like Loki. |
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I'm playing a bit with Dragonfly operator and I'm trying to get a sidecar for logging.
While there are some options, CR supports additionalContainers, additionalVolumes, I couldn't find anything for volumeMounts or additionalVolumeMounts. Without this, I cannot do patterns like: file-based log sidecars, config/data injection into the main container or shared scratch/work directories between main and sidecar.
The plain Dragonfly Helm chart already supports extraVolumes and extraVolumeMounts for the main container - the operator CRD is missing the equivalent capability.
This would align operator functionality with the chart but I'm wondering if I'm missing something. Of course, there are some options to collect these logs via stdout but it's not something I'd like to do in this situation.
Thank you!
All reactions