PersistentVolumeSpec

data class PersistentVolumeSpec(val accessModes: List<String>? = null, val awsElasticBlockStore: AWSElasticBlockStoreVolumeSource? = null, val azureDisk: AzureDiskVolumeSource? = null, val azureFile: AzureFilePersistentVolumeSource? = null, val capacity: Map<String, String>? = null, val cephfs: CephFSPersistentVolumeSource? = null, val cinder: CinderPersistentVolumeSource? = null, val claimRef: ObjectReference? = null, val csi: CSIPersistentVolumeSource? = null, val fc: FCVolumeSource? = null, val flexVolume: FlexPersistentVolumeSource? = null, val flocker: FlockerVolumeSource? = null, val gcePersistentDisk: GCEPersistentDiskVolumeSource? = null, val glusterfs: GlusterfsPersistentVolumeSource? = null, val hostPath: HostPathVolumeSource? = null, val iscsi: ISCSIPersistentVolumeSource? = null, val local: LocalVolumeSource? = null, val mountOptions: List<String>? = null, val nfs: NFSVolumeSource? = null, val nodeAffinity: VolumeNodeAffinity? = null, val persistentVolumeReclaimPolicy: String? = null, val photonPersistentDisk: PhotonPersistentDiskVolumeSource? = null, val portworxVolume: PortworxVolumeSource? = null, val quobyte: QuobyteVolumeSource? = null, val rbd: RBDPersistentVolumeSource? = null, val scaleIO: ScaleIOPersistentVolumeSource? = null, val storageClassName: String? = null, val storageos: StorageOSPersistentVolumeSource? = null, val volumeMode: String? = null, val vsphereVolume: VsphereVirtualDiskVolumeSource? = null)

PersistentVolumeSpec is the specification of a persistent volume.

Constructors

Link copied to clipboard
constructor(accessModes: List<String>? = null, awsElasticBlockStore: AWSElasticBlockStoreVolumeSource? = null, azureDisk: AzureDiskVolumeSource? = null, azureFile: AzureFilePersistentVolumeSource? = null, capacity: Map<String, String>? = null, cephfs: CephFSPersistentVolumeSource? = null, cinder: CinderPersistentVolumeSource? = null, claimRef: ObjectReference? = null, csi: CSIPersistentVolumeSource? = null, fc: FCVolumeSource? = null, flexVolume: FlexPersistentVolumeSource? = null, flocker: FlockerVolumeSource? = null, gcePersistentDisk: GCEPersistentDiskVolumeSource? = null, glusterfs: GlusterfsPersistentVolumeSource? = null, hostPath: HostPathVolumeSource? = null, iscsi: ISCSIPersistentVolumeSource? = null, local: LocalVolumeSource? = null, mountOptions: List<String>? = null, nfs: NFSVolumeSource? = null, nodeAffinity: VolumeNodeAffinity? = null, persistentVolumeReclaimPolicy: String? = null, photonPersistentDisk: PhotonPersistentDiskVolumeSource? = null, portworxVolume: PortworxVolumeSource? = null, quobyte: QuobyteVolumeSource? = null, rbd: RBDPersistentVolumeSource? = null, scaleIO: ScaleIOPersistentVolumeSource? = null, storageClassName: String? = null, storageos: StorageOSPersistentVolumeSource? = null, volumeMode: String? = null, vsphereVolume: VsphereVirtualDiskVolumeSource? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val accessModes: List<String>? = null

accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes

Link copied to clipboard

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

Link copied to clipboard

azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.

Link copied to clipboard

azureFile represents an Azure File Service mount on the host and bind mount to the pod.

Link copied to clipboard
val capacity: Map<String, String>? = null

capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity

Link copied to clipboard

cephFS represents a Ceph FS mount on the host that shares a pod's lifetime

Link copied to clipboard

cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md

Link copied to clipboard

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

Link copied to clipboard

csi represents storage that is handled by an external CSI driver (Beta feature).

Link copied to clipboard
val fc: FCVolumeSource? = null

fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.

Link copied to clipboard

flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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.

Link copied to clipboard

local represents directly-attached storage with node affinity

Link copied to clipboard
val mountOptions: List<String>? = null

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

Link copied to clipboard
val nfs: NFSVolumeSource? = null

nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs

Link copied to clipboard

nodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume.

Link copied to clipboard

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

Link copied to clipboard

photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine

Link copied to clipboard

portworxVolume represents a portworx volume attached and mounted on kubelets host machine

Link copied to clipboard

quobyte represents a Quobyte mount on the host that shares a pod's lifetime

Link copied to clipboard

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

Link copied to clipboard

scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.

Link copied to clipboard

storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.

Link copied to clipboard

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

Link copied to clipboard
val volumeMode: String? = null

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.

Link copied to clipboard

vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine