- Home
- Integration and extensions
- Drivers
- Volume Drivers
- Persistent Volume Claim
Persistent Volume Claim
This Driver generates a Kubernetes PersistentVolumeClaim (PVC) object .
Property | Description |
---|---|
Resource type | volume |
Account type | None |
Inputs #
Values #
Name | Type | Description |
---|---|---|
access_modes |
string | One of ReadWriteOnce , ReadOnlyMany or ReadWriteMany |
capacity |
string | A Kubernetes compatible storage capacity. (e.g. 30Gi ) |
storage_class_name |
string | The name of the StorageClass to use when creating PersistentVolumeClaims. |
Secrets #
None
Outputs #
None
Notes #
This driver only creates the PersistentVolumeClaim
Kubernetes resource and associated volume
entry in the workload that references it. The PersistentVolume
itself must be created separately - for example via Dynamic Provisioning in the Kubernetes Cluster .
Example #
This Resource Definition uses the volume-pvc
Driver to provide volume
Resources:
volume-pvc.yaml
(view on GitHub )
:
apiVersion: entity.humanitec.io/v1b1
kind: Definition
metadata:
id: volume-pvc
entity:
type: volume
driver_type: humanitec/volume-pvc
name: volume-pvc
driver_inputs:
values:
access_modes: ReadWriteOnce
capacity: 10Gi
criteria:
- {}