本文介绍了将本地SSD驱动器安装在容器中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
对于 GKE 117.0.0 ,--local-ssd-count
选项支持本地SSD.创建集群时.尝试了此选项后,我可以看到节点上已安装了额外的SSD卷,但是如何从容器中访问它呢?
With GKE 117.0.0, local SSDs are supported with the --local-ssd-count
option when creating clusters. Having tried this option I can see the additional SSD volume mounted in the nodes, but how can I access it from the containers?
我正在寻找与Volumes.emptyDir.medium
属性相对应的值,或类似的值,但是我在文档中没有找到任何内容.
I was looking for a corresponding value to the Volumes.emptyDir.medium
attribute, or something similar, but I haven't found anything in the docs.
推荐答案
如本地SSD支持概述" ,您可以使用hostPath
卷访问本地SSD.
As described in Overview of Local SSD support you can access the local SSD using a hostPath
volume.
这篇关于将本地SSD驱动器安装在容器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!