PersistentVolume 详解
版本
- v1.16
详解
kind: PersistentVolume
apiVersion: core/v1
metadata:
annotations:
clusterName:
creationTimestamp: 不需要设置此值,服务端自动生成
deletionGracePeriodSeconds: 优雅删除时间,只有在deletionTimestamp:生效的时候才有效,Read-Only
deletionTimestamp: 服务端设置,客户端不能设置
finalizers:
generateName: string
generation:
labels: 用于副本控制器及服务的匹配标签
managedFields:
name:
namespace:
ownerReferences:
resourceVersion:
selfLink:
uid:
spec: (PersistentVolumeSpec)
accessModes: (string array) 可能的取值: ReadWriteOnce,ReadOnlyMany, ReadWriteMany
-
awsElasticBlockStore: (AWSElasticBlockStoreVolumeSource)
azureDisk: (AzureDiskVolumeSource)
azureFile: (AzureFilePersistentVolumeSource)
capacity: (object) 持久化卷的资源和容量的描述
cephfs: (CephFSPersistentVolumeSource)
monitors: (string array)
path: string 默认为:/,通过设置此值可以指定cephfs上提供给pv的路径
readOnly: boolean 默认为:false
secretFile: string 可选项(默认值: /etc/ceph/user.secret) 用户的key ring 路径
secretRef:(SecretReference) 用户的认证秘钥,默认为:empty
names: string 命名空间中唯一的secret资源
namespace: string secret所在的命名空间
user: string rados的用户名,默认为:admin
cinder: (CinderPersistentVolumeSource)
claimRef: (ObjectReference)
csi: (CSIPersistentVolumeSource)
fc: (FCVolumeSource)
flexVolume: (FlexPersistentVolumeSource)
flocker: (FlockerVolumeSource)
gcePersistentDisk: (GCEPersistentDiskVolumeSource)
glusterfs: (GlusterfsPersistentVolumeSource)
hostPath: (HostPathVolumeSource)
iscsi: (ISCSIPersistentVolumeSource)
local: (LocalVolumeSource)
mountOptions: (string array) 选项列表,例如:["ro", "soft"]
nfs: (NFSVolumeSource)
path: string nfs服务暴露给pv的路径
readOnly: boolean 默认为:false
server: string nfs服务所在主机的ip地址或者主机名
nodeAffinity: (VolumeNodeAffinity)
persistentVolumeReclaimPolicy: string
photonPersistentDisk: (PhotonPersistentDiskVolumeSource)
portworxVolume: (PortworxVolumeSource)
quobyte: (QuobyteVolumeSource)
rbd: (RBDPersistentVolumeSource)
scaleIO: (ScaleIOPersistentVolumeSource)
storageClassName: string
storageos: (StorageOSPersistentVolumeSource)
volumeMode: string
vsphereVolume: (VsphereVirtualDiskVolumeSource)
status: (PersistentVolumeStatus)