@@ -113,7 +113,6 @@ for provisioning PVs. This field must be specified.
113
113
| FC | - | - |
114
114
| FlexVolume | - | - |
115
115
| GCEPersistentDisk | ✓ | [GCE PD](#gce-pd) |
116
- | Glusterfs | ✓ | [Glusterfs](#glusterfs) |
117
116
| iSCSI | - | - |
118
117
| NFS | - | [NFS](#nfs) |
119
118
| RBD | ✓ | [Ceph RBD](#ceph-rbd) |
@@ -198,7 +197,6 @@ Volume type | Required Kubernetes version
198
197
| gcePersistentDisk | 1.11 |
199
198
| awsElasticBlockStore | 1.11 |
200
199
| Cinder | 1.11 |
201
- | glusterfs | 1.11 |
202
200
| rbd | 1.11 |
203
201
| Azure File | 1.11 |
204
202
| Azure Disk | 1.11 |
@@ -317,8 +315,8 @@ to see its supported topology keys and examples.
317
315
-->
318
316
如果你选择使用 `WaitForFirstConsumer`,请不要在 Pod 规约中使用 `nodeName` 来指定节点亲和性。
319
317
如果在这种情况下使用 `nodeName`,Pod 将会绕过调度程序,PVC 将停留在 `pending` 状态。
320
-
321
- 相反,在这种情况下,你可以使用节点选择器作为主机名,如下所示
318
+
319
+ 相反,在这种情况下,你可以使用节点选择器作为主机名,如下所示。
322
320
323
321
{{< /note >}}
324
322
@@ -538,145 +536,6 @@ using `allowedTopologies`.
538
536
` zone` 和 `zones` 已被弃用并被 [allowedTopologies](#allowed-topologies) 取代。
539
537
{{< /note >}}
540
538
541
- <!--
542
- # ## Glusterfs (deprecated) {#glusterfs}
543
- -->
544
- # ## Glusterfs(已弃用) {#glusterfs}
545
-
546
- ` ` ` yaml
547
- apiVersion: storage.k8s.io/v1
548
- kind: StorageClass
549
- metadata:
550
- name: slow
551
- provisioner: kubernetes.io/glusterfs
552
- parameters:
553
- resturl: "http://127.0.0.1:8081"
554
- clusterid: "630372ccdc720a92c681fb928f27b53f"
555
- restauthenabled: "true"
556
- restuser: "admin"
557
- secretNamespace: "default"
558
- secretName: "heketi-secret"
559
- gidMin: "40000"
560
- gidMax: "50000"
561
- volumetype: "replicate:3"
562
- ` ` `
563
-
564
- <!--
565
- * `resturl`: Gluster REST service/Heketi service url which provision gluster
566
- volumes on demand. The general format should be `IPaddress:Port` and this is
567
- a mandatory parameter for GlusterFS dynamic provisioner. If Heketi service is
568
- exposed as a routable service in openshift/kubernetes setup, this can have a
569
- format similar to `http://heketi-storage-project.cloudapps.mystorage.com`
570
- where the fqdn is a resolvable Heketi service url.
571
- * `restauthenabled` : Gluster REST service authentication boolean that enables
572
- authentication to the REST server. If this value is `"true"`, `restuser` and
573
- ` restuserkey` or `secretNamespace` + `secretName` have to be filled. This
574
- option is deprecated, authentication is enabled when any of `restuser`,
575
- ` restuserkey` , `secretName` or `secretNamespace` is specified.
576
- * `restuser` : Gluster REST service/Heketi user who has access to create volumes
577
- in the Gluster Trusted Pool.
578
- * `restuserkey` : Gluster REST service/Heketi user's password which will be used
579
- for authentication to the REST server. This parameter is deprecated in favor
580
- of `secretNamespace` + `secretName`.
581
- -->
582
- * `resturl`:制备 gluster 卷的需求的 Gluster REST 服务/Heketi 服务 url。
583
- 通用格式应该是 `IPaddress:Port`,这是 GlusterFS 动态制备器的必需参数。
584
- 如果 Heketi 服务在 OpenShift/kubernetes 中安装并暴露为可路由服务,则可以使用类似于
585
- ` http://heketi-storage-project.cloudapps.mystorage.com` 的格式,其中 fqdn 是可解析的 heketi 服务网址。
586
- * `restauthenabled`:Gluster REST 服务身份验证布尔值,用于启用对 REST 服务器的身份验证。
587
- 如果此值为 'true',则必须填写 `restuser` 和 `restuserkey` 或 `secretNamespace` + `secretName`。
588
- 此选项已弃用,当在指定 `restuser`、`restuserkey`、`secretName` 或 `secretNamespace` 时,身份验证被启用。
589
- * `restuser`:在 Gluster 可信池中有权创建卷的 Gluster REST服务/Heketi 用户。
590
- * `restuserkey`:Gluster REST 服务/Heketi 用户的密码将被用于对 REST 服务器进行身份验证。
591
- 此参数已弃用,取而代之的是 `secretNamespace` + `secretName`。
592
-
593
- <!--
594
- * `secretNamespace`, `secretName` : Identification of Secret instance that
595
- contains user password to use when talking to Gluster REST service. These
596
- parameters are optional, empty password will be used when both
597
- ` secretNamespace` and `secretName` are omitted. The provided secret must have
598
- type `"kubernetes.io/glusterfs"`, for example created in this way :
599
-
600
- ```
601
- kubectl create secret generic heketi-secret \
602
- --type="kubernetes.io/glusterfs" --from-literal=key='opensesame' \
603
- --namespace=default
604
- ```
605
-
606
- Example of a secret can be found in
607
- [glusterfs-provisioning-secret.yaml](https://github.com/kubernetes/examples/tree/master/staging/persistent-volume-provisioning/glusterfs/glusterfs-secret.yaml).
608
- -->
609
- * `secretNamespace`,`secretName`:Secret 实例的标识,包含与 Gluster
610
- REST 服务交互时使用的用户密码。
611
- 这些参数是可选的,`secretNamespace` 和 `secretName` 都省略时使用空密码。
612
- 所提供的 Secret 必须将类型设置为 "kubernetes.io/glusterfs",例如以这种方式创建:
613
-
614
- ```
615
- kubectl create secret generic heketi-secret \
616
- --type="kubernetes.io/glusterfs" --from-literal=key='opensesame' \
617
- --namespace=default
618
- ```
619
-
620
- Secret 的例子可以在
621
- [glusterfs-provisioning-secret.yaml](https://github.com/kubernetes/examples/tree/master/staging/persistent-volume-provisioning/glusterfs/glusterfs-secret.yaml) 中找到。
622
-
623
- <!--
624
- * `clusterid`: `630372ccdc720a92c681fb928f27b53f` is the ID of the cluster
625
- which will be used by Heketi when provisioning the volume. It can also be a
626
- list of clusterids, for example:
627
- `"8452344e2becec931ece4e33c4674e4e,42982310de6c63381718ccfa6d8cf397"`. This
628
- is an optional parameter.
629
- * `gidMin`, `gidMax` : The minimum and maximum value of GID range for the
630
- StorageClass. A unique value (GID) in this range ( gidMin-gidMax ) will be
631
- used for dynamically provisioned volumes. These are optional values. If not
632
- specified, the volume will be provisioned with a value between 2000-2147483647
633
- which are defaults for gidMin and gidMax respectively.
634
- -->
635
- * `clusterid`:`630372ccdc720a92c681fb928f27b53f` 是集群的 ID,当制备卷时,
636
- Heketi 将会使用这个文件。它也可以是一个 clusterid 列表,例如:
637
- `"8452344e2becec931ece4e33c4674e4e,42982310de6c63381718ccfa6d8cf397"`。这个是可选参数。
638
- * `gidMin`,`gidMax`:StorageClass GID 范围的最小值和最大值。
639
- 在此范围(gidMin-gidMax)内的唯一值(GID)将用于动态制备卷。这些是可选的值。
640
- 如果不指定,所制备的卷为一个 2000-2147483647 之间的值,这是 gidMin 和
641
- gidMax 的默认值。
642
-
643
- <!--
644
- * `volumetype` : The volume type and its parameters can be configured with this
645
- optional value. If the volume type is not mentioned, it's up to the provisioner
646
- to decide the volume type.
647
-
648
- For example:
649
- * Replica volume: `volumetype: replicate:3` where '3' is replica count.
650
- * Disperse/EC volume: `volumetype: disperse:4:2` where '4' is data and '2' is the redundancy count.
651
- * Distribute volume: `volumetype: none`
652
-
653
- For available volume types and administration options, refer to the
654
- [Administration Guide](https://access.redhat.com/documentation/en-us/red_hat_gluster_storage/).
655
-
656
- For further reference information, see
657
- [How to configure Heketi](https://github.com/heketi/heketi/wiki/Setting-up-the-topology).
658
-
659
- When persistent volumes are dynamically provisioned, the Gluster plugin
660
- automatically creates an endpoint and a headless service in the name
661
- `gluster-dynamic-<claimname>`. The dynamic endpoint and service are automatically
662
- deleted when the persistent volume claim is deleted.
663
- -->
664
- * `volumetype`:卷的类型及其参数可以用这个可选值进行配置。如果未声明卷类型,则由制备器决定卷的类型。
665
-
666
- 例如:
667
- * 'Replica volume':`volumetype: replicate:3` 其中 '3' 是 replica 数量。
668
- * 'Disperse/EC volume':`volumetype: disperse:4:2` 其中 '4' 是数据,'2' 是冗余数量。
669
- * 'Distribute volume':`volumetype: none`
670
-
671
- 有关可用的卷类型和管理选项,
672
- 请参阅[管理指南](https://access.redhat.com/documentation/en-us/red_hat_gluster_storage/)。
673
-
674
- 更多相关的参考信息,
675
- 请参阅[如何配置 Heketi](https://github.com/heketi/heketi/wiki/Setting-up-the-topology)。
676
-
677
- 当动态制备持久卷时,Gluster 插件自动创建名为 `gluster-dynamic-<claimname>`
678
- 的端点和无头服务。在 PVC 被删除时动态端点和无头服务会自动被删除。
679
-
680
539
# ## NFS {#nfs}
681
540
682
541
` ` ` yaml
0 commit comments