struct
Kubernetes::PersistentVolumeSpec
- Kubernetes::PersistentVolumeSpec
- Struct
- Value
- Object
Overview
PersistentVolumeSpec is the specification of a persistent volume.
Included Modules
- JSON::Serializable
- Kubernetes::Serializable
- YAML::Serializable
Defined in:
generated/models/io_k8s_api_core_v1.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : ::JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : ::JSON::PullParser)
- .new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Macro Summary
-
field(name, type = nil, **options, &block)
Helper macro for defining fields with automatic camelCase conversion
Instance Method Summary
-
#access_modes : Array(String) | Nil
accessModes contains all ways the volume can be mounted.
-
#access_modes=(access_modes : Array(String) | Nil)
accessModes contains all ways the volume can be mounted.
-
#aws_elastic_block_store : AWSElasticBlockStoreVolumeSource | Nil
awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod.
-
#aws_elastic_block_store=(aws_elastic_block_store : AWSElasticBlockStoreVolumeSource | Nil)
awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod.
-
#azure_disk : AzureDiskVolumeSource | Nil
azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
-
#azure_disk=(azure_disk : AzureDiskVolumeSource | Nil)
azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
-
#azure_file : AzureFilePersistentVolumeSource | Nil
azureFile represents an Azure File Service mount on the host and bind mount to the pod.
-
#azure_file=(azure_file : AzureFilePersistentVolumeSource | Nil)
azureFile represents an Azure File Service mount on the host and bind mount to the pod.
-
#capacity : Hash(String, Quantity) | Nil
capacity is the description of the persistent volume's resources and capacity.
-
#capacity=(capacity : Hash(String, Quantity) | Nil)
capacity is the description of the persistent volume's resources and capacity.
-
#cephfs : CephFSPersistentVolumeSource | Nil
cephFS represents a Ceph FS mount on the host that shares a pod's lifetime.
-
#cephfs=(cephfs : CephFSPersistentVolumeSource | Nil)
cephFS represents a Ceph FS mount on the host that shares a pod's lifetime.
-
#cinder : CinderPersistentVolumeSource | Nil
cinder represents a cinder volume attached and mounted on kubelets host machine.
-
#cinder=(cinder : CinderPersistentVolumeSource | Nil)
cinder represents a cinder volume attached and mounted on kubelets host machine.
-
#claim_ref : ObjectReference | Nil
claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
-
#claim_ref=(claim_ref : ObjectReference | Nil)
claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
-
#csi : CSIPersistentVolumeSource | Nil
csi represents storage that is handled by an external CSI driver.
-
#csi=(csi : CSIPersistentVolumeSource | Nil)
csi represents storage that is handled by an external CSI driver.
-
#fc : FCVolumeSource | Nil
fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
-
#fc=(fc : FCVolumeSource | Nil)
fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
-
#flex_volume : FlexPersistentVolumeSource | Nil
flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.
-
#flex_volume=(flex_volume : FlexPersistentVolumeSource | Nil)
flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.
-
#flocker : FlockerVolumeSource | Nil
flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage.
-
#flocker=(flocker : FlockerVolumeSource | Nil)
flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage.
-
#gce_persistent_disk : GCEPersistentDiskVolumeSource | Nil
gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod.
-
#gce_persistent_disk=(gce_persistent_disk : GCEPersistentDiskVolumeSource | Nil)
gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod.
-
#glusterfs : GlusterfsPersistentVolumeSource | Nil
glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod.
-
#glusterfs=(glusterfs : GlusterfsPersistentVolumeSource | Nil)
glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod.
-
#host_path : HostPathVolumeSource | Nil
hostPath represents a directory on the host.
-
#host_path=(host_path : HostPathVolumeSource | Nil)
hostPath represents a directory on the host.
-
#iscsi : ISCSIPersistentVolumeSource | Nil
iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod.
-
#iscsi=(iscsi : ISCSIPersistentVolumeSource | Nil)
iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod.
-
#local : LocalVolumeSource | Nil
local represents directly-attached storage with node affinity
-
#local=(local : LocalVolumeSource | Nil)
local represents directly-attached storage with node affinity
-
#mount_options : Array(String) | Nil
mountOptions is the list of mount options, e.g.
-
#mount_options=(mount_options : Array(String) | Nil)
mountOptions is the list of mount options, e.g.
-
#nfs : NFSVolumeSource | Nil
nfs represents an NFS mount on the host.
-
#nfs=(nfs : NFSVolumeSource | Nil)
nfs represents an NFS mount on the host.
-
#node_affinity : VolumeNodeAffinity | Nil
nodeAffinity defines constraints that limit what nodes this volume can be accessed from.
-
#node_affinity=(node_affinity : VolumeNodeAffinity | Nil)
nodeAffinity defines constraints that limit what nodes this volume can be accessed from.
-
#persistent_volume_reclaim_policy : String | Nil
persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim.
-
#persistent_volume_reclaim_policy=(persistent_volume_reclaim_policy : String | Nil)
persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim.
-
#photon_persistent_disk : PhotonPersistentDiskVolumeSource | Nil
photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine.
-
#photon_persistent_disk=(photon_persistent_disk : PhotonPersistentDiskVolumeSource | Nil)
photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine.
-
#portworx_volume : PortworxVolumeSource | Nil
portworxVolume represents a portworx volume attached and mounted on kubelets host machine.
-
#portworx_volume=(portworx_volume : PortworxVolumeSource | Nil)
portworxVolume represents a portworx volume attached and mounted on kubelets host machine.
-
#quobyte : QuobyteVolumeSource | Nil
quobyte represents a Quobyte mount on the host that shares a pod's lifetime.
-
#quobyte=(quobyte : QuobyteVolumeSource | Nil)
quobyte represents a Quobyte mount on the host that shares a pod's lifetime.
-
#rbd : RBDPersistentVolumeSource | Nil
rbd represents a Rados Block Device mount on the host that shares a pod's lifetime.
-
#rbd=(rbd : RBDPersistentVolumeSource | Nil)
rbd represents a Rados Block Device mount on the host that shares a pod's lifetime.
-
#scale_io : ScaleIOPersistentVolumeSource | Nil
scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
-
#scale_io=(scale_io : ScaleIOPersistentVolumeSource | Nil)
scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
-
#storage_class_name : String | Nil
storageClassName is the name of StorageClass to which this persistent volume belongs.
-
#storage_class_name=(storage_class_name : String | Nil)
storageClassName is the name of StorageClass to which this persistent volume belongs.
-
#storageos : StorageOSPersistentVolumeSource | Nil
storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod.
-
#storageos=(storageos : StorageOSPersistentVolumeSource | Nil)
storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod.
-
#volume_attributes_class_name : String | Nil
Name of VolumeAttributesClass to which this persistent volume belongs.
-
#volume_attributes_class_name=(volume_attributes_class_name : String | Nil)
Name of VolumeAttributesClass to which this persistent volume belongs.
-
#volume_mode : String | Nil
volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state.
-
#volume_mode=(volume_mode : String | Nil)
volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state.
-
#vsphere_volume : VsphereVirtualDiskVolumeSource | Nil
vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine.
-
#vsphere_volume=(vsphere_volume : VsphereVirtualDiskVolumeSource | Nil)
vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine.
Constructor Detail
Macro Detail
Helper macro for defining fields with automatic camelCase conversion
Instance Method Detail
accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type are redirected to the disk.csi.azure.com CSI driver.
azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type are redirected to the disk.csi.azure.com CSI driver.
azureFile represents an Azure File Service mount on the host and bind mount to the pod. Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type are redirected to the file.csi.azure.com CSI driver.
azureFile represents an Azure File Service mount on the host and bind mount to the pod. Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type are redirected to the file.csi.azure.com CSI driver.
capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.
cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.
cinder represents a cinder volume attached and mounted on kubelets host machine. Deprecated: Cinder is deprecated. All operations for the in-tree cinder type are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
cinder represents a cinder volume attached and mounted on kubelets host machine. Deprecated: Cinder is deprecated. All operations for the in-tree cinder type are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
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
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
csi represents storage that is handled by an external CSI driver.
csi represents storage that is handled by an external CSI driver.
fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.
flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.
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. Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.
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. Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.
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. Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
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. Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. More info: https://examples.k8s.io/volumes/glusterfs/README.md
glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. More info: https://examples.k8s.io/volumes/glusterfs/README.md
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
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
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.
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.
local represents directly-attached storage with node affinity
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
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
nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
nodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. This field is mutable if MutablePVNodeAffinity feature gate is enabled.
nodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. This field is mutable if MutablePVNodeAffinity feature gate is enabled.
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
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
photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.
photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.
portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate is on.
portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate is on.
quobyte represents a Quobyte mount on the host that shares a pod's lifetime. Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.
quobyte represents a Quobyte mount on the host that shares a pod's lifetime. Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.
rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported. More info: https://examples.k8s.io/volumes/rbd/README.md
rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported. More info: https://examples.k8s.io/volumes/rbd/README.md
scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.
scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.
storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.
storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.
storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod. Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported. More info: https://examples.k8s.io/volumes/storageos/README.md
storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod. Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported. More info: https://examples.k8s.io/volumes/storageos/README.md
Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process.
Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process.
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.
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.
vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type are redirected to the csi.vsphere.vmware.com CSI driver.
vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type are redirected to the csi.vsphere.vmware.com CSI driver.