Kubernetes 使用Persistent Volume和Persistent Volume Claim 两种API资源来管理存储。
可以通过两种方式配置PV:静态或动态。
关于PersistentVolume的访问方式
在CLI(命令行界面)中,访问模式缩写为:
特别注意: 卷只能一次使用一种访问模式安装,即使它支持很多。
关于回收策略
目前,只有NFS和HostPath支持回收。AWS EBS,GCE PD,Azure磁盘和Cinder卷支持删除。
关于PersistentVolume (PV) 状态
关于PersistentVolumeClaims (PVC) 状态