在 GCE Kubernetes 上,如何创建多个消费者可以写入的卷?
On GCE Kubernetes, how can I create volumes where multiple consumers can write?
K8S Volume documentation提到只有一个消费者可以写入GCE PD。对于多个消费者可以同时写入的卷,例如在托管私有 Docker 注册表时,可以在 GCE 上使用什么?
我看到一个 sample for creating NFS volume on GCE。是否有我缺少的直接解决方案?
我关注 this solution 到
- 创建 GCE PD,
- 托管一个 NFS 服务器,GCE 卷安装在“/exports”
- 将此 NFS 服务器用作卷
这很容易做到。我所做的一项更改是将 storage-class "" 添加到 GCE PD PV 和 PVC 文件,因为我没有默认存储 class.
K8S Volume documentation提到只有一个消费者可以写入GCE PD。对于多个消费者可以同时写入的卷,例如在托管私有 Docker 注册表时,可以在 GCE 上使用什么?
我看到一个 sample for creating NFS volume on GCE。是否有我缺少的直接解决方案?
我关注 this solution 到
- 创建 GCE PD,
- 托管一个 NFS 服务器,GCE 卷安装在“/exports”
- 将此 NFS 服务器用作卷
这很容易做到。我所做的一项更改是将 storage-class "" 添加到 GCE PD PV 和 PVC 文件,因为我没有默认存储 class.