AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
[TOC] # Persistent Volume(持久化卷) `PersistentVolume(PV)`是由管理员设置的存储,它是群集的一部分。`PersistentVolumeClaim(PVC)`是用户存储的请求。PVC消耗PV的存储资源 PV 属于集群中的资源。PVC 是对这些资源的请求,也作为对资源的请求的检查。 ### PV示例 ~~~ kind: PersistenVolume matadata: name: pv-nfs labels: release: stable spec: capacity: storage: 10G volumeMode: Filesystem accessModes: ReadWriteMany #设置访问模式 # ReadWriteOnce – 被单个节点mount为读写rw模式 # ReadOnlyMany – 被多个节点mount为只读ro模式 # ReadWriteMany – 被多个节点mount为读写rw模式 persistentVolumeReclaimPolicy: Recycle #设置PV空间被释放后处理方式 # Retain 保持不动 (默认值) # Recycle 空间回收,并删除所有文件,目前仅支持NFS和hostPath # Delete 删除存储卷,仅部分云端存储系统支持 storageClassName: slow #当前PV所属的storageclass的名称,默认为空 mountOptions: # 挂载选项组成的列表,如 ro、soft、hrad等 - hard - nfsvers=4.1 nfs: path: "/webdata/htdocs" server: nfs.linux.io ~~~