我想在 AWS EKS 上设置 Opensearch 集群。数据节点当前使用具有
ReadWriteOnce
accessMode 的 PVC。但是,问题是每当我尝试添加具有相同安装的另一个节点时,pod 都无法出现以下错误:
Unable to attach or mount volumes: unmounted volumes=[opensearch-data1], unattached volumes=[opensearch-data1]: timed out waiting for the condition
据我了解,这是预期的
RWO
。
我使用 EBS 作为我的底层存储。如果我尝试使用
ReadWriteMany
,pod 就会永远处于挂起状态。根据 this 帖子,EBS 不支持 RWM
,但是由于性能/成本问题,我不热衷于使用 EFS。有没有其他方法可以帮助我使用相同的安装卷扩展多个 Pod。
您是否将其作为 StatefulSet 运行?您不应期望一个卷连接到多个容器,而必须是映射到多个 Pod 的多个卷。