Volumes
Volumes give tasks a durable, versioned file system that they mount and read and write like a local directory. A Volume is served inside the task pod by FUSE, so on a self-managed cluster the data plane must give task pods a way to get a FUSE mount. The dataplane chart does this with one of two DaemonSets, depending on its version: the mount broker from chart version 2026.9.4 (on by default from 2026.9.7), or the FUSE device plugin in versions before 2026.9.4:
| Mount broker (recommended) | FUSE device plugin (legacy, chart before 2026.9.4) | |
|---|---|---|
| Chart value | uvolMountBroker.enabled |
fuseDevicePlugin.enabled |
| Task pod privileges | None | CAP_SYS_ADMIN + the smarter-devices/fuse device |
Who calls mount(2) |
The broker, on the node | The task pod itself |
Task image needs fuse3 |
No | Yes |
| Task code | allow_volumes() |
flyte.PodTemplate().allow_fuse() |
Prefer the mount broker: it is the only option that leaves the task pod
completely unprivileged, so Volumes work under restricted Pod Security
Standards. The device plugin exists only in dataplane chart versions before
2026.9.4, and no released chart version has both. Upgrading to 2026.9.4 or later
removes the device plugin, and any pod that requests smarter-devices/fuse, such
as one using allow_fuse(), becomes unschedulable. Helm gives no warning, so
check for such pods before upgrading.
Enable the mount broker
The broker is a CSI node driver that runs as its own DaemonSet. It premounts
a FUSE channel inside the kubelet publish target for each volume-using pod and
hands that open file descriptor to the pod’s in-process client over a unix
socket. The pod adopts the descriptor instead of mounting, so it performs no
mount(2) and needs no CAP_SYS_ADMIN, no /dev/fuse, and no hostPath.
Privilege is confined to the DaemonSet; the workloads it serves stay fully
unprivileged. The broker holds no object-storage credentials: the data plane
authenticates in-pod under the pod’s own identity.
It is enabled by default from dataplane chart version 2026.9.7. On 2026.9.4 through 2026.9.6, or if you turned it off, enable it in your data plane values:
uvolMountBroker:
enabled: truehelm upgrade <release> <chart> -n <namespace> \
-f values.yaml \
--set uvolMountBroker.enabled=trueThe broker must cover every node a volume-using task pod can land on. A
pod that lands on a node without the broker fails to start with
driver volumes.union.ai not found (or whatever driverName you set). By
default the broker’s nodeSelector is empty and its tolerations tolerate
every taint, so it runs on every node. If you narrow nodeSelector or
tolerations, make sure the nodes it still runs on include every node your
task pods can schedule to.
Verify the broker
Confirm the DaemonSet is rolled out on every eligible node:
kubectl get daemonset union-uvol-broker -n <namespace>Readiness means kubelet has actually registered the CSI driver, not merely that
the process started, so a ready pod is a node that can serve a mount. Confirm
the driver is registered cluster-wide, using whatever you set
uvolMountBroker.driverName to (the default is volumes.union.ai):
kubectl get csidriver volumes.union.aiOnce both look healthy, tasks using allow_volumes() can mount Volumes.
Broker configuration reference
| Key | Default | Description |
|---|---|---|
uvolMountBroker.enabled |
true |
Enable the mount-broker DaemonSet and its CSIDriver. The default is true from chart version 2026.9.7 and false before it. |
uvolMountBroker.driverName |
volumes.union.ai |
CSI driver name. Task pods reference it; change it only if it collides. |
uvolMountBroker.nodeSelector |
{} |
Nodes to run on; empty means all nodes. Must cover every node a volume task pod can schedule to. |
uvolMountBroker.tolerations |
[{ operator: Exists }] |
Tolerate every taint, so it reaches tainted nodes that still run task pods. |
uvolMountBroker.kubeletDir |
/var/lib/kubelet |
Kubelet root. Change it if your kubelet uses a non-standard directory. |
uvolMountBroker.socketDir |
/run/uvol |
Host directory for the per-volume unix sockets. |
uvolMountBroker.stateDir |
/var/lib/uvol/state |
Host directory for the broker’s state journal (lets channels survive a broker restart). |
uvolMountBroker.profilerPort |
10254 |
Port serving /metrics, /healthcheck and the /readyz readiness endpoint. |
uvolMountBroker.metricsScope |
uvol_broker |
Prefix for the metrics the broker emits. |
uvolMountBroker.priorityClassName |
"" |
Priority class for the DaemonSet pods. Empty, with priorityClass.create: true (the default), uses a class the chart creates for the release. Don’t set a reserved system class such as system-node-critical: GKE rejects those outside kube-system. |
uvolMountBroker.resources |
requests: cpu 30m, memory 32Mi; limits: memory 256Mi |
The broker sits on the task’s open() hot path, so the CPU request is a scheduling-latency knob rather than a utilization estimate. There is deliberately no CPU limit. |
The broker is safe to upgrade in place: existing kernel mounts and the file descriptors held by running pods survive a restart, and the state journal plus client re-registration resume the rest.
Enable block volumes
Block volumes store
a Volume as one ext4 image that the broker attaches as a loop device and mounts
for the pod. Small-file workloads such as build caches then run close to
local-disk speed. The task pod stays unprivileged, but attaching the image
makes the node’s kernel parse a file system whose bytes the task controls,
so the broker only allows it for pods matching uvolMountBroker.block.allow.
When block.allow is unset, the default depends on the data plane’s scope:
singleNamespace: false(multi-namespace): every pod may use block volumes ([{namespace: "*"}]).singleNamespace: true(the chart default): pods in the release namespace, where every task runs in this mode, may use block volumes.
On a cluster that runs untrusted workloads, set an explicit list to allow only specific trusted ones:
uvolMountBroker:
enabled: true
block:
allow:
- namespace: builders # every pod in this namespace
- namespace: ci
serviceAccount: buildkit # only this service account in "ci"A pod may use block volumes when any rule matches it, and a rule matches
when every field it sets matches the pod. A rule that sets only
serviceAccount matches that service account in every namespace. Kubelet
supplies the pod’s namespace and service account to the broker, so a task
cannot forge them. Fields are glob patterns: team-* matches a prefix, and
[{namespace: "*"}] allows every pod on the cluster.
Allowing every pod, whether explicitly or through the multi-namespace
default, lets any task that can run on the cluster present a crafted file
system image to the node kernel. On a cluster shared by tenants who don’t
trust each other, set an explicit list, or allow: [] to disable block
volumes.
A rule that sets neither field is rejected when the broker starts, so a typo cannot silently widen the opt-in. A pod that isn’t allowed gets a mount error naming the reason.
| Key | Default | Description |
|---|---|---|
uvolMountBroker.block.allow |
unset | Rules (namespace, serviceAccount, or both; glob patterns) for pods allowed to use block volumes. Unset: every pod when singleNamespace is false, pods in the release namespace when it is true. [] disables block volumes. |
uvolMountBroker.block.freezeMax |
60s |
Thaw a block volume that a client froze for a commit after this long, so a client that dies mid-commit cannot stall the volume’s writers. |
The FUSE device plugin (legacy path)
The device plugin exists only in dataplane chart versions before 2026.9.4.
Later versions removed fuseDevicePlugin: setting it there does nothing, and
Helm gives no warning, so use the mount broker. Task pods take the
mount themselves, so they need CAP_SYS_ADMIN and their images need fuse3.
Why a device plugin is required
Mounting a FUSE file system requires the pod to open the host /dev/fuse
character device. Simply exposing /dev/fuse through a hostPath is not
enough: the kernel’s devices cgroup denies the open() with EPERM, because a
hostPath surfaces the device node but cannot add it to the pod’s
devices-cgroup allowlist. The only thing that adds a device to that allowlist is
kubelet, and kubelet only does so when the pod requests the device as a
device-plugin resource.
Dataplane chart versions before 2026.9.4 ship an opt-in FUSE device-plugin DaemonSet that
advertises the host /dev/fuse device as the Kubernetes extended resource
smarter-devices/fuse. When it is enabled, a task pod that requests
smarter-devices/fuse gets /dev/fuse injected into its devices-cgroup
allowlist and can complete the mount with only the CAP_SYS_ADMIN capability:
no privileged container and no /dev/fuse hostPath.
Enable the FUSE device plugin
On a dataplane chart version before 2026.9.4, the DaemonSet is disabled by default. Enable it in your data plane values:
fuseDevicePlugin:
enabled: trueApply the change with a Helm upgrade, layering it onto your existing platform values:
helm upgrade <release> <chart> -n <namespace> \
-f values.yaml \
--set fuseDevicePlugin.enabled=trueEnabling it is the only required step. Because the chart renders nothing for this feature when it is off, turning it on does not affect any other workloads.
Restrict the plugin to specific nodes (optional)
By default the DaemonSet runs on every node (it tolerates all taints). To run
it only where unprivileged FUSE is wanted, label those nodes and set a
nodeSelector:
kubectl label node <node-name> union.ai/fuse=truefuseDevicePlugin:
enabled: true
nodeSelector:
union.ai/fuse: "true"A volume-mounting task scheduled onto a node where the plugin is not running
cannot mount its Volume and the task will fail. If you restrict the plugin with
a nodeSelector, make sure volume workloads are scheduled onto the labeled
nodes (for example with matching task resources or node selectors), or omit the
nodeSelector so the resource is advertised on all nodes.
Verify the device plugin
After the upgrade, confirm the DaemonSet is rolled out:
kubectl get daemonset -n <namespace> -l app.kubernetes.io/name=fuse-device-pluginThen confirm a node advertises the extended resource:
kubectl get node <node-name> -o jsonpath='{.status.allocatable.smarter-devices/fuse}{"\n"}'
# 1000A non-zero value means pods on that node can request smarter-devices/fuse and
mount Volumes.
Device-plugin configuration reference
The fuseDevicePlugin values block in dataplane chart versions before 2026.9.4:
| Key | Default | Description |
|---|---|---|
fuseDevicePlugin.enabled |
false |
Enable the FUSE device-plugin DaemonSet. |
fuseDevicePlugin.devices |
[{ devicematch: ^fuse$, nummaxdevices: 1000 }] |
Devices the plugin advertises. nummaxdevices is the per-node claim count. |
fuseDevicePlugin.nodeSelector |
{} |
Restrict the DaemonSet to selected nodes; empty means all nodes. |
fuseDevicePlugin.tolerations |
[{ operator: Exists }] |
Tolerate everything so it lands on every selected node, including tainted ones. |
fuseDevicePlugin.securityContext |
drops ALL, adds SYS_ADMIN |
The plugin needs SYS_ADMIN to read host devices and register with kubelet; the workloads it serves stay unprivileged. |
fuseDevicePlugin.priorityClassName |
"" |
Override the priority class (defaults to operator.priorityClassName). |
fuseDevicePlugin.resources |
cpu: 10m–100m, memory: 15Mi |
Resource requests and limits for the plugin pod. |
Using Volumes
Once one of the two DaemonSets is running (the device plugin only on a chart
version before 2026.9.4), no further cluster setup is needed.
Users create and mount Volumes directly from their task code, with
allow_volumes() on the broker, or flyte.PodTemplate().allow_fuse() on the
device plugin. See the
Volumes user guide for the
programming model.