Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Kubernetes 在两个复制副本之间共享卷。库伯内特斯_Kubernetes_Google Cloud Platform_Google Kubernetes Engine - Fatal编程技术网

Kubernetes 在两个复制副本之间共享卷。库伯内特斯

Kubernetes 在两个复制副本之间共享卷。库伯内特斯,kubernetes,google-cloud-platform,google-kubernetes-engine,Kubernetes,Google Cloud Platform,Google Kubernetes Engine,我的项目中有一个rabbitMQ,我希望一个pod上的队列位于另一个pod上,并且一个pod上的信息与另一个pod共享。有没有一种方法可以让你共享同一个卷,并且两者都可以读写?我使用GCloud 谢谢大家! GCEPersistentDisk仅支持ReadWriteOnce和ReadOnlyMany,不支持ReadWriteMany访问模式。因此,在RW模式下不可能跨两个容器共享一个卷。文档是否在同一个磁盘上。GCEPersistentDisk仅支持ReadWriteOnce和ReadOnlyM

我的项目中有一个rabbitMQ,我希望一个pod上的队列位于另一个pod上,并且一个pod上的信息与另一个pod共享。有没有一种方法可以让你共享同一个卷,并且两者都可以读写?我使用GCloud


谢谢大家!

GCEPersistentDisk仅支持ReadWriteOnce和ReadOnlyMany,不支持ReadWriteMany访问模式。因此,在RW模式下不可能跨两个容器共享一个卷。文档是否在同一个磁盘上。

GCEPersistentDisk仅支持ReadWriteOnce和ReadOnlyMany,而不支持ReadWriteMany访问模式。因此,在RW模式下不可能跨两个容器共享一个卷。文档是否相同。

实际上,可以在多个pod之间共享一个GCEPersistentDisk卷。表示它不支持ReadWriteMany模式,但它确实支持ReadWriteOnce模式。这意味着,如果一个pod以ReadWriteOnce模式装载卷,则在该pod卸载卷之前,其他pod无法装载该卷。因此,这就像写入模式中的锁定机制。另一方面,多个POD可以以现成的方式装载卷


您可以查看此内容并了解更多信息。

实际上,可以在多个pod之间共享一个GCEPersistentDisk卷。表示它不支持ReadWriteMany模式,但它确实支持ReadWriteOnce模式。这意味着,如果一个pod以ReadWriteOnce模式装载卷,则在该pod卸载卷之前,其他pod无法装载该卷。因此,这就像写入模式中的锁定机制。另一方面,多个POD可以以现成的方式装载卷

您可以查看此内容,也可以查看更多信息