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":420n}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}
显示全部
收起
最新更新 | 文章排行 | 滇ICP备2023006777号 | 网站地图