Volume claim on GKE / Multi-Attach error for volume Volume is already exclusively attached

后端 未结 2 1411
面向向阳花
面向向阳花 2021-02-19 03:12

The problem seems to have been solved a long time ago, as the answer and the comments does not provide real solutions, I would like to get some help from experienced users

2条回答
  •  北荒
    北荒 (楼主)
    2021-02-19 03:42

    Your Deployment yaml shows 5 replicas, which will not work with GCE PD in ReadWriteOnce mode. GCE PD can only be attached to multiple nodes in ReadOnlyMany mode.

    If you need shared, writable storage across all replicas, then you should look into a multi-writer solution like NFS or Gluster.

    If you want each replica to have its own disk, then you can use StatefulSets, which will have a PVC per replica.

提交回复
热议问题