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})
The main constructor.
const
PersistentVolumeSpec.fromJson(Map<String, dynamic> json)
Creates a PersistentVolumeSpec from JSON data.

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

Static Methods

listFromJson(Iterable<Map<String, dynamic>> list) List<PersistentVolumeSpec>
Creates a list of PersistentVolumeSpec from JSON data.