Volumes

Volumes

Storage that survives a rollout. You mount it into an app at a path you choose.

View .md Reviewed against 2026.9.10
On this page

What it is

A container loses its own files every time it restarts. A volume keeps its contents. Restarts, rollouts and new images don't change that. Inside the container, the volume shows up at a path you choose.

You always create a volume together with an app. If you detach it or delete the app, the volume stays in the project with all its data. The Volumes page then marks it as Orphaned. It stays that way until you attach it again or delete it.

When you'd use it

  • For files that users upload and your app stores.
  • For a cache or index that takes long to rebuild. A whole database would be too much for it.
  • For any folder that must still be there after a deploy.
Not this

Two apps can't write to the same volume. If two apps need shared data, use a database or a bucket. A shared volume between two containers only causes trouble.

Add one to an app

  1. Open the app and go to Storage.
  2. Press Attach volume. Enter a name, a size and the path inside the container.
  3. Save. The app restarts once, and the volume is attached. The first time, the folder is empty.

You set the size with a slider. It goes up to your plan's limit. There is no text field on purpose. A typo in the size could get expensive fast, whether too big or too small.

The Volumes list of a project, with each volume's size and the app that mounts it.The Volumes list of a project, with each volume's size and the app that mounts it.
The Volumes list of a project, with each volume's size and the app that mounts it.

Growing one

Open the volume and raise the size. The volume grows while it is in use. The app keeps running. Once the filesystem has grown too, the new space is ready.

You can't shrink a volume. Kubernetes doesn't offer that, so klickops doesn't either. If you need a smaller volume, create a second one. Then copy the data and mount the new volume.

Copies and restores

Every night klickops copies each volume into the project's backup bucket and keeps the last 7 nights. It takes a storage snapshot first, so a file like a SQLite database lands in the copy in one consistent state. Where the cluster has no snapshots, klickops copies the running volume, and the copy says so.

To get a night back, open Backups in the project and choose Restore… on the folder. Put back stops the apps that use the volume, replaces its contents with that night and starts them again. Everything written after that night is gone, so download it first if you need it. Download gives you the night as a .tar.gz and changes nothing.

From the terminal, klops volumes copies <volume> lists the nights and klops volumes copy <volume> makes a copy now. klops volumes restore and klops volumes download put a night back or save it.

Settings reference

SettingDefaultWhat it does
NamenoneThe volume's name in the project. You can't change it later.
Sizefrom the sliderHow much storage the volume has. It can grow while running, but never shrink.
Mount pathnoneWhere the volume appears inside the container, for example /data.
Backupevery nightCopied into the project's backup bucket each night, 7 nights kept. Turn it off on the project's Backups page under Settings.

Limits and gotchas

  • A volume can only grow. Plan the size for about a year.
  • Only one app writes. A volume is attached to exactly one app. To scale that app to several replicas, you need storage that supports it. Or you store the data in another way.
  • The volume hides what was there before. If the image already has files at that path, you no longer see them. klickops doesn't merge them with the volume. So pick an empty folder.
  • The first copy runs at night. A new volume is copied at the next time of night, or at once with Back up now on the project's Backups page.
Careful

When you delete an app, its volumes stay in the project. When you delete a volume, its data is gone for good.

  • Apps: they mount volumes.
  • Databases bring their own storage and need no volume.