Docs/CloudNative/Kubernetes/Base/PV&&PVC/pv与pvc
2022-10-18 16:59:37 +08:00

18 lines
No EOL
734 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### 静态pv
pod.spec.volumes:期望pv创建
关联
pod.spec.containers.volumeMounts:挂载
## 创建pv
PersistentVolume
主要字段:
pv.spec.capacity.storage: 存储大小如果使用1024进制的存储大小使用GiMi等,如6Gi
pv.spec.accessModes: 列表格式ReadOnlyMany多个node只读ReadWriteOne一个node读写ReadWriteMany多个mode读写
pv.spec.persistentVolumeReclaimPolicypv被release以后的处理Retain保留Delete删除
### 动态pv
StorageClass中的name与创建的PersistentVolumeClaim中的pvc.spec.storageClassName对应
StorageClass.reclainPolicypv被release后的处理。Retain保留Delete删除
CSI Container Storage Interface 容器存储接口