I have psmdb server helm chart ( 1.19.0 ). I am trying to add an additional mount in order to have audit logs write to it. I am not sharding, only using the replica set. Is this allowed? I have tried several methods with no success.
Hi @Henry_Smearman,
Unfortunately, as of 1.19.0, it’s not possible to add volume mounts to mongod container.
You can configure volumes for your sidecars and run something like fluentd to collect audit logs.
Can you tell me more about your use case? Are you worried about disk usage of audit logs?
Hi @Ege_Gunes
Thanks for your reply. We have another process that we are using that will pick up logs, I wanted to create a mount that could be shared between that process and mongod for easier pick up. I have tried to add mounts to a sidecar but so far have not had any luck with that. I can mount the data dir to my sidecar but I am getting an error when trying to create a claim where the metadata is not being recognized. I reached out for that as well Metadata empty when creating a PVC for sidecar in MongoDB
Hi Again @Ege_Gunes
Im still having an issue with the sidecar PVC mount and found this in the forum – > SidecarPVCs Metadata Pruning Issue in Percona MongoDB Operator Deployment Has this been fixed in 1.19.0 ? It is the same exact scenerio / problem I am having.