2 — Persistence
Persistence patterns at a glance
Pattern
Best for
Data survives pod restart?
File persistence
Ephemeral (emptyDir)
services:
onlineStore:
server: {} # no persistence block → emptyDirPVC — reference an existing PVC
PVC — let the operator create one
DB / store persistence
Secret format
Injecting DB credentials into the server pod
Store types by component
Online store
Offline store
Registry
Common patterns
Redis online store
Postgres for both online store and registry
See also
Last updated
Was this helpful?