@kubernetes/client-node
    Preparing search index...

    PersistentVolumeSpec is the specification of a persistent volume.

    Index

    Constructors

    Properties

    accessModes?: string[]

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

    awsElasticBlockStore?: V1AWSElasticBlockStoreVolumeSource
    capacity?: { [key: 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

    mountOptions?: 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

    nodeAffinity?: V1VolumeNodeAffinity
    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

    photonPersistentDisk?: V1PhotonPersistentDiskVolumeSource
    portworxVolume?: V1PortworxVolumeSource
    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.

    volumeAttributesClassName?: string

    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?: 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.

    attributeTypeMap: {
        baseName: string;
        format: string;
        name: string;
        type: string;
    }[] = ...
    discriminator: undefined | string = undefined
    mapping: undefined | { [index: string]: string } = undefined

    Methods

    • Returns { baseName: string; format: string; name: string; type: string }[]