Volume class
Volume represents a named volume in a pod that may be accessed by any container in the pod.
Constructors
- Volume({AWSElasticBlockStoreVolumeSource? awsElasticBlockStore, AzureDiskVolumeSource? azureDisk, AzureFileVolumeSource? azureFile, CephFSVolumeSource? cephfs, CinderVolumeSource? cinder, ConfigMapVolumeSource? configMap, CSIVolumeSource? csi, DownwardAPIVolumeSource? downwardAPI, EmptyDirVolumeSource? emptyDir, EphemeralVolumeSource? ephemeral, FCVolumeSource? fc, FlexVolumeSource? flexVolume, FlockerVolumeSource? flocker, GCEPersistentDiskVolumeSource? gcePersistentDisk, GitRepoVolumeSource? gitRepo, GlusterfsVolumeSource? glusterfs, HostPathVolumeSource? hostPath, ISCSIVolumeSource? iscsi, required String name, NFSVolumeSource? nfs, PersistentVolumeClaimVolumeSource? persistentVolumeClaim, PhotonPersistentDiskVolumeSource? photonPersistentDisk, PortworxVolumeSource? portworxVolume, ProjectedVolumeSource? projected, QuobyteVolumeSource? quobyte, RBDVolumeSource? rbd, ScaleIOVolumeSource? scaleIO, SecretVolumeSource? secret, StorageOSVolumeSource? storageos, VsphereVirtualDiskVolumeSource? vsphereVolume})
-
Default constructor.
const
-
Volume.fromJson(Map<
String, dynamic> json) -
Creates a Volume from JSON data.
factory
Properties
- 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 → AzureFileVolumeSource?
-
azureFile represents an Azure File Service mount on the host and bind mount to the pod.
final
- cephfs → CephFSVolumeSource?
-
cephFS represents a Ceph FS mount on the host that shares a pod's lifetime.
final
- cinder → CinderVolumeSource?
-
cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md.
final
- configMap → ConfigMapVolumeSource?
-
configMap represents a configMap that should populate this volume.
final
- csi → CSIVolumeSource?
-
csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).
final
- downwardAPI → DownwardAPIVolumeSource?
-
downwardAPI represents downward API about the pod that should populate this volume.
final
- emptyDir → EmptyDirVolumeSource?
-
emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir.
final
- ephemeral → EphemeralVolumeSource?
-
ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed.
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 → FlexVolumeSource?
-
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. 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. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk.
final
- gitRepo → GitRepoVolumeSource?
-
gitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.
final
- glusterfs → GlusterfsVolumeSource?
-
glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. 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 pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath.
final
- iscsi → ISCSIVolumeSource?
-
iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md.
final
- name → String
-
name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names.
final
- nfs → NFSVolumeSource?
-
nfs represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs.
final
- persistentVolumeClaim → PersistentVolumeClaimVolumeSource?
-
persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims.
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
- projected → ProjectedVolumeSource?
-
projected items for all in one resources secrets, configmaps, and downward API.
final
- quobyte → QuobyteVolumeSource?
-
quobyte represents a Quobyte mount on the host that shares a pod's lifetime.
final
- rbd → RBDVolumeSource?
-
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 → ScaleIOVolumeSource?
-
scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
final
- secret → SecretVolumeSource?
-
secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret.
final
- storageos → StorageOSVolumeSource?
-
storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
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 Volume instance to JSON data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited