胖熊NET,有趣实用的生活常识!

最新更新文章排行手机版

胖熊NET!

热门搜索:
当前位置: > 生活

filename546

时间:2024-03-08 09:12:01人气:53作者:用户投稿

pod.yaml挂载持久化存储卷

{\n"kind":"Pod",\n"apiVersion":"v1",\n"metadata":{\n"name":"file-manager-546f765d4-cb97g",\n......\n},\n"spec":{\n"volumes":[\n{\n"name":"file-manager-data-volume",\n"persistentVolumeClaim":{\n"claimName":"pvc-application-data"\n}\n},\n{\n"name":"default-token-88cd9",\n"secret":{\n"secretName":"default-token-88cd9",\n"defaultMode":420\n}\n}\n],\n......\n},\n......\n}

pvc.yaml绑定持久化存储卷

{\n"kind":"PersistentVolumeClaim",\n"apiVersion":"v1",\n"metadata":{\n"name":"pvc-application-data",\n......\n},\n"spec":{\n"accessModes":[\n"ReadWriteMany"\n],\n"resources":{\n"requests":{\n"storage":"10Ti"\n}\n},\n"volumeName":"pvc-c04365da-deb9-4800-b249-fa1eff0ed167",\n"storageClassName":"appset-storage-class-gisappset",\n"volumeMode":"Filesystem"\n}\n......\n}

pv.yaml生成持久卷资源

{\n"kind":"PersistentVolume",\n"apiVersion":"v1",\n"metadata":{\n"name":"pvc-c04365da-deb9-4800-b249-fa1eff0ed167",\n......\n},\n"spec":{\n"capacity":{\n"storage":"10Ti"\n},\n"nfs":{\n"server":"172.16.1.74",\n"path":"/home/nfs_data/test"\n},\n"accessModes":[\n"ReadWriteMany"\n],\n"claimRef":{\n"kind":"PersistentVolumeClaim",\n"namespace":"cloud",\n"name":"pvc-application-data",\n"uid":"c04365da-deb9-4800-b249-fa1eff0ed167",\n"apiVersion":"v1"\n},\n"persistentVolumeReclaimPolicy":"Delete",\n"storageClassName":"appset-storage-class-gisappset",\n"volumeMode":"Filesystem"\n},\n......\n}

标签:
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至123@。cc举报,一经查实,本站将立刻删除。