Volume 详解

版本

详解

kind: Volume 
apiVersion: core/v1

awsElasticBlockStore:(AWSElasticBlockStoreVolumeSource)
azureDisk: (AzureDiskVolumeSource)
azureFile: (AzureFileVolumeSource)
cephfs: 对象为:CephFSVolumeSource  
  monitors: ceph的monitors
  path: 默认为:/ 可选
  readOnly: true-只读,默认为:false 可读写 可选
  secretFile:  可选
  secretRef: 用户的认证秘钥,默认为empty
    name: 参照名
  user: rados用户名,默认为:admin
cinder: (CinderVolumeSource)
  fsType: "ext4", "xfs", "ntfs" ,默认为:"ext4"
  readOnly: 默认:false
  secretRef:  指向包含用于连接到OpenStack的参数的机密对象
    name: String
  volumeID: cinder中卷的标识id
configMap:(ConfigMapVolumeSource)
  defaultMode: 创建文件默认的权限位,默认:0644
  items:
  - key:
    mode: 
    path: 
  name: 参照名
  optional: boolean,指定configMap中的keys是否必须定义;
csi:(CSIVolumeSource)
  driver:
  fsType: 
  nodePublishSecretRef: 传递给csi驱动的包含敏感信息的secret对象,
    name: 参照名
  readOnly: 默认:false
  volumeAttributes: 传递给csi的参数
downwardAPI:(DownwardAPIVolumeSource)
emptyDir:(EmptyDirVolumeSource)
fc:(FCVolumeSource)
flexVolume:(FlexVolumeSource)
flocker:(FlockerVolumeSource)
gcePersistentDisk:(GCEPersistentDiskVolumeSource)
gitRepo: DEPRECATED
glusterfs:(GlusterfsVolumeSource)
hostPath: HostPath表示主机上直接暴露给容器的预先存在的文件或目录(HostPathVolumeSource)
  path: 主机目录
  type: 默认为: ""
iscsi:(ISCSIVolumeSource)
  chapAuthDiscovery:
  chapAuthSession: 
  fsType:  "ext4", "xfs", "ntfs",默认为:ext4
  initiatorName: 
  iqn: 
  iscsiInterface: 
  lun: 
  portals: 
  readOnly: 
  secretRef: 
    name: 参照名
  targetPortal
name:  DNS_LABEL 唯一
nfs: (NFSVolumeSource)
persistentVolumeClaim: (PersistentVolumeClaimVolumeSource)
photonPersistentDisk: (PhotonPersistentDiskVolumeSource)
portworxVolume: (PortworxVolumeSource)
projected: (ProjectedVolumeSource)
quobyte: (QuobyteVolumeSource)
rbd: (RBDVolumeSource)
scaleIO: (ScaleIOVolumeSource)
secret: (SecretVolumeSource)
storageos: (StorageOSVolumeSource)
vsphereVolume: (VsphereVirtualDiskVolumeSource) 
  fsType: "ext4", "xfs", "ntfs" ,默认为:"ext4"
  storagePolicyID: Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName
  storagePolicyName: Storage Policy Based Management (SPBM) profile name
  volumePath: Path that identifies vSphere volume vmdk