pillar-csi

Export your ZFS and LVM pools to Kubernetes.

Run one CSI driver for every pool on your storage nodes. The Linux kernel's NVMe-oF target, iSCSI target, or NFS server serves each volume to your pods over TCP.

Section through a pillar-csi clusterPods sit on Kubernetes worker nodes. Two storage nodes, one with a ZFS pool and one with an LVM volume group, run pillar-agent and take control calls from pillar-controller over gRPC port 9500. The data path runs only through the Linux kernel: nvmet, the LIO iSCSI target, or the NFS server on the storage node; NVMe-oF over TCP port 4420, iSCSI over TCP port 3260, or NFSv4.2 over TCP port 2049; and nvme_tcp, iscsi_tcp, or the NFS client on the worker. SMB is drawn dashed because it is planned.One Helm releasepillar-controllerpodpodpodWorker nodes · pillar-nodegRPC :9500agentZFS poolagentLVM VGStorage nodeszvols, datasets and logical volumesin pools you already runLinux kernelnvmet · LIO · nfsdnvme_tcpiscsi_tcpNFS clientNVMe-oF/TCP :4420iSCSI :3260NFSv4.2 :2049SMB · planned123
Section A-ABrass is the data path, and it runs only through the kernel. Dashed lines are planned.

One driver for every backend and protocol

Install one Helm release instead of a driver for each backend. ZFS and LVM pools share one configuration model: each setting has the same YAML shape in a PillarStore or PillarProtocol, a PillarStorageClass, and a PVC annotation.

How overrides work

Driver schedule
AxisShippedPlanned
BackendsZFS zvols and datasets, LVM logical volumesMore backends
ProtocolsNVMe-oF/TCP, iSCSI, NFSv4.2SMB

Shipped Planned, not available yet

Detail A One release serves both backends
# values.yaml
agent:
  backends:
    - zfs:
        pool: tank
        parentDataset: k8s
    - lvm:
        volumeGroup: data-vg

The driver images carry the ZFS, LVM, filesystem, and NFS mount/export tools. The agent writes the NVMe-oF and iSCSI target configuration itself and supervises NFS exports. The node plugin connects or mounts without host packages. You install nopillar-csi packages on the host, and the driver needs no SSH.

Check your kernel

In the images

  • zfs and zpool from OpenZFS 2.4
  • lvm2
  • mkfs.ext4, mkfs.xfs, and the resize tools
  • NFS export supervision in pillar-agent and a bundled mount.nfs helper in pillar-node
  • NVMe-oF and iSCSI target setup through configfs, replacing nvmetcli and targetcli
  • NVMe-oF connect through /dev/nvme-fabrics, replacing nvme-cli
  • iSCSI login in the node plugin, replacing iscsiadm and iscsid

On your hosts

Storage nodes
nvmet and nvmet_tcp, the LIO iSCSI modules, or kernel NFS server support (nfsd), plus a ZFS pool or LVM volume group
Workers
nvme_fabrics, nvme_tcp, iscsi_tcp, or NFS client support (nfs/nfsv4)
Cluster
Kubernetes 1.24 or later, Helm 3.8 or later

General notes

  1. Each volume lives on one storage node. pillar-csi does not replicate data, so a volume is unavailable while its node is down. Even an NFS ReadWriteMany export serves from one node's pool.
  2. The kernel carries every read and write. The controller, agent, and node plugin can restart without interrupting connected volumes.
  3. SMB is planned and unavailable. NVMe-oF/TCP, iSCSI and NFSv4.2 ship today, using the same Store → Protocol → StorageClass model.

Star pillar-csi on GitHub

Stars help other self-hosters find the project.

Star pillar-csi
Star pillar-csi on GitHub