简体   繁体   English

Google Cloud Storage 作为 Kubernetes Stateful Set 的卷

[英]Google Cloud Storage as volume for Kubernetes Stateful Set

Is it possible to mount a GCP Storage bucket into a kubernetes Pod?是否可以将 GCP 存储桶挂载到 kubernetes Pod 中? I am aware about other volume options such as Persistent Volume Claims backed by GCP's Standard Persistent Disks which are the Disks used in GCP's Compute Engines.我知道其他卷选项,例如由 GCP 的标准持久磁盘支持的持久卷声明,这些磁盘是 GCP 计算引擎中使用的磁盘。 However, when a Standard Persistent Disk is attached to a Compute Engine, it can not be shared with a Pod.但是,当标准 Persistent Disk 附加到 Compute Engine 时,它​​不能与 Pod 共享。

My use case requires being able for external applications to write on some kind of Storage and at the same time have that storage mounted into a kubernetes Pod.我的用例需要能够让外部应用程序在某种存储上写入,同时将该存储安装到 kubernetes Pod 中。

You need some PV with ReadWriteMany access mode, according to this table there are no such options in GCP out-of-box.您需要一些具有 ReadWriteMany 访问模式的 PV,根据此,GCP 开箱即用中没有此类选项。 A solution would be to provision your own NFS server for that eg as descirbed here一种解决方案是为该服务器配置您自己的 NFS 服务器,例如此处所述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM