mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 10:24:05 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user