PersistentVolume [v1]
- 描述
- 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
- 类型
object
规格
.spec
- 描述
- PersistentVolumeSpec is the specification of a persistent volume.
- 类型
object
.spec.accessModes
- 描述
- accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
- 类型
array
.spec.accessModes[]
- 类型
string
.spec.awsElasticBlockStore
- 描述
- 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.
- 类型
object- 必填
volumeID
.spec.azureDisk
- 描述
- AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
- 类型
object- 必填
diskNamediskURI
.spec.azureFile
- 描述
- AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
- 类型
object- 必填
secretNameshareName
.spec.capacity
- 描述
- capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
- 类型
object
.spec.cephfs
- 描述
- Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.
- 类型
object- 必填
monitors
.spec.cephfs.monitors
- 描述
- monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
- 类型
array
.spec.cephfs.monitors[]
- 类型
string
.spec.cephfs.secretRef
- 描述
- SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace
- 类型
object
.spec.cinder
- 描述
- 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.
- 类型
object- 必填
volumeID
.spec.cinder.secretRef
- 描述
- SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace
- 类型
object
.spec.claimRef
- 描述
- ObjectReference contains enough information to let you inspect or modify the referred object.
- 类型
object
.spec.csi
- 描述
- Represents storage that is managed by an external CSI volume driver
- 类型
object- 必填
drivervolumeHandle
.spec.csi.controllerExpandSecretRef
- 描述
- SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace
- 类型
object
.spec.csi.controllerPublishSecretRef
- 描述
- SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace
- 类型
object
.spec.csi.nodeExpandSecretRef
- 描述
- SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace
- 类型
object
.spec.csi.nodePublishSecretRef
- 描述
- SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace
- 类型
object
.spec.csi.nodeStageSecretRef
- 描述
- SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace
- 类型
object
.spec.csi.volumeAttributes
- 描述
- volumeAttributes of the volume to publish.
- 类型
object
.spec.fc
- 描述
- 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.
- 类型
object
.spec.fc.targetWWNs
- 描述
- targetWWNs is Optional: FC target worldwide names (WWNs)
- 类型
array
.spec.fc.targetWWNs[]
- 类型
string
.spec.fc.wwids
- 描述
- wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
- 类型
array
.spec.fc.wwids[]
- 类型
string
.spec.flexVolume
- 描述
- FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.
- 类型
object- 必填
driver
.spec.flexVolume.options
- 描述
- options is Optional: this field holds extra command options if any.
- 类型
object
.spec.flexVolume.secretRef
- 描述
- SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace
- 类型
object
.spec.flocker
- 描述
- 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.
- 类型
object
.spec.gcePersistentDisk
- 描述
- 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.
- 类型
object- 必填
pdName
.spec.glusterfs
- 描述
- Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.
- 类型
object- 必填
endpointspath
.spec.hostPath
- 描述
- Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.
- 类型
object- 必填
path
.spec.iscsi
- 描述
- ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.
- 类型
object- 必填
targetPortaliqnlun
.spec.iscsi.portals
- 描述
- 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).
- 类型
array
.spec.iscsi.portals[]
- 类型
string
.spec.iscsi.secretRef
- 描述
- SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace
- 类型
object
.spec.local
- 描述
- Local represents directly-attached storage with node affinity
- 类型
object- 必填
path
.spec.mountOptions
- 描述
- 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
- 类型
array
.spec.mountOptions[]
- 类型
string
.spec.nfs
- 描述
- Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.
- 类型
object- 必填
serverpath
.spec.nodeAffinity
- 描述
- VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.
- 类型
object
.spec.nodeAffinity.required
- 描述
- 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.
- 类型
object- 必填
nodeSelectorTerms
.spec.nodeAffinity.required.nodeSelectorTerms
- 描述
- Required. A list of node selector terms. The terms are ORed.
- 类型
array
.spec.nodeAffinity.required.nodeSelectorTerms[]
- 描述
- 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.
- 类型
object
.spec.nodeAffinity.required.nodeSelectorTerms[].matchExpressions
- 描述
- A list of node selector requirements by node's labels.
- 类型
array
.spec.nodeAffinity.required.nodeSelectorTerms[].matchExpressions[]
- 描述
- A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.nodeAffinity.required.nodeSelectorTerms[].matchExpressions[].values
- 描述
- 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.
- 类型
array
.spec.nodeAffinity.required.nodeSelectorTerms[].matchExpressions[].values[]
- 类型
string
.spec.nodeAffinity.required.nodeSelectorTerms[].matchFields
- 描述
- A list of node selector requirements by node's fields.
- 类型
array
.spec.nodeAffinity.required.nodeSelectorTerms[].matchFields[]
- 描述
- A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.nodeAffinity.required.nodeSelectorTerms[].matchFields[].values
- 描述
- 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.
- 类型
array
.spec.nodeAffinity.required.nodeSelectorTerms[].matchFields[].values[]
- 类型
string
.spec.photonPersistentDisk
- 描述
- Represents a Photon Controller persistent disk resource.
- 类型
object- 必填
pdID
.spec.portworxVolume
- 描述
- PortworxVolumeSource represents a Portworx volume resource.
- 类型
object- 必填
volumeID
.spec.quobyte
- 描述
- Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.
- 类型
object- 必填
registryvolume
.spec.rbd
- 描述
- Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.
- 类型
object- 必填
monitorsimage
.spec.rbd.monitors
- 描述
- monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
- 类型
array
.spec.rbd.monitors[]
- 类型
string
.spec.rbd.secretRef
- 描述
- SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace
- 类型
object
.spec.scaleIO
- 描述
- ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume
- 类型
object- 必填
gatewaysystemsecretRef
.spec.scaleIO.secretRef
- 描述
- SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace
- 类型
object
.spec.storageos
- 描述
- Represents a StorageOS persistent volume resource.
- 类型
object
.spec.storageos.secretRef
- 描述
- ObjectReference contains enough information to let you inspect or modify the referred object.
- 类型
object
.spec.vsphereVolume
- 描述
- Represents a vSphere volume resource.
- 类型
object- 必填
volumePath
.status
- 描述
- PersistentVolumeStatus is the current status of a persistent volume.
- 类型
object
API 端点
可用的 API 端点如下:
/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 方法
DELETE- 描述
- delete collection of PersistentVolume
- HTTP 响应
- HTTP 方法
GET- 描述
- list objects of kind PersistentVolume
- HTTP 响应
- HTTP 方法
POST- 描述
- create a new PersistentVolume
- 查询参数
- 请求体参数
- HTTP 响应
/kubernetes/{cluster}/api/v1/persistentvolumes/{name}
- HTTP 方法
DELETE- 描述
- delete the specified PersistentVolume
- 查询参数
- HTTP 响应
- HTTP 方法
GET- 描述
- read the specified PersistentVolume
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update the specified PersistentVolume
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace the specified PersistentVolume
- 查询参数
- 请求体参数
- HTTP 响应
/kubernetes/{cluster}/api/v1/persistentvolumes/{name}/status
- HTTP 方法
GET- 描述
- read status of the specified PersistentVolume
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update status of the specified PersistentVolume
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace status of the specified PersistentVolume
- 查询参数
- 请求体参数
- HTTP 响应