Apps in SCALE rely on several kinds of storage for core data:
PVC
), a specific volume which Kubernetes will not delete (i.e. persist) through upgrades, restarts, and rollbacks of your app/chart.hostpath
), a path (/mnt/tank/pool/folder) to a data volume, typically a dataset within a pool on your SCALE installation, or a mounted folder to network attached storage.emptyDir
).NFS Share
) to your app storage.You can choose during app installation to use a PVC to store all of your app's data, or manually assign a hostpath.
Note: We only provide support for apps using PVC for core app storage, often named "config", but you can always add additional hostpaths for other storage, such as your media.
Even if an app doesn't let you specify a hostpath in its chart config, the TrueCharts config lets you add additional app storage through hostpaths which are linked to a local path on the app (e.g linking /mnt/tank/pool/folder
to /media/folder
). This will allow the path on your SCALE installation to be available from your app, assuming permissions are correctly configured.
From your SCALE App's configuration (during or after installation):
Storage and Persistence
Additional App Storage
, click Add568
)hostpath
)/mnt/tank/pool/folder
)/media/folder
)Permissions apply for app storage and are based on the app's fsGroup which you can configure during app installation. By default most apps will set this to the apps
group (568).
Apps also have a Automatic Permissions option for app storage and additional app storage. If you enable automatic permissions, the app will attempt to chown
the hostpath and all subfolders within the hostpath during deployment. Note: This may not work for large volumes.