PV的Access Mode(访问模式)
The access modes are:
ReadWriteOnce – the volume can be mounted as read-write by a single node
ReadOnlyMany – the volume can be mounted read-only by many nodes
ReadWriteMany – the volume can be mounted as read-write by many nodes
In the CLI, the access modes are abbreviated to:
RWO - ReadWriteOnce
ROX - ReadOnlyMany
RWX - ReadWriteMany
Reclaim Policy(回收策略)
Current reclaim policies are:
Retain – manual reclamation
Recycle – basic scrub (“rm -rf /thevolume/*”)
Delete – associated storage asset such as AWS EBS, GCE PD, Azure Disk, or OpenStack Cinder volume is deleted
Currently, only NFS and HostPath support recycling. AWS EBS, GCE PD, Azure Disk, and Cinder volumes support deletion.
PV是有状态的资源对象,有以下几种状态:
1、Available:空闲状态
2、Bound:已经绑定到某个pvc上
3、Released:对应的pvc已经删除,但资源还没有被回收
4、Failed:pv自动回收失败
1、创建secret。在secret中,data域的各子域的值必须为base64编码值。