You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Persist /etc/frepple in the Kubernetes manifest so runtime config survives pod restarts
The manifest persisted only the log directories, so /etc/frepple reset to the
image defaults on every pod restart — regenerating the secret key (logging users
out) and dropping anything the app writes to djangosettings.py at runtime
(installed apps, scenario count, display settings).
Mount /etc/frepple on a PVC, seeded from the image on first start by an init
container. The init container mounts the volume at /mnt/config (so the image's
own copy stays visible) and runs as root, since the freshly provisioned volume
root is root-owned and cp -a must preserve the image's ownership; the copy is
skipped on later starts, preserving runtime changes. This matches how
docker-compose already persists the directory on a named volume. Document it,
including the seed-once / reconcile-on-upgrade caveat.
Refs #747.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments