Feat: Add configurable media volume support#48
Conversation
|
Why is this configuration much more complicated and different than overrides? |
The main complicated part is this, right? It is needed to support read-write volumes. Because traccar docker container ships with traccar-helm/charts/traccar/values.yaml Lines 165 to 166 in 0a2d976 - we add this helm templating to properly set the This complication was not needed for web override because that is read-only, not read-write. |
|
Wait, why is it not needed for web override? |
Web override is read only, and we do |
|
Web override is NOT readonly! |
Overview
Following up on the startup permissions fix (#46), this PR adds support for a configurable media volume to handle file/image uploads to
/opt/traccar/media.mediavolume configuration block invalues.yaml(disabled by default) to allow mounting a PVC or other storage volume.podSecurityContext.fsGroupto match the container'srunAsUser(typically1000) ifmedia.enabledis true (unless custom fsGroup is defined), ensuring the directory is writeable without manual troubleshooting.values.yamldocumenting PVC andemptyDirconfiguration options.Testing Done
Verified in my self-hosted deployment that device images are successfully uploaded and persisted across pod restarts.