It is not possible to reduce the size of an existing filesystem. You can only
expand it.
Creating a Filesystem
1
Create a filesystem
Log in to the Latitude.sh dashboard and navigate to Storage > File
storage in the sidebar. Click Create filesystem, specify the name of
your filesystem and click Create.
Attaching Storage to a server
1
Connect filesystem to server
From the Latitude.sh dashboard, navigate to Bare metal and go to Storage. Click Connect to bare metal and copy the code shown.Log in through SSH to the server you want to attach the filesystem to and paste the code you just copied. When prompted, enter the directory where you want to mount the filesystem.
By default, only
root
and storage-users
can write to the filesystem. If
needed, you can give others write access by using sudo usermod -aG storage-users [username]
Attaching Storage to a container
1
Deploy container with filesystem
Navigate to Serverless in the left sidebar and click Deploy container. In the Container Settings, provide a name for your container, specify the image and tag, and select or enter a registry URL. You can also add a new private registry if needed.After selecting the container size, choose an existing filesystem from the dropdown, or create a new storage volume. Specify the app destination and storage origin, then click Deploy.