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
Overriding the Secret key name
Validation rules
Complete Secret examples by store type
Online store Secrets
Redis
Postgres
Cassandra
Snowflake (online)
DynamoDB
Bigtable
Datastore
MySQL
Hazelcast
HBase
Other supported online store types
Offline store Secrets
Snowflake (offline)
BigQuery
Postgres (offline)
Other supported offline store types
Registry Secrets
SQL (SQLAlchemy) registry
Snowflake registry
Multi-store Secret (single Secret for all components)
ConfigMap usage (batch engine)
Troubleshooting
Symptom
Likely cause
Fix
See also
Last updated
Was this helpful?