diff --git a/content/zh-cn/docs/concepts/storage/storage-classes.md b/content/zh-cn/docs/concepts/storage/storage-classes.md index 25e1d6d1ea..6b69a28c6f 100644 --- a/content/zh-cn/docs/concepts/storage/storage-classes.md +++ b/content/zh-cn/docs/concepts/storage/storage-classes.md @@ -103,22 +103,22 @@ for provisioning PVs. This field must be specified. | Volume Plugin | Internal Provisioner | Config Example | --> -| 卷插件 | 内置制备器 | 配置示例 | -| :------------------- | :------------------: | :-----------------------------------: | -| AWSElasticBlockStore | ✓ | [AWS EBS](#aws-ebs) | -| AzureFile | ✓ | [Azure File](#azure-file) | -| AzureDisk | ✓ | [Azure Disk](#azure-disk) | -| CephFS | - | - | -| Cinder | ✓ | [OpenStack Cinder](#openstack-cinder) | -| FC | - | - | -| FlexVolume | - | - | -| GCEPersistentDisk | ✓ | [GCE PD](#gce-pd) | -| iSCSI | - | - | -| NFS | - | [NFS](#nfs) | -| RBD | ✓ | [Ceph RBD](#ceph-rbd) | -| VsphereVolume | ✓ | [vSphere](#vsphere) | -| PortworxVolume | ✓ | [Portworx Volume](#portworx-volume) | -| Local | - | [Local](#local) | +| 卷插件 | 内置制备器 | 配置示例 | +| :------------------- | :--------: | :-----------------------------------: | +| AWSElasticBlockStore | ✓ | [AWS EBS](#aws-ebs) | +| AzureFile | ✓ | [Azure File](#azure-file) | +| AzureDisk | ✓ | [Azure Disk](#azure-disk) | +| CephFS | - | - | +| Cinder | ✓ | [OpenStack Cinder](#openstack-cinder) | +| FC | - | - | +| FlexVolume | - | - | +| GCEPersistentDisk | ✓ | [GCE PD](#gce-pd) | +| iSCSI | - | - | +| NFS | - | [NFS](#nfs) | +| RBD | ✓ | [Ceph RBD](#ceph-rbd) | +| VsphereVolume | ✓ | [vSphere](#vsphere) | +| PortworxVolume | ✓ | [Portworx Volume](#portworx-volume) | +| Local | - | [Local](#local) | ### 回收策略 {#reclaim-policy} -由 StorageClass 动态创建的 PersistentVolume 会在类的 `reclaimPolicy` 字段中指定回收策略,可以是 -`Delete` 或者 `Retain`。如果 StorageClass 对象被创建时没有指定 `reclaimPolicy`,它将默认为 `Delete`。 +由 StorageClass 动态创建的 PersistentVolume 会在类的 +[reclaimPolicy](/zh-cn/docs/concepts/storage/persistent-volumes/#reclaiming) +字段中指定回收策略,可以是 `Delete` 或者 `Retain`。 +如果 StorageClass 对象被创建时没有指定 `reclaimPolicy`,它将默认为 `Delete`。 通过 StorageClass 手动创建并管理的 PersistentVolume 会使用它们被创建时指定的回收策略。 @@ -236,8 +239,9 @@ the class or PV. If a mount option is invalid, the PV mount fails. ### 卷绑定模式 {#volume-binding-mode} `volumeBindingMode` 字段控制了[卷绑定和动态制备](/zh-cn/docs/concepts/storage/persistent-volumes/#provisioning)应该发生在什么时候。 @@ -310,7 +314,8 @@ to see its supported topology keys and examples. {{< note >}} @@ -493,6 +498,7 @@ parameters: where Kubernetes cluster has a node. `zone` and `zones` parameters must not be used at the same time. - `fstype`: `ext4` or `xfs`. Default: `ext4`. The defined filesystem type must be supported by the host operating system. + - `replication-type`: `none` or `regional-pd`. Default: `none`. --> - `type`:`pd-standard` 或者 `pd-ssd`。默认:`pd-standard` @@ -561,11 +567,12 @@ parameters: - `readOnly`:是否将存储挂载为只读的标志(默认为 false)。 Kubernetes 不包含内部 NFS 驱动。你需要使用外部驱动为 NFS 创建 StorageClass。 这里有些例子: @@ -591,10 +598,11 @@ parameters: - `availability`:可用区域。如果没有指定,通常卷会在 Kubernetes 集群节点所在的活动区域中轮转调度。 {{< note >}} - {{< feature-state state="deprecated" for_k8s_version="v1.11" >}} + OpenStack 的内部驱动已经被弃用。请使用 [OpenStack 的外部云驱动](https://github.com/kubernetes/cloud-provider-openstack)。 {{< /note >}} @@ -607,7 +615,10 @@ There are two types of provisioners for vSphere storage classes: - [CSI provisioner](#vsphere-provisioner-csi): `csi.vsphere.vmware.com` - [vCP provisioner](#vcp-provisioner): `kubernetes.io/vsphere-volume` -In-tree provisioners are [deprecated](/blog/2019/12/09/kubernetes-1-17-feature-csi-migration-beta/#why-are-we-migrating-in-tree-plugins-to-csi). For more information on the CSI provisioner, see [Kubernetes vSphere CSI Driver](https://vsphere-csi-driver.sigs.k8s.io/) and [vSphereVolume CSI migration](/docs/concepts/storage/volumes/#vsphere-csi-migration). +In-tree provisioners are [deprecated](/blog/2019/12/09/kubernetes-1-17-feature-csi-migration-beta/#why-are-we-migrating-in-tree-plugins-to-csi). +For more information on the CSI provisioner, see +[Kubernetes vSphere CSI Driver](https://vsphere-csi-driver.sigs.k8s.io/) and +[vSphereVolume CSI migration](/docs/concepts/storage/volumes/#vsphere-csi-migration). --> vSphere 存储类有两种制备器: @@ -623,7 +634,8 @@ vSphere 存储类有两种制备器: #### CSI 制备器 {#vsphere-provisioner-csi} diff --git a/content/zh-cn/docs/concepts/storage/volume-health-monitoring.md b/content/zh-cn/docs/concepts/storage/volume-health-monitoring.md index 3bc0a8fe26..0c8da44608 100644 --- a/content/zh-cn/docs/concepts/storage/volume-health-monitoring.md +++ b/content/zh-cn/docs/concepts/storage/volume-health-monitoring.md @@ -18,8 +18,11 @@ weight: 100 {{< feature-state for_k8s_version="v1.21" state="alpha" >}} - {{< glossary_tooltip text="CSI" term_id="csi" >}} 卷健康监测支持 CSI 驱动从底层的存储系统着手, 探测异常的卷状态,并以事件的形式上报到 {{< glossary_tooltip text="PVCs" term_id="persistent-volume-claim" >}} @@ -27,15 +30,21 @@ weight: 100 - ## 卷健康监测 {#volume-health-monitoring} - Kubernetes _卷健康监测_ 是 Kubernetes 容器存储接口(CSI)实现的一部分。 卷健康监测特性由两个组件实现:外部健康监测控制器和 {{< glossary_tooltip term_id="kubelet" text="kubelet" >}}。 @@ -45,9 +54,20 @@ Kubernetes _卷健康监测_ 是 Kubernetes 容器存储接口(CSI)实现的 中上报一个事件。 外部健康监测{{< glossary_tooltip text="控制器" term_id="controller" >}}也会监测节点失效事件。 如果要启动节点失效监测功能,你可以设置标志 `enable-node-watcher` 为 `true`。 @@ -55,14 +75,15 @@ If a CSI Driver supports Volume Health Monitoring feature from the node side, an 以表明使用此 PVC 的 Pod 正位于一个失效的节点上。 如果 CSI 驱动程序支持节点测的卷健康检测,那当在 CSI 卷上检测到异常卷时, -会在使用该 PVC 的每个Pod 上触发一个事件。 +会在使用该 PVC 的每个 Pod 上触发一个事件。 此外,卷运行状况信息作为 Kubelet VolumeStats 指标公开。 添加了一个新的指标 kubelet_volume_stats_health_status_abnormal。 该指标包括两个标签:`namespace` 和 `persistentvolumeclaim`。 计数为 1 或 0。1 表示卷不正常,0 表示卷正常。更多信息请访问[KEP](https://github.com/kubernetes/enhancements/tree/master/keps/sig-storage/1432-volume-health-monitor#kubelet-metrics-changes)。 - {{< note >}} 你需要启用 `CSIVolumeHealth` @@ -72,9 +93,9 @@ You need to enable the `CSIVolumeHealth` [feature gate](/docs/reference/command- ## {{% heading "whatsnext" %}} - 参阅 [CSI 驱动程序文档](https://kubernetes-csi.github.io/docs/drivers.html), 可以找出有哪些 CSI 驱动程序实现了此特性。 -