Introducing a new way to review your PRs.

Read the announcement

replicatedhq / kurl

Production-grade, airgapped Kubernetes installer combining upstream k8s with overlays and popular components

View on GitHub

19 documents · Updated Nov 23, 2026

docs / storage-addons

Storage addons

Storage addons give a kURL cluster durable places for Kubernetes volumes and S3-compatible data. Rook-Ceph, Longhorn, and OpenEBS LocalPV offer different volume failure and placement models. MinIO and the registry build object-data paths on top of those choices. This page is a companion to Addon platform and relates to Network addons and Operational service addons.

Storage provider model

Storage class boundary

A storage class is the Kubernetes contract between an application volume request and a storage provider. The selected class controls where new data is placed. Existing volumes keep their old provider until a migration copies them to a new class.

The main provider choices have these roles:

ProviderMain data typePlacement modelMain lifecycle concern
Rook-CephBlock volumes and an object storeReplicated across storage hostsHealth checks and data migration before removal
LonghornBlock volumesReplicated volume data on cluster nodesHost readiness and replica health during migration
OpenEBS LocalPVBlock volumesLocal directory on the node that hosts the volumeCapacity and node placement are part of the volume state
MinIOS3-compatible object dataA PVC, host path, or OpenEBS-backed HA setEndpoint and data format must survive upgrades
RegistryContainer image layers and metadataRook or MinIO object storage, or a registry PVCChanging the backend requires a data copy and can affect image pulls

The provider choice also sets the default storage class when the addon is allowed to do so. A PVC with no explicit class can then follow that cluster default. This makes a default-class change a data placement decision rather than only an installer setting.

References: addons/…/install.sh• L179-211 addons/…/tmpl-localpv-storage-class.yaml• L1-14 addons/…/install.sh• L50-58 addons/…/tmpl-persistentvolumeclaim.yaml• L3-13

Block storage providers

Rook-Ceph storage

Rook-Ceph manages a Ceph cluster that provides replicated RBD block volumes and a Ceph object gateway. It uses raw devices on cluster nodes by default. Node count, device state, and Ceph health therefore affect both capacity and availability.

Rook exposes the block pool through a CSI storage class. It also creates the object store used by services that need an S3 endpoint. Rook therefore has two data paths to protect: PVC data and object-store data. Removing Rook is not complete until both paths have moved when both are in use.

Rook upgrades and migrations wait for healthy Ceph state. A move away from Rook checks for volumes that still use a Rook driver and records PVC and object-store migration separately. Supported storage-class moves from Rook lead to Longhorn or OpenEBS.

The current 1.19.7 package includes the Rook operator, Ceph CSI components, and Ceph images in its offline image manifest. The generator gathers CSI sidecar images from the Rook release when they are listed there, or from the Ceph CSI operator defaults when newer releases leave them implicit. It fails if neither source provides the required images. From this release, generated Rook assets use the SecureBuild image set. This keeps the storage contract intact while making the packaged image set part of the release lifecycle.

References: addons/…/cluster.yaml• L11-57 addons/…/Manifest• L5-14 addons/…/install.sh• L64-137 addons/…/generate.sh• L5-32 addons/…/generate.sh• L70-110 addons/…/generate.sh• L176-181

Longhorn storage

Longhorn provides replicated block volumes through its own CSI storage class. It stores volume data under /var/lib/longhorn and needs host support for iSCSI, NFS tools, and bidirectional mount propagation. The installer checks those host conditions before it treats the provider as ready.

Longhorn becomes the default only when no other default class already exists or when its class is already the default. This lets it run beside another provider without silently moving new application volumes.

Longhorn treats health as a migration contract. Before a move it checks volume and node health. On a single-node cluster it can reduce volume replicas to one for the copy and restore the old counts after the move. The supported migration targets are Rook and OpenEBS. Longhorn upgrades move one minor version at a time.

References: addons/…/install.sh• L7-34 addons/…/install.sh• L50-92 scripts/…/longhorn.sh• L1-34 pkg/…/longhorn.go• L120-183 pkg/…/longhorn.go• L319-400 scripts/…/longhorn.sh• L92-179

OpenEBS LocalPV storage

OpenEBS LocalPV provides node-local volumes through a storage class. The standard class stores data under /var/openebs/local, waits until a workload selects a node, and deletes the volume when its claim is released. The volume is tied to that node. Application replicas or another backup path must protect against node loss.

OpenEBS 4.6.0 packages the LocalPV provisioner and helper image as a versioned addon. The addon creates its namespace and operator resources, then applies the LocalPV class only when LocalPV is selected. A class named ${OPENEBS_LOCALPV_STORAGE_CLASS} uses openebs.io/local and becomes default only when the existing default-class rules allow it. This preserves an existing default so OpenEBS can be present as a migration destination without redirecting unrelated PVCs.

OpenEBS can receive migrated data from Rook or Longhorn when those providers are no longer selected. The migration checks provider health and destination capacity before it copies data. It stops pods that mount the source PVCs, so the move is an availability event as well as a storage event. The target is node local, which makes per-node free space and node placement important.

The 4.6.0 generated package uses SecureBuild images for the LocalPV provisioner and its helper. Generation renders and verifies the complete package before it replaces the released directory. A failed image check therefore blocks publication instead of leaving a partial addon that may be mistaken for a valid version.

References: addons/…/Manifest• L1-2 addons/…/openebs.tmpl.yaml• L79-188 addons/…/install.sh• L22-49 addons/…/generate.sh• L5-24 addons/…/generate.sh• L27-73 pkg/…/openebs_disk_space_validator.go• L23-33 pkg/…/openebs_disk_space_validator.go• L35-111

Object storage providers

MinIO object storage

MinIO supplies an S3-compatible endpoint for cluster services. Its normal single-instance form uses one PVC or a configured host path. When OpenEBS LocalPV is enabled, the addon can also create a six-member HA stateful set with one local PVC per member. The selected form changes the failure and capacity model of the object store.

MinIO publishes its endpoint and credentials for other addons. The registry uses this contract to store the docker-registry bucket. MinIO also acts as the destination when object data moves away from the Rook Ceph object gateway. Migration state is recorded so a later installer run does not copy the same object data again.

MinIO upgrades can require a format move for older file-backed data. That move uses a temporary backend and then swaps the data path. It makes MinIO unavailable during the cutover and needs extra capacity. A failed or declined move stops the upgrade rather than silently changing the data format.

The current generated MinIO package records its SecureBuild image digest. The installer applies that digest as a workload change even when the addon version stays the same. This makes a rebuilt image tag trigger a rollout without changing the object-store endpoint or data path.

References: addons/…/install.sh• L3-109 addons/…/install.sh• L247-286 addons/…/install.sh• L588-702 addons/…/generate.sh• L16-36 addons/…/Manifest• L1-2 addons/…/Dockerfile• L4-36

Registry storage paths

Object-store registry

The registry stores image layers in the docker-registry S3 bucket when Rook or MinIO object storage is available and no registry PVC already exists. Two registry replicas can then share the object store. The registry receives the endpoint and credentials through a secret while the object store owns the data.

This path lets registry pods move or restart without moving image data with them. Backup and restore use the same bucket contract. Restore can recreate the bucket when it is absent, and backup copies its contents to the Velero backup area. Registry 3.1.2 packages a SecureBuild registry image and a versioned SecureBuild s3cmd helper image for these data paths.

References: addons/…/install.sh• L23-64 addons/…/tmpl-deployment-objectstore.yaml• L32-60 addons/…/tmpl-deployment-objectstore.yaml• L62-142 addons/…/patch-deployment-velero.yaml• L21-85 addons/…/tmpl-configmap-velero.yaml• L9-51 addons/…/Manifest• L1-3

PVC-backed registry

The registry uses a PVC when no usable object store is selected or when a registry PVC already exists. The PVC has read-write-once access and does not name a storage class. Kubernetes therefore binds it to the current default class. This mode runs one registry replica because the data path is a single mounted volume.

When a running object store is removed and the registry has no PVC, the installer can add a migration init step. That step copies the docker-registry bucket into the PVC before the registry serves the new backend. The choice is controlled by object-store removal state, so removing an addon can change the registry data path even when the registry addon remains selected.

Registry 3.1.2 keeps this path as a single-volume filesystem store. Its generated package uses the SecureBuild registry image and runs the registry with the permissions needed to read existing root-owned volume data. The data still follows the PVC's storage-class and node-placement rules.

References: addons/…/deployment-pvc.yaml• L44-114 addons/…/tmpl-persistentvolumeclaim.yaml• L1-13 addons/…/install.sh• L46-83 addons/…/patch-deployment-migrate-s3.yaml• L11-43 addons/…/tmpl-configmap-migrate-s3.yaml• L9-35 addons/…/generate.sh• L16-44

Storage lifecycle

Provider replacement

Provider replacement is a data-copy flow. It keeps the source provider in place until the destination is ready, moves PVC data, moves object data when needed, and then removes old resources. The installer pauses controllers that could change replica counts during the copy and restores them after the move.

The common transitions are:

  • Rook to Longhorn when neither Rook nor OpenEBS remains selected.
  • Rook to OpenEBS LocalPV when OpenEBS is the selected destination.
  • Longhorn to OpenEBS LocalPV when Longhorn is removed.
  • Rook object gateway to MinIO when Rook is removed and MinIO remains selected.
  • Rook or MinIO object storage to a registry PVC when S3 storage is disabled or removed.

The relationship between block-volume migration and object-store migration is important. A successful PVC copy does not prove that registry or other S3 data moved. Rook cleanup therefore waits for both records when both paths matter.

This diagram shows how a provider change protects data before it removes the old path.

flowchart LR
    A[Select destination provider] --> B[Check health and capacity]
    B --> C[Pause affected workloads or controllers]
    C --> D[Copy PVC data]
    D --> E{Object data in use?}
    E -- Yes --> F[Copy S3 buckets]
    E -- No --> G[Restore workload state]
    F --> G
    G --> H[Remove source provider only when no data uses it]

References: scripts/…/rook.sh• L199-300 scripts/…/rook.sh• L302-351 scripts/…/longhorn.sh• L92-179 addons/…/install.sh• L51-111 addons/…/install.sh• L325-390

Upgrade and removal boundaries

Storage addon upgrades are not uniform. Rook uses Ceph health and staged version checks. Longhorn accepts supported minor-version steps and checks its host environment. MinIO can require a data-format migration. OpenEBS keeps compatibility work for renamed resources and admission services as versions change.

Removal is more strict than installation. The system must first prove that no persistent volume still uses the source CSI driver. It must also retain the object store until its bucket data has moved or the operator has confirmed that no object data is required. These rules protect data that Kubernetes cannot show as a mounted PVC.

Versioned addon assets are generated from upstream Helm charts and then packaged with the images they need. The OpenEBS generator renders LocalPV resources, verifies SecureBuild image replacements, and publishes only a complete staging result. The Rook generator gathers CSI images from the operator release or the Ceph CSI operator defaults when the release does not list them, then applies SecureBuild replacements from 1.19.7 onward. The MinIO and registry generators record image rebuild markers so package or workload caches do not hide a changed image. A chart or image change can therefore affect the generated addon contract even when the lifecycle rules stay the same.

References: addons/…/generate.sh• L27-73 addons/…/generate.sh• L42-83 addons/…/generate.sh• L85-143 addons/…/generate.sh• L176-181 addons/…/generate.sh• L16-36 addons/…/generate.sh• L16-79 addons/…/Manifest• L1-3

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep default storage-class rules aligned with every addon that creates an unnamed PVC. A change can redirect the registry or another service to a new provider.
  • Preserve the endpoint, bucket name, and credential contract between Rook or MinIO and the registry backup, restore, and migration paths.
  • Update both PVC migration status and object-store migration status before changing the Rook cleanup gate.
  • Keep source and destination storage-class names consistent across capacity checks, volume copy commands, and default-class updates.
  • Keep local-storage paths and host prerequisites aligned with capacity checks. A provider can pass installer checks but fail when a workload is placed on a different node.
  • Preserve saved replica state across migration pause and restore. This includes Longhorn volume replicas and workloads that mount migrated PVCs.
  • Keep versioned addon manifests aligned with their rendered images. A new Rook or OpenEBS chart version must not produce an incomplete offline image manifest. For Rook, keep the CSI sidecar image sources and fail-closed checks aligned with releases that pin or omit those images.
  • Keep SecureBuild image rewrites and image-build markers aligned with the generated manifests and workload templates. A rebuilt image must both ship offline and trigger the intended rollout.
  • Keep registry migration and Velero patches aligned with the S3 helper image and the secret keys used by the object-store contract.

Important failure modes

TriggerConsequenceGuard
A PVC still uses the Rook or Longhorn CSI driver during provider removal.Cleanup stops and the old provider remains.Complete storage-class migration and verify that no PV uses the source driver.
Rook PVC data moves but its object-store data does not.Registry or other S3 data can be lost when Rook is deleted.Track both migration states and do not remove Rook until each required path is complete.
A Longhorn node lacks iSCSI, NFS tools, or mount propagation.Volumes cannot attach or the provider has no usable storage node.Run host initialization and require at least one node to pass the environment check.
OpenEBS LocalPV lacks space on a target node.A volume copy fails or the node can reach disk pressure.Check per-node free space and keep the root-disk reserve before migration.
MinIO format migration has no spare capacity or its downtime is declined.The MinIO upgrade stops before the new data path is active.Confirm the outage and provide a separate temporary directory or volume with enough space.
A rebuilt MinIO image keeps the same tag but its build marker is not applied.Existing pods continue to run the old image contents.Keep the manifest digest and workload annotation update in the generated package.
The registry switches to PVC mode while the S3 bucket is still the only copy.Image layers are missing from the new registry backend.Run the S3-to-PVC migration and wait for its completion marker before serving the PVC backend.
The registry PVC binds to an unintended default class.Registry data is placed on the wrong provider or node model.Review the default class before creating the unnamed registry PVC.
A generated addon manifest omits an image used by its rendered resources.An offline or air-gapped install cannot start the storage provider.Regenerate the manifest and compare its image set with the rendered addon resources.
A Rook release omits CSI sidecar references and its fallback defaults cannot be read.Rook package generation stops instead of producing a release with an incomplete image manifest.Keep the operator-release and Ceph CSI default sources available and require a CSI image match before rewriting or publishing.

Key files

FileWhy to read it
addons/…/cluster.yaml and addons/…/tmpl-rbd-storageclass.yamlShow the Ceph cluster role, replicated block pool, and Kubernetes volume contract.
addons/…/configmap.yaml and addons/…/deployment.yamlShow the Rook operator and CSI control path included in the current package.
addons/rook/1.19.7/Manifest and addons/…/generate.shShow the offline image contract, CSI image discovery, and SecureBuild generation rules.
addons/…/install.shShows health gates, object-store publication, upgrades, and migration entry points.
scripts/…/rook.shShows provider migration, object-store status, and the conditions for Rook removal.
addons/…/install.sh and scripts/…/longhorn.shShow Longhorn readiness, default-class choice, host needs, and migration boundaries.
pkg/…/longhorn.goShows the health and replica safeguards used before moving Longhorn volumes.
addons/…/openebs.tmpl.yaml and addons/openebs/4.6.0/ManifestShow the current LocalPV control path and its packaged images.
addons/…/install.sh and addons/…/generate.shShow LocalPV selection, placement, migration entry points, and complete-package generation.
pkg/…/openebs_disk_space_validator.goShows why OpenEBS migration checks capacity per node instead of only checking total cluster space.
addons/…/install.sh and addons/…/generate.shShow MinIO storage forms, object-store migration, format migration, and image refresh behavior.
addons/minio/2025-10-15T17-29-55Z/Manifest and addons/minio/build-images/minio/DockerfileShow the current MinIO image identity and the image build boundary.
addons/…/install.shShows how registry storage mode is selected and how backend migration is started.
addons/…/tmpl-deployment-objectstore.yaml and addons/…/deployment-pvc.yamlCompare the registry's S3-backed and PVC-backed data paths.
addons/…/patch-deployment-migrate-s3.yaml and addons/…/patch-deployment-velero.yamlShow the versioned S3 migration and backup or restore image contracts.
addons/…/tmpl-configmap-migrate-s3.yaml and addons/…/tmpl-configmap-velero.yamlShow the bucket copy paths used for migration, backup, and restore.
addons/…/generate.shShows the registry SecureBuild image transition and generated helper-image contract.