@xemahq/storage-driver-longhorn
v0.1.7
Published
Longhorn RWX StorageDriver — Kubernetes Persistent Volume Claims with per-pool sub-path mounts (Phase A.3 of xema-os-plan §workspace).
Downloads
3,079
Readme
@xemahq/storage-driver-longhorn
Kubernetes Longhorn RWX storage driver
Overview
A Kubernetes Longhorn implementation of the workspace storage-driver contract. Each storage pool maps onto one read-write-many persistent volume claim, and per-allocation isolation is a sub-path mount translated by the matched scheduler. The consuming service injects a Kubernetes client so this package stays free of a hard SDK dependency and respects the storage boundary.
When to use it
- Use it for Kubernetes clusters running Longhorn for shared workspace storage.
Installation
pnpm add @xemahq/storage-driver-longhornUsage
import { createLonghornStorageDriver } from '@xemahq/storage-driver-longhorn';
const driver = createLonghornStorageDriver({
k8s: myK8sClient,
namespace: 'xema-storage',
defaultStorageClass: 'longhorn',
});
await driver.ensurePool(poolSpec);License
Apache-2.0 © Xema — xema.dev
