filestore_enable
Description
The filestore_enable parameter enables Google Cloud Filestore NFS volumes, declared as gcpFilestore entries under a Service's volumeOptions. Setting it to true enables the Filestore API (file.googleapis.com) and the GKE Filestore CSI driver, and creates a filestore-rwx StorageClass on the Rack's VPC that provisions basic HDD (standard tier) instances, deletes an instance when its volume is removed, and allows volume expansion.
Each gcpFilestore volume is its own Filestore instance for its Service. The Processes of the Service share it; two Services that declare the same id get two separate instances.
Default Value
The default value for filestore_enable is false.
Use Cases
- Shared Service Volumes: Let every Process of a Service read and write the same file system.
- Persistent Storage: Keep files across restarts, deploys and scaling events.
- ML Model Storage: Store large model weights once and mount them read-only in every Process. See Populating a Read-Only Volume.
Setting Parameters
$ convox rack params set filestore_enable=true -r rackName
Updating parameters... OK
The parameter is also in the Console's rack settings, under Performance & Scaling.
Viewing Current Configuration
$ convox rack params -r rackName
Example Configuration
services:
web:
build: .
port: 3000
volumeOptions:
- gcpFilestore:
id: "shared-data"
accessMode: ReadWriteMany
mountPath: "/mnt/data/"
A deploy with a gcpFilestore volume to a Rack where filestore_enable is not true fails with gcpFilestore volumes require the filestore_enable rack parameter. See Google Cloud Filestore Volumes for every option.
Additional Information
- Cost: each
gcpFilestorevolume is a separately billed basic HDD Filestore instance of at least 1TiB. See Filestore pricing. - Disabling: remove every
gcpFilestorevolume before settingfilestore_enable=false. Setting it tofalseremoves thefilestore-rwxStorageClass, and any deploy that still has agcpFilestorevolume fails. The CSI driver and the Filestore API stay enabled, so volumes that are already mounted keep working, and removing a volume still deletes its instance. The parameter cannot be cleared; set it tofalse. - Uninstall:
convox rack uninstalldoes not delete Filestore instances. Delete the Apps or theirgcpFilestorevolumes first, and wait until the instances no longer appear ingcloud filestore instances list. - Version: requires Rack version 3.26.1 or later and CLI version 3.26.1 or later. An older CLI rejects the parameter with
unknown parameter 'filestore_enable' for gcp provider. On an older Rack,gcpFilestoreentries inconvox.ymlare ignored and no volume is created. - Downgrade: downgrading below 3.26.1 removes the parameter and the StorageClass; the driver and existing volumes stay. The next deploy of an App with
gcpFilestorevolumes on the older Rack deletes those volumes and their data. - Providers: GCP only. Azure Racks use azure_files_enable, and AWS Racks use efs_csi_driver_enable.