PersistentVolume [v1]
- Description
- PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
- Type
object
Specification
.spec
- Description
- PersistentVolumeSpec is the specification of a persistent volume.
- Type
object
.spec.accessModes
- Description
- accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
- Type
array
.spec.accessModes[]
- Type
string
.spec.awsElasticBlockStore
- Description
- Represents a Persistent Disk resource in AWS. An AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.
- Type
object- Required
volumeID
.spec.azureDisk
- Description
- AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
- Type
object- Required
diskNamediskURI
.spec.azureFile
- Description
- AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
- Type
object- Required
secretNameshareName
.spec.capacity
- Description
- capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
- Type
object
.spec.cephfs
- Description
- Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.
- Type
object- Required
monitors
.spec.cephfs.monitors
- Description
- monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
- Type
array
.spec.cephfs.monitors[]
- Type
string
.spec.cephfs.secretRef
- Description
- SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace
- Type
object
.spec.cinder
- Description
- Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.
- Type
object- Required
volumeID
.spec.cinder.secretRef
- Description
- SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace
- Type
object
.spec.claimRef
- Description
- ObjectReference contains enough information to let you inspect or modify the referred object.
- Type
object
.spec.csi
- Description
- Represents storage that is managed by an external CSI volume driver
- Type
object- Required
drivervolumeHandle
.spec.csi.controllerExpandSecretRef
- Description
- SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace
- Type
object
.spec.csi.controllerPublishSecretRef
- Description
- SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace
- Type
object
.spec.csi.nodeExpandSecretRef
- Description
- SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace
- Type
object
.spec.csi.nodePublishSecretRef
- Description
- SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace
- Type
object
.spec.csi.nodeStageSecretRef
- Description
- SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace
- Type
object
.spec.csi.volumeAttributes
- Description
- volumeAttributes of the volume to publish.
- Type
object
.spec.fc
- Description
- Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.
- Type
object
.spec.fc.targetWWNs
- Description
- targetWWNs is Optional: FC target worldwide names (WWNs)
- Type
array
.spec.fc.targetWWNs[]
- Type
string
.spec.fc.wwids
- Description
- wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
- Type
array
.spec.fc.wwids[]
- Type
string
.spec.flexVolume
- Description
- FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.
- Type
object- Required
driver
.spec.flexVolume.options
- Description
- options is Optional: this field holds extra command options if any.
- Type
object
.spec.flexVolume.secretRef
- Description
- SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace
- Type
object
.spec.flocker
- Description
- Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.
- Type
object
.spec.gcePersistentDisk
- Description
- Represents a Persistent Disk resource in Google Compute Engine. A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.
- Type
object- Required
pdName
.spec.glusterfs
- Description
- Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.
- Type
object- Required
endpointspath
.spec.hostPath
- Description
- Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.
- Type
object- Required
path
.spec.iscsi
- Description
- ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.
- Type
object- Required
targetPortaliqnlun
.spec.iscsi.portals
- Description
- portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).
- Type
array
.spec.iscsi.portals[]
- Type
string
.spec.iscsi.secretRef
- Description
- SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace
- Type
object
.spec.local
- Description
- Local represents directly-attached storage with node affinity
- Type
object- Required
path
.spec.mountOptions
- Description
- 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
- Type
array
.spec.mountOptions[]
- Type
string
.spec.nfs
- Description
- Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.
- Type
object- Required
serverpath
.spec.nodeAffinity
- Description
- VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.
- Type
object
.spec.nodeAffinity.required
- Description
- A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.
- Type
object- Required
nodeSelectorTerms
.spec.nodeAffinity.required.nodeSelectorTerms
- Description
- Required. A list of node selector terms. The terms are ORed.
- Type
array
.spec.nodeAffinity.required.nodeSelectorTerms[]
- Description
- A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.
- Type
object
.spec.nodeAffinity.required.nodeSelectorTerms[].matchExpressions
- Description
- A list of node selector requirements by node's labels.
- Type
array
.spec.nodeAffinity.required.nodeSelectorTerms[].matchExpressions[]
- Description
- A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- Type
object- Required
keyoperator
.spec.nodeAffinity.required.nodeSelectorTerms[].matchExpressions[].values
- Description
- An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
- Type
array
.spec.nodeAffinity.required.nodeSelectorTerms[].matchExpressions[].values[]
- Type
string
.spec.nodeAffinity.required.nodeSelectorTerms[].matchFields
- Description
- A list of node selector requirements by node's fields.
- Type
array
.spec.nodeAffinity.required.nodeSelectorTerms[].matchFields[]
- Description
- A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- Type
object- Required
keyoperator
.spec.nodeAffinity.required.nodeSelectorTerms[].matchFields[].values
- Description
- An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
- Type
array
.spec.nodeAffinity.required.nodeSelectorTerms[].matchFields[].values[]
- Type
string
.spec.photonPersistentDisk
- Description
- Represents a Photon Controller persistent disk resource.
- Type
object- Required
pdID
.spec.portworxVolume
- Description
- PortworxVolumeSource represents a Portworx volume resource.
- Type
object- Required
volumeID
.spec.quobyte
- Description
- Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.
- Type
object- Required
registryvolume
.spec.rbd
- Description
- Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.
- Type
object- Required
monitorsimage
.spec.rbd.monitors
- Description
- monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
- Type
array
.spec.rbd.monitors[]
- Type
string
.spec.rbd.secretRef
- Description
- SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace
- Type
object
.spec.scaleIO
- Description
- ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume
- Type
object- Required
gatewaysystemsecretRef
.spec.scaleIO.secretRef
- Description
- SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace
- Type
object
.spec.storageos
- Description
- Represents a StorageOS persistent volume resource.
- Type
object
.spec.storageos.secretRef
- Description
- ObjectReference contains enough information to let you inspect or modify the referred object.
- Type
object
.spec.vsphereVolume
- Description
- Represents a vSphere volume resource.
- Type
object- Required
volumePath
.status
- Description
- PersistentVolumeStatus is the current status of a persistent volume.
- Type
object
API Endpoints
The following API endpoints are available:
/kubernetes/{cluster}/api/v1/persistentvolumesDELETE: delete collection of PersistentVolumeGET: list objects of kind PersistentVolumePOST: create a new PersistentVolume
/kubernetes/{cluster}/api/v1/persistentvolumes/{name}DELETE: delete the specified PersistentVolumeGET: read the specified PersistentVolumePATCH: partially update the specified PersistentVolumePUT: replace the specified PersistentVolume
/kubernetes/{cluster}/api/v1/persistentvolumes/{name}/statusGET: read status of the specified PersistentVolumePATCH: partially update status of the specified PersistentVolumePUT: replace status of the specified PersistentVolume
/kubernetes/{cluster}/api/v1/persistentvolumes
- HTTP method
DELETE- Description
- delete collection of PersistentVolume
- HTTP responses
- HTTP method
GET- Description
- list objects of kind PersistentVolume
- HTTP responses
- HTTP method
POST- Description
- create a new PersistentVolume
- Query parameters
- Body parameters
- HTTP responses
/kubernetes/{cluster}/api/v1/persistentvolumes/{name}
- HTTP method
DELETE- Description
- delete the specified PersistentVolume
- Query parameters
- HTTP responses
- HTTP method
GET- Description
- read the specified PersistentVolume
- HTTP responses
- HTTP method
PATCH- Description
- partially update the specified PersistentVolume
- Query parameters
- HTTP responses
- HTTP method
PUT- Description
- replace the specified PersistentVolume
- Query parameters
- Body parameters
- HTTP responses
/kubernetes/{cluster}/api/v1/persistentvolumes/{name}/status
- HTTP method
GET- Description
- read status of the specified PersistentVolume
- HTTP responses
- HTTP method
PATCH- Description
- partially update status of the specified PersistentVolume
- Query parameters
- HTTP responses
- HTTP method
PUT- Description
- replace status of the specified PersistentVolume
- Query parameters
- Body parameters
- HTTP responses