在 pods 之间传递数据使用什么存储?
What storage to use for passing data between pods?
我正在使用 kubernetes,我需要在 pods 之间传递包含数据集的镶木地板文件,但我不知道哪个选项最有效。
据我所知,永久性磁盘允许我在我的 pods 上安装共享卷,但使用云存储我也可以共享这些文件。
所有流程都托管在 google 云端。
当您需要传递大量数据集时,我会说使用本地持久卷,这将具有成本效益和效率。
您应该使用 Google Filestore 作为文件共享。那么你需要:
- 创建持久卷 (PV)
- 创建 Persistence Volume Claim (PVC)
- 将 PVC 与您的 pods
一起使用
更多详情here
如果你想保留数据,你必须使用 Google 的文件存储。哪个会支持读写很多。
Persistent Volumes in GKE are supported using the Persistent Disks.
The problem with these disks is that they only support
ReadWriteOnce(RWO) (the volume can be mounted as read-write by a
single node) and ReadOnlyMany (ROX)(the volume can be mounted
read-only by many nodes) access modes.
使用磁盘,将无法在 pods 之间共享数据,因为它只支持 读写一次。单个磁盘将附加到 单个 节点。
如果您希望使用 CSI driver
在 POD 后面像 cloud bucket
一样安装存储,您的文件写入 IO 将会非常慢。 API.
存储可以提供更好的性能
您可以在 Kubernetes 中创建 NFS 服务器并使用它,这将再次提供对许多读写的支持。
Gluster FS & MinIo is one of the option to use, however if looking for managed NFS use the filestore,共 Google。
我正在使用 kubernetes,我需要在 pods 之间传递包含数据集的镶木地板文件,但我不知道哪个选项最有效。
据我所知,永久性磁盘允许我在我的 pods 上安装共享卷,但使用云存储我也可以共享这些文件。
所有流程都托管在 google 云端。
当您需要传递大量数据集时,我会说使用本地持久卷,这将具有成本效益和效率。
您应该使用 Google Filestore 作为文件共享。那么你需要:
- 创建持久卷 (PV)
- 创建 Persistence Volume Claim (PVC)
- 将 PVC 与您的 pods 一起使用
更多详情here
如果你想保留数据,你必须使用 Google 的文件存储。哪个会支持读写很多。
Persistent Volumes in GKE are supported using the Persistent Disks. The problem with these disks is that they only support ReadWriteOnce(RWO) (the volume can be mounted as read-write by a single node) and ReadOnlyMany (ROX)(the volume can be mounted read-only by many nodes) access modes.
使用磁盘,将无法在 pods 之间共享数据,因为它只支持 读写一次。单个磁盘将附加到 单个 节点。
如果您希望使用 CSI driver
在 POD 后面像 cloud bucket
一样安装存储,您的文件写入 IO 将会非常慢。 API.
您可以在 Kubernetes 中创建 NFS 服务器并使用它,这将再次提供对许多读写的支持。
Gluster FS & MinIo is one of the option to use, however if looking for managed NFS use the filestore,共 Google。