@@ -139,7 +139,7 @@ AWSElasticBlockStore 树内存储驱动已在 Kubernetes v1.19 版本中废弃
139
139
并在 v1.27 版本中被完全移除。
140
140
141
141
Kubernetes 项目建议你转为使用 [ AWS EBS] ( https://github.com/kubernetes-sigs/aws-ebs-csi-driver )
142
- 第三方存储驱动 。
142
+ 第三方存储驱动插件 。
143
143
144
144
<!--
145
145
### azureDisk (removed) {#azuredisk}
@@ -163,7 +163,7 @@ Kubernetes {{< skew currentVersion >}} 不包含 `azureDisk` 卷类型。
163
163
AzureDisk 树内存储驱动已在 Kubernetes v1.19 版本中废弃,并在 v1.27 版本中被完全移除。
164
164
165
165
Kubernetes 项目建议你转为使用 [ Azure Disk] ( https://github.com/kubernetes-sigs/azuredisk-csi-driver )
166
- 第三方存储驱动 。
166
+ 第三方存储驱动插件 。
167
167
168
168
<!--
169
169
### azureFile (deprecated) {#azurefile}
@@ -234,7 +234,8 @@ and the kubelet, set the `InTreePluginAzureFileUnregister` flag to `true`.
234
234
The Kubernetes project suggests that you use the [CephFS CSI](https://github.com/ceph/ceph-csi) third party
235
235
storage driver instead.
236
236
-->
237
- Kubernetes 项目建议你转为使用 [ CephFS CSI] ( https://github.com/ceph/ceph-csi ) 第三方存储驱动。
237
+ Kubernetes 项目建议你转为使用 [ CephFS CSI] ( https://github.com/ceph/ceph-csi )
238
+ 第三方存储驱动插件。
238
239
{{< /note >}}
239
240
240
241
<!--
@@ -288,7 +289,7 @@ OpenStack Cinder 树内存储驱动已在 Kubernetes v1.11 版本中废弃,
288
289
289
290
Kubernetes 项目建议你转为使用
290
291
[ OpenStack Cinder] ( https://github.com/kubernetes/cloud-provider-openstack/blob/master/docs/cinder-csi-plugin/using-cinder-csi-plugin.md )
291
- 第三方存储驱动 。
292
+ 第三方存储驱动插件 。
292
293
293
294
### configMap
294
295
@@ -516,163 +517,27 @@ for more details.
516
517
更多详情请参考 [FC 示例](https://github.com/kubernetes/examples/tree/master/staging/volumes/fibre_channel)。
517
518
518
519
<!--
519
- # ## gcePersistentDisk (deprecated ) {#gcepersistentdisk}
520
+ # ## gcePersistentDisk (removed ) {#gcepersistentdisk}
520
521
521
- A `gcePersistentDisk` volume mounts a Google Compute Engine (GCE)
522
- [persistent disk](https://cloud.google.com/compute/docs/disks) (PD) into your Pod.
523
- Unlike `emptyDir`, which is erased when a pod is removed, the contents of a PD are
524
- preserved and the volume is merely unmounted. This means that a PD can be
525
- pre-populated with data, and that data can be shared between pods.
522
+ Kubernetes {{< skew currentVersion >}} does not include a `gcePersistentDisk` volume type.
526
523
-->
527
- # ## gcePersistentDisk(已弃用 ) {#gcepersistentdisk}
524
+ # ## gcePersistentDisk(已移除 ) {#gcepersistentdisk}
528
525
529
- {{< feature-state for_k8s_version="v1.17" state="deprecated" >}}
526
+ Kubernetes {{< skew currentVersion >}} 不包含 `gcePersistentDisk` 卷类型。
530
527
531
- ` gcePersistentDisk` 卷能将谷歌计算引擎 (GCE) [持久盘(PD)](http://cloud.google.com/compute/docs/disks)
532
- 挂载到你的 Pod 中。
533
- 不像 `emptyDir` 那样会在 Pod 被删除的同时也会被删除,持久盘卷的内容在删除 Pod
534
- 时会被保留,卷只是被卸载了。
535
- 这意味着持久盘卷可以被预先填充数据,并且这些数据可以在 Pod 之间共享。
536
-
537
- {{< note >}}
538
528
<!--
539
- You must create a PD using `gcloud` or the GCE API or UI before you can use it.
529
+ The `gcePersistentDisk` in-tree storage driver was deprecated in the Kubernetes v1.17 release
530
+ and then removed entirely in the v1.28 release.
540
531
-->
541
- 在使用 PD 前,你必须使用 `gcloud` 或者 GCE API 或 UI 创建它。
542
- {{< /note >}}
532
+ ` gcePersistentDisk` 源代码树内卷存储驱动在 Kubernetes v1.17 版本中被弃用,在 v1.28 版本中被完全移除。
543
533
544
534
<!--
545
- There are some restrictions when using a `gcePersistentDisk` :
546
-
547
- * the nodes on which Pods are running must be GCE VMs
548
- * those VMs need to be in the same GCE project and zone as the persistent disk
549
- -->
550
- 使用 `gcePersistentDisk` 时有一些限制:
551
-
552
- * 运行 Pod 的节点必须是 GCE VM
553
- * 这些 VM 必须和持久盘位于相同的 GCE 项目和区域(zone)
554
-
555
- <!--
556
- One feature of GCE persistent disk is concurrent read-only access to a persistent disk.
557
- A `gcePersistentDisk` volume permits multiple consumers to simultaneously
558
- mount a persistent disk as read-only. This means that you can pre-populate a PD with your dataset
559
- and then serve it in parallel from as many Pods as you need. Unfortunately,
560
- PDs can only be mounted by a single consumer in read-write mode. Simultaneous
561
- writers are not allowed.
562
- -->
563
- GCE PD 的一个特点是它们可以同时被多个消费者以只读方式挂载。
564
- 这意味着你可以用数据集预先填充 PD,然后根据需要并行地在尽可能多的 Pod 中提供该数据集。
565
- 不幸的是,PD 只能由单个使用者以读写模式挂载,即不允许同时写入。
566
-
567
- <!--
568
- Using a GCE persistent disk with a Pod controlled by a ReplicaSet will fail unless
569
- the PD is read-only or the replica count is 0 or 1.
570
- -->
571
- 在由 ReplicationController 所管理的 Pod 上使用 GCE PD 将会失败,除非 PD
572
- 是只读模式或者副本的数量是 0 或 1。
573
-
574
- <!--
575
- # ### Creating a GCE persistent disk {#gce-create-persistent-disk}
576
-
577
- Before you can use a GCE persistent disk with a Pod, you need to create it.
578
- -->
579
- # ### 创建 GCE 持久盘(PD) {#gce-create-persistent-disk}
580
-
581
- 在 Pod 中使用 GCE 持久盘之前,你首先要创建它。
582
-
583
- ` ` ` shell
584
- gcloud compute disks create --size=500GB --zone=us-central1-a my-data-disk
585
- ` ` `
586
-
587
- <!--
588
- # ### Example Pod
589
- -->
590
- # ### GCE 持久盘配置示例 {#gce-pd-configuration-example}
591
-
592
- ` ` ` yaml
593
- apiVersion: v1
594
- kind: Pod
595
- metadata:
596
- name: test-pd
597
- spec:
598
- containers:
599
- - image: registry.k8s.io/test-webserver
600
- name: test-container
601
- volumeMounts:
602
- - mountPath: /test-pd
603
- name: test-volume
604
- volumes:
605
- - name: test-volume
606
- # 此 GCE PD 必须已经存在
607
- gcePersistentDisk:
608
- pdName: my-data-disk
609
- fsType: ext4
610
- ` ` `
611
- <!--
612
- # ### Regional persistent Disks
613
- -->
614
- # ### 区域持久盘 {#regional-persistent-disks}
615
-
616
- <!--
617
- The [Regional persistent disks](https://cloud.google.com/compute/docs/disks/#repds)
618
- feature allows the creation of persistent disks that are available in two zones
619
- within the same region. In order to use this feature, the volume must be provisioned
620
- as a PersistentVolume; referencing the volume directly from a pod is not supported.
621
- -->
622
- [区域持久盘](https://cloud.google.com/compute/docs/disks/#repds)特性允许你创建能在同一区域的两个可用区中使用的持久盘。
623
- 要使用这个特性,必须以持久卷(PersistentVolume)的方式提供卷;直接从
624
- Pod 引用这种卷是不可以的。
625
-
626
- <!--
627
- # ### Manually provisioning a Regional PD PersistentVolume
628
-
629
- Dynamic provisioning is possible using a
630
- [StorageClass for GCE PD](/docs/concepts/storage/storage-classes/#gce-pd).
631
- Before creating a PersistentVolume, you must create the persistent disk :
632
- -->
633
- # ### 手动制备基于区域 PD 的 PersistentVolume {#manually-provisioning-regional-pd-pv}
634
-
635
- 使用[为 GCE PD 定义的存储类](/zh-cn/docs/concepts/storage/storage-classes/#gce-pd)
636
- 可以实现动态制备。在创建 PersistentVolume 之前,你首先要创建 PD。
637
-
638
- ` ` ` shell
639
- gcloud compute disks create --size=500GB my-data-disk
640
- --region us-central1
641
- --replica-zones us-central1-a,us-central1-b
642
- ` ` `
643
-
644
- <!--
645
- # ### Regional persistent disk configuration example
646
- -->
647
- # ### 区域持久盘配置示例
648
-
649
- <!--
650
- # failure-domain.beta.kubernetes.io/zone should be used prior to 1.21
535
+ The Kubernetes project suggests that you use the [Google Compute Engine Persistent Disk CSI](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver)
536
+ third party storage driver instead.
651
537
-->
652
- ` ` ` yaml
653
- apiVersion: v1
654
- kind: PersistentVolume
655
- metadata:
656
- name: test-volume
657
- spec:
658
- capacity:
659
- storage: 400Gi
660
- accessModes:
661
- - ReadWriteOnce
662
- gcePersistentDisk:
663
- pdName: my-data-disk
664
- fsType: ext4
665
- nodeAffinity:
666
- required:
667
- nodeSelectorTerms:
668
- - matchExpressions:
669
- # failure-domain.beta.kubernetes.io/zone 应在 1.21 之前使用
670
- - key: topology.kubernetes.io/zone
671
- operator: In
672
- values:
673
- - us-central1-a
674
- - us-central1-b
675
- ` ` `
538
+ Kubernetes 项目建议你转为使用
539
+ [Google Compute Engine Persistent Disk CSI](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver)
540
+ 第三方存储驱动插件。
676
541
677
542
<!--
678
543
# ### GCE CSI migration
@@ -693,23 +558,9 @@ must be installed on the cluster.
693
558
为了使用此特性,必须在集群中上安装
694
559
[GCE PD CSI 驱动程序](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver)。
695
560
696
- <!--
697
- # ### GCE CSI migration complete
698
-
699
- To disable the `gcePersistentDisk` storage plugin from being loaded by the controller manager
700
- and the kubelet, set the `InTreePluginGCEUnregister` flag to `true`.
701
- -->
702
- # ### GCE CSI 迁移完成
703
-
704
- {{< feature-state for_k8s_version="v1.21" state="alpha" >}}
705
-
706
- 要禁止控制器管理器和 kubelet 加载 `gcePersistentDisk` 存储插件,请将
707
- ` InTreePluginGCEUnregister` 标志设置为 `true`。
708
-
709
561
<!--
710
562
# ## gitRepo (deprecated) {#gitrepo}
711
563
-->
712
-
713
564
# ## gitRepo (已弃用) {#gitrepo}
714
565
715
566
{{< warning >}}
@@ -1160,12 +1011,11 @@ for an example of mounting NFS volumes with PersistentVolumes.
1160
1011
<!--
1161
1012
A `persistentVolumeClaim` volume is used to mount a
1162
1013
[PersistentVolume](/docs/concepts/storage/persistent-volumes/) into a Pod. PersistentVolumeClaims
1163
- are a way for users to "claim" durable storage (such as a GCE PersistentDisk or an
1164
- iSCSI volume) without knowing the details of the particular cloud environment.
1014
+ are a way for users to "claim" durable storage (such as an iSCSI volume)
1015
+ without knowing the details of the particular cloud environment.
1165
1016
-->
1166
1017
` persistentVolumeClaim` 卷用来将[持久卷](/zh-cn/docs/concepts/storage/persistent-volumes/)(PersistentVolume)挂载到 Pod 中。
1167
- 持久卷申领(PersistentVolumeClaim)是用户在不知道特定云环境细节的情况下“申领”持久存储(例如
1168
- GCE PersistentDisk 或者 iSCSI 卷)的一种方法。
1018
+ 持久卷申领(PersistentVolumeClaim)是用户在不知道特定云环境细节的情况下“申领”持久存储(例如 iSCSI 卷)的一种方法。
1169
1019
1170
1020
<!--
1171
1021
See the information about [PersistentVolumes](/docs/concepts/storage/persistent-volumes/) for more
@@ -1277,7 +1127,8 @@ directory. For more details, see [projected volumes](/docs/concepts/storage/proj
1277
1127
The Kubernetes project suggests that you use the [Ceph CSI](https://github.com/ceph/ceph-csi)
1278
1128
third party storage driver instead, in RBD mode.
1279
1129
-->
1280
- Kubernetes 项目建议你转为以 RBD 模式使用 [Ceph CSI](https://github.com/ceph/ceph-csi) 第三方存储驱动。
1130
+ Kubernetes 项目建议你转为以 RBD 模式使用 [Ceph CSI](https://github.com/ceph/ceph-csi)
1131
+ 第三方存储驱动插件。
1281
1132
{{< /note >}}
1282
1133
1283
1134
<!--
0 commit comments