簡體   English   中英

使用k8s v1.13的“ volumeDevices”與“ volumeMounts”有什么區別

[英]What's the difference between “volumeDevices” vs “volumeMounts” with k8s v1.13

運行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顯示:

客戶端版本:version.Info {主要:“ 1”,次要:“ 13”,GitVersion:“ v1.13.0”,GitCommit:“ ddf47ac13c1a9483ea035a79cd7c10005ff21a6d”,GitTreeState:“ clean”,BuildDate:“ 2018-12-03T21:04: 45Z”,GoVersion:“ go1.11.2”,編譯器:“ gc”,平台:“ linux / amd64”}

服務器版本:version.Info {主要:“ 1”,次要:“ 13”,GitVersion:“ v1.13.0”,GitCommit:“ ddf47ac13c1a9483ea035a79cd7c10005ff21a6d”,GitTreeState:“ clean”,BuildDate:“ 2018-12-03T20:56: 12Z“,GoVersion:” go1.11.2“,編譯器:” gc“,平台:” linux / amd64“}

“ volumeDevices”是1.13中新的Beta功能的一部分,該功能允許Pod訪問原始塊卷而不是已裝入的文件系統卷。 這對於某些高級應用程序(如數據庫,可能具有自己的文件系統格式)很有用。

您可以在此處找到官方文檔盡管它似乎尚未針對1.13進行更新。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM