EBS卷是否需要格式化才能附加到容器
Do EBS volume need to be formatted before it can be attached to a container
我想知道是否需要先格式化 EBS 卷(例如通过 mkfs.xfs
),然后它才能被 kubernetes 中的容器 运行 使用。我有一些例子,人们只是创建卷并由 kubernetes 安装它。 kubernetes 会先格式化卷再使用吗?
An awsElasticBlockStore
volume mounts an Amazon Web Services (AWS) EBS
Volume into your Pod. Unlike emptyDir
, which is erased when a Pod is
removed, the contents of an EBS volume are preserved and the volume is
merely unmounted. This means that an EBS volume can be pre-populated
with data, and that data can be "handed off" between Pods.
所以使用前不需要格式化
您可以在链接的文档中找到更多详细信息和 examples。
我想知道是否需要先格式化 EBS 卷(例如通过 mkfs.xfs
),然后它才能被 kubernetes 中的容器 运行 使用。我有一些例子,人们只是创建卷并由 kubernetes 安装它。 kubernetes 会先格式化卷再使用吗?
An
awsElasticBlockStore
volume mounts an Amazon Web Services (AWS) EBS Volume into your Pod. UnlikeemptyDir
, which is erased when a Pod is removed, the contents of an EBS volume are preserved and the volume is merely unmounted. This means that an EBS volume can be pre-populated with data, and that data can be "handed off" between Pods.
所以使用前不需要格式化
您可以在链接的文档中找到更多详细信息和 examples。