Storage & Volumes
SQLite Volumes
The sqlite shorthand creates a PVC and mounts it at the specified path:
components:
backend:
image: myapp:latest
port: 8000
sqlite:
mount_path: "/data"
file_name: "app.db"
volume:
size: "5Gi"
storage_class: "standard"
from helm_me import web, image, sqlite, persistent
backend = web(
image=image("myapp:latest"),
port=8000,
sqlite=sqlite(
mount_path="/data",
file_name="app.db",
volume=persistent(size="5Gi", storage_class="standard"),
),
)
This creates:
- A PersistentVolumeClaim with the specified size
- A volume mount at the specified path
Volume CLI
Upload files to a running PVC:
helm-me volume upload backend ./local-data.db /data/app.db