You are looking at the documentation of a prior release. To read the documentation of the latest release, please
visit here.
Populate Volume Using KubeStash
This guide will give you an overview of how volume populator process works in KubeStash.
How Volume Populator Process Works?
The following diagram shows how KubeStash populates a Persistent Volume Claim with data sourced from a KubeStash Snapshot.
The Volume Populator
process consists of the following steps:
KubeStash operator watches for
PVCs
.When the operator finds a
PVC
withspec.dataSourceRef
set and refers to a KubeStashSnapshot
object, it creates a volume populatorJob
that mounts a temporaryPVC
.Then the populator Job restores the referred
Snapshot
into the temporary PVC.Once the restoration process is complete, the KubeStash operator deletes this populator
Job
and temporaryPVC
, and binds thePV
containing the restored data with the desiredPVC
.