PersistentVolumeSpec class

PersistentVolumeSpec is the specification of a persistent volume.

Constructors

PersistentVolumeSpec({List<String>? accessModes, AWSElasticBlockStoreVolumeSource? awsElasticBlockStore, AzureDiskVolumeSource? azureDisk, AzureFilePersistentVolumeSource? azureFile, Map<String, String>? capacity, CephFSPersistentVolumeSource? cephfs, CinderPersistentVolumeSource? cinder, ObjectReference? claimRef, CSIPersistentVolumeSource? csi, FCVolumeSource? fc, FlexPersistentVolumeSource? flexVolume, FlockerVolumeSource? flocker, GCEPersistentDiskVolumeSource? gcePersistentDisk, GlusterfsPersistentVolumeSource? glusterfs, HostPathVolumeSource? hostPath, ISCSIPersistentVolumeSource? iscsi, LocalVolumeSource? local, List<String>? mountOptions, NFSVolumeSource? nfs, VolumeNodeAffinity? nodeAffinity, String? persistentVolumeReclaimPolicy, PhotonPersistentDiskVolumeSource? photonPersistentDisk, PortworxVolumeSource? portworxVolume, QuobyteVolumeSource? quobyte, RBDPersistentVolumeSource? rbd, ScaleIOPersistentVolumeSource? scaleIO, String? storageClassName, StorageOSPersistentVolumeSource? storageos, String? volumeMode, VsphereVirtualDiskVolumeSource? vsphereVolume})
Default constructor.
const
PersistentVolumeSpec.fromJson(Map<String, dynamic> json)
Creates a PersistentVolumeSpec from JSON data.
factory

Properties

accessModes List<String>?
accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes.
final
awsElasticBlockStore AWSElasticBlockStoreVolumeSource?
awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore.
final
azureDisk AzureDiskVolumeSource?
azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
final
azureFile AzureFilePersistentVolumeSource?
azureFile represents an Azure File Service mount on the host and bind mount to the pod.
final
capacity Map<String, String>?
capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity.
final
cephfs CephFSPersistentVolumeSource?
cephFS represents a Ceph FS mount on the host that shares a pod's lifetime.
final
cinder CinderPersistentVolumeSource?
cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md.
final
claimRef ObjectReference?
claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding.
final
csi CSIPersistentVolumeSource?
csi represents storage that is handled by an external CSI driver (Beta feature).
final
fc FCVolumeSource?
fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
final
flexVolume FlexPersistentVolumeSource?
flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.
final
flocker FlockerVolumeSource?
flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running.
final
gcePersistentDisk GCEPersistentDiskVolumeSource?
gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk.
final
glusterfs GlusterfsPersistentVolumeSource?
glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md.
final
hashCode int
The hash code for this object.
no setterinherited
hostPath HostPathVolumeSource?
hostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath.
final
iscsi ISCSIPersistentVolumeSource?
iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin.
final
local LocalVolumeSource?
local represents directly-attached storage with node affinity.
final
mountOptions List<String>?
mountOptions is the list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options.
final
nfs NFSVolumeSource?
nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs.
final
nodeAffinity VolumeNodeAffinity?
nodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume.
final
persistentVolumeReclaimPolicy String?
persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming.
final
photonPersistentDisk PhotonPersistentDiskVolumeSource?
photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine.
final
portworxVolume PortworxVolumeSource?
portworxVolume represents a portworx volume attached and mounted on kubelets host machine.
final
quobyte QuobyteVolumeSource?
quobyte represents a Quobyte mount on the host that shares a pod's lifetime.
final
rbd RBDPersistentVolumeSource?
rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleIO ScaleIOPersistentVolumeSource?
scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
final
storageClassName String?
storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.
final
storageos StorageOSPersistentVolumeSource?
storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md.
final
volumeMode String?
volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec.
final
vsphereVolume VsphereVirtualDiskVolumeSource?
vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Converts a PersistentVolumeSpec instance to JSON data.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited