gpt4 book ai didi

kubernetes - "volumeDevices"与 "volumeMounts"与 k8s v1.13 有什么区别

转载 作者:行者123 更新时间:2023-12-02 12:05:34 25 4
gpt4 key购买 nike

运行 kubectl explain pod.spec.containers 显示:

   volumeDevices    <[]Object>
volumeDevices is the list of block devices to be used by the container.
This is a beta feature.

volumeMounts <[]Object>
Pod volumes to mount into the container's filesystem. Cannot be updated.

这两个容器属性之间有关系吗?

注意 kubectl version 显示:

Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.0", GitCommit:"ddf47ac13c1a9483ea035a79cd7c10005ff21a6d", GitTreeState:"clean", BuildDate:"2018-12-03T21:04:45Z", GoVersion:"go1.11.2", Compiler:"gc", Platform:"linux/amd64"}

Server Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.0", GitCommit:"ddf47ac13c1a9483ea035a79cd7c10005ff21a6d", GitTreeState:"clean", BuildDate:"2018-12-03T20:56:12Z", GoVersion:"go1.11.2", Compiler:"gc", Platform:"linux/amd64"}

最佳答案

'volumeDevices' 是 1.13 中新测试版功能的一部分,它允许 pod 访问原始 block 卷而不是挂载的文件系统卷。这对于一些高级应用程序很有用,例如可能具有自己的文件系统格式的数据库。

可以找到官方文档here虽然它似乎还没有为 1.13 更新。

关于kubernetes - "volumeDevices"与 "volumeMounts"与 k8s v1.13 有什么区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53774009/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com