feat(helm): make the PVC access modes configurable (#3061)

persistence.data.accessModes and persistence.uploads.accessModes default to
ReadWriteOnce, so existing installs render the same claims. ReadWriteMany lets a
backup pod mount the volumes; values.yaml and the docs warn that SQLite allows
only one writer of travel.db. CI renders the override too.
This commit is contained in:
Maurice
2026-11-13 09:14:16 +01:00
parent cd53d0a895
commit 2a448722c6
5 changed files with 29 additions and 4 deletions
+11
View File
@@ -190,6 +190,17 @@ persistence:
size: 1Gi # uploaded files — increase if you expect large media uploads
```
Both claims are `ReadWriteOnce` by default. Set `persistence.data.accessModes` or `persistence.uploads.accessModes` to change that, for example so a backup container in another pod can mount the volume:
```yaml
persistence:
data:
accessModes:
- ReadWriteMany
```
> **Warning:** A `ReadWriteMany` data volume is only safe for pods that read it. SQLite needs every process that writes `travel.db` on the same host, so a second writer over a network filesystem corrupts the database. Keep `updateStrategy: Recreate` either way.
### Security Context
```yaml