Volume

A storage resource mounted into pods. Testkube may use volumes for test result storage.

Table of Contents

What Does Volume Mean?

In Kubernetes, a volume is a storage resource that can be attached to a pod, allowing containers within that pod to persist and share data. Unlike ephemeral container storage, volumes provide a stable location where files and test artifacts remain accessible during and after execution.

Why Volumes Matter

Volumes are essential for maintaining state and data consistency in containerized environments. In testing workflows, they help teams:

  • Preserve logs, reports, and test results after containers stop running.
  • Share data between multiple containers in a single pod.
  • Enable persistent test storage for debugging and analysis.
  • Integrate with external storage systems like AWS EBS, NFS, or S3 for scalability.
  • Ensure test environments behave consistently across executions.

Without volumes, data generated during a test would disappear when the container terminates.

How Volumes Work with Testkube

  • Result Storage: Testkube mounts volumes into test pods to store logs, outputs, and artifacts from each execution.
  • Persistent Data Handling: Volumes ensure that important test data remains available even after test pods are deleted.
  • Kubernetes-Native Integration: Testkube uses PersistentVolume (PV) and PersistentVolumeClaim (PVC) objects to manage storage allocation automatically.
  • Custom Volume Support: Teams can configure custom volume mounts for specific test workflows or large data sets.
  • Compatibility: Testkube works with a variety of storage backends supported by Kubernetes, including cloud and on-prem options.

Related Terms and Concepts

No items found.

Learn More

No items found.