目前,GCEPersistentDisk本机不支持ReadWriteMany,还有其他选项,比如创建NFS卷的filestore,但是这里有两个问题:
在GKE中动态分配索赔请求的最佳解决方案是什么?
发布于 2021-07-30 07:19:47
如果您有动态支持的需求,您也可以尝试使用谷氨酰胺、FS或米诺。
下面是使用GlusterFS动态配置的一个很好的示例:example.html
您必须创建存储库
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: glusterfs
provisioner: kubernetes.io/glusterfs
parameters:
resturl: "http://10.42.0.0:8080"
restauthenabled: "false"使用特定的存储库创建PVC
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: gluster1
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 30Gi
storageClassName: glusterfs另外,您可以在1到63.9 TiB和动态供应:https://cloud.google.com/community/tutorials/gke-filestore-dynamic-provisioning之间创建Filestore文件共享
https://stackoverflow.com/questions/68586257
复制相似问题