[zh] Update volumes.md
This commit is contained in:
@@ -106,10 +106,10 @@ Volumes cannot mount within other volumes (but see [Using subPath](#using-subpat
|
|||||||
for a related mechanism). Also, a volume cannot contain a hard link to anything in
|
for a related mechanism). Also, a volume cannot contain a hard link to anything in
|
||||||
a different volume.
|
a different volume.
|
||||||
-->
|
-->
|
||||||
卷中 [指定的路径](#using-subpath) 将会被挂载。
|
卷挂载在镜像中的[指定路径](#using-subpath)下。
|
||||||
Pod 配置中的每个容器必须独立指定各个卷的挂载位置。
|
Pod 配置中的每个容器必须独立指定各个卷的挂载位置。
|
||||||
|
|
||||||
卷不能挂载到其他卷之上(不过存在一种相关的机制 [使用 subPath](#using-subpath)),也不能与其他卷有硬链接。
|
卷不能挂载到其他卷之上(不过存在一种[使用 subPath](#using-subpath) 的相关机制),也不能与其他卷有硬链接。
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
## Types of Volumes
|
## Types of Volumes
|
||||||
@@ -1271,8 +1271,7 @@ A `persistentVolumeClaim` volume is used to mount a
|
|||||||
are a way for users to "claim" durable storage (such as a GCE PersistentDisk or an
|
are a way for users to "claim" durable storage (such as a GCE PersistentDisk or an
|
||||||
iSCSI volume) without knowing the details of the particular cloud environment.
|
iSCSI volume) without knowing the details of the particular cloud environment.
|
||||||
-->
|
-->
|
||||||
`persistentVolumeClaim` 卷用来将
|
`persistentVolumeClaim` 卷用来将[持久卷](/zh/docs/concepts/storage/persistent-volumes/)(PersistentVolume)挂载到 Pod 中。
|
||||||
[持久卷](/zh/docs/concepts/storage/persistent-volumes/)(PersistentVolume)挂载到 Pod 中。
|
|
||||||
持久卷申领(PersistentVolumeClaim)是用户在不知道特定云环境细节的情况下“申领”持久存储(例如
|
持久卷申领(PersistentVolumeClaim)是用户在不知道特定云环境细节的情况下“申领”持久存储(例如
|
||||||
GCE PersistentDisk 或者 iSCSI 卷)的一种方法。
|
GCE PersistentDisk 或者 iSCSI 卷)的一种方法。
|
||||||
|
|
||||||
@@ -1430,7 +1429,7 @@ must be enabled.
|
|||||||
启用 RBD 的 `CSIMigration` 功能后,所有插件操作从现有的树内插件重定向到
|
启用 RBD 的 `CSIMigration` 功能后,所有插件操作从现有的树内插件重定向到
|
||||||
`rbd.csi.ceph.com` {{<glossary_tooltip text="CSI" term_id="csi" >}} 驱动程序。
|
`rbd.csi.ceph.com` {{<glossary_tooltip text="CSI" term_id="csi" >}} 驱动程序。
|
||||||
要使用该功能,必须在集群内安装
|
要使用该功能,必须在集群内安装
|
||||||
[Ceph CSI driver](https://github.com/ceph/ceph-csi),并启用 `CSIMigration` 和 `csiMigrationRBD`
|
[Ceph CSI 驱动](https://github.com/ceph/ceph-csi),并启用 `CSIMigration` 和 `csiMigrationRBD`
|
||||||
[特性门控](/zh/docs/reference/command-line-tools-reference/feature-gates/)。
|
[特性门控](/zh/docs/reference/command-line-tools-reference/feature-gates/)。
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
@@ -1459,8 +1458,8 @@ RBD CSI driver:
|
|||||||
作为一个必需的参数,所以 Kubernetes 存储管理者需要根据 `monitors`
|
作为一个必需的参数,所以 Kubernetes 存储管理者需要根据 `monitors`
|
||||||
的哈希值(例:`#echo -n '<monitors_string>' | md5sum`)来创建
|
的哈希值(例:`#echo -n '<monitors_string>' | md5sum`)来创建
|
||||||
`clusterID`,并保持该 `monitors` 存在于该 `clusterID` 的配置中。
|
`clusterID`,并保持该 `monitors` 存在于该 `clusterID` 的配置中。
|
||||||
* 同时,如果树内存储类的 `adminId` 的值与 `admin` 不同,那么其 `adminSecretName`
|
* 同时,如果树内存储类的 `adminId` 的值不是 `admin`,那么其 `adminSecretName`
|
||||||
就需要被修改成 `adminId` 的 base64 编码后的值。
|
就需要被修改成 `adminId` 参数的 base64 编码值。
|
||||||
{{< /note >}}
|
{{< /note >}}
|
||||||
|
|
||||||
### secret
|
### secret
|
||||||
@@ -1742,7 +1741,7 @@ Kubernetes 1.23 中加入了 Portworx 的 `CSIMigration` 功能,但默认不
|
|||||||
该功能会将所有的插件操作从现有的树内插件重定向到
|
该功能会将所有的插件操作从现有的树内插件重定向到
|
||||||
`pxd.portworx.com` 容器存储接口(Container Storage Interface, CSI)驱动程序。
|
`pxd.portworx.com` 容器存储接口(Container Storage Interface, CSI)驱动程序。
|
||||||
集群中必须安装
|
集群中必须安装
|
||||||
[Portworx CSI Driver](https://docs.portworx.com/portworx-install-with-kubernetes/storage-operations/csi/)。
|
[Portworx CSI 驱动](https://docs.portworx.com/portworx-install-with-kubernetes/storage-operations/csi/)。
|
||||||
要启用此功能,请在 kube-controller-manager 和 kubelet 中设置 `CSIMigrationPortworx=true`。
|
要启用此功能,请在 kube-controller-manager 和 kubelet 中设置 `CSIMigrationPortworx=true`。
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
@@ -1998,7 +1997,7 @@ persistent volume:
|
|||||||
-->
|
-->
|
||||||
- `volumeHandle`:唯一标识卷的字符串值。
|
- `volumeHandle`:唯一标识卷的字符串值。
|
||||||
该值必须与 CSI 驱动在 `CreateVolumeResponse` 的 `volume_id` 字段中返回的值相对应;接口定义在
|
该值必须与 CSI 驱动在 `CreateVolumeResponse` 的 `volume_id` 字段中返回的值相对应;接口定义在
|
||||||
[CSI spec](https://github.com/container-storage-interface/spec/blob/master/spec.md#createvolume) 中。
|
[CSI 规范](https://github.com/container-storage-interface/spec/blob/master/spec.md#createvolume) 中。
|
||||||
在所有对 CSI 卷驱动程序的调用中,引用该 CSI 卷时都使用此值作为 `volume_id` 参数。
|
在所有对 CSI 卷驱动程序的调用中,引用该 CSI 卷时都使用此值作为 `volume_id` 参数。
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
@@ -2170,7 +2169,7 @@ FlexVolume 是一个使用基于 exec 的模型来与驱动程序对接的树外
|
|||||||
用户必须在每个节点上的预定义卷插件路径中安装 FlexVolume
|
用户必须在每个节点上的预定义卷插件路径中安装 FlexVolume
|
||||||
驱动程序可执行文件,在某些情况下,控制平面节点中也要安装。
|
驱动程序可执行文件,在某些情况下,控制平面节点中也要安装。
|
||||||
|
|
||||||
Pod 通过 `flexvolume` 树内插件与 Flexvolume 驱动程序交互。
|
Pod 通过 `flexvolume` 树内插件与 FlexVolume 驱动程序交互。
|
||||||
更多详情请参考 FlexVolume [README](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-storage/flexvolume.md#readme) 文档。
|
更多详情请参考 FlexVolume [README](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-storage/flexvolume.md#readme) 文档。
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|||||||
Reference in New Issue
Block a user