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 restores backup data into a specific volume and attaching it to user-provided Persistent Volume Claims (PVCs) for usage of various workload applications.

  KubeStash Volume Populator Process Flow
Fig: Volume Populating Process in KubeStash

The Volume Populator process consists of the following steps:

  1. KubeStash operator watches for PVCs.

  2. When the operator finds a PVC with spec.dataSourceRef set and refers to a KubeStash Snapshot object, it starts populating this PVC by creating a volume populator Job that mounts a temporary PVC.

  3. Then the populator Job restores the referred Snapshot into this temporary PVC.

  4. Once the restoration process is complete, the KubeStash operator deletes this populator Job and temporary PVC, and binds the PV containing the restored data with the desired PVC.

Next Steps

  1. See a step by step guide to populate the volume of a stand-alone PVC here.
  2. See a step by step guide to populate the volumes of a Deployment here.
  3. See a step by step guide to populate the volumes of a StatefulSet here.