@@ -38,7 +38,7 @@ administrators. Kubernetes itself is unopinionated about what classes
38
38
represent. This concept is sometimes called "profiles" in other storage
39
39
systems.
40
40
-->
41
- ## 介绍
41
+ ## 介绍 {#introduction}
42
42
43
43
StorageClass 为管理员提供了描述存储 "类" 的方法。
44
44
不同的类型可能会映射到不同的服务质量等级或备份策略,或是由集群管理员制定的任意策略。
@@ -52,7 +52,7 @@ Each StorageClass contains the fields `provisioner`, `parameters`, and
52
52
class needs to be dynamically provisioned.
53
53
54
54
-->
55
- ## StorageClass 资源
55
+ ## StorageClass 资源 {#the-storageclass-resource}
56
56
57
57
每个 StorageClass 都包含 ` provisioner ` 、` parameters ` 和 ` reclaimPolicy ` 字段,
58
58
这些字段会在 StorageClass 需要动态分配 PersistentVolume 时会使用到。
@@ -170,7 +170,7 @@ StorageClass object is created, it will default to `Delete`.
170
170
PersistentVolumes that are created manually and managed via a StorageClass will have
171
171
whatever reclaim policy they were assigned at creation.
172
172
-->
173
- # ## 回收策略
173
+ # ## 回收策略 {#reclaim-policy}
174
174
175
175
由 StorageClass 动态创建的 PersistentVolume 会在类的 `reclaimPolicy` 字段中指定回收策略,可以是
176
176
` Delete` 或者 `Retain`。如果 StorageClass 对象被创建时没有指定 `reclaimPolicy`,它将默认为 `Delete`。
@@ -181,7 +181,7 @@ whatever reclaim policy they were assigned at creation.
181
181
# ## Allow Volume Expansion
182
182
-->
183
183
184
- # ## 允许卷扩展
184
+ # ## 允许卷扩展 {#allow-volume-expansion}
185
185
186
186
{{< feature-state for_k8s_version="v1.11" state="beta" >}}
187
187
@@ -233,7 +233,7 @@ If the volume plugin does not support mount options but mount options are
233
233
specified, provisioning will fail. Mount options are not validated on either
234
234
the class or PV, If a mount option is invalid, the PV mount fails.
235
235
-->
236
- # ## 挂载选项
236
+ # ## 挂载选项 {#mount-options}
237
237
238
238
由 StorageClass 动态创建的 PersistentVolume 将使用类中 `mountOptions` 字段指定的挂载选项。
239
239
@@ -243,7 +243,7 @@ the class or PV, If a mount option is invalid, the PV mount fails.
243
243
<!--
244
244
# ## Volume Binding Mode
245
245
-->
246
- # ## 卷绑定模式
246
+ # ## 卷绑定模式 {#volume-binding-mode}
247
247
248
248
<!--
249
249
The `volumeBindingMode` field controls when [volume binding and dynamic
@@ -406,7 +406,7 @@ There can be at most 512 parameters defined for a StorageClass.
406
406
The total length of the parameters object including its keys and values cannot
407
407
exceed 256 KiB.
408
408
-->
409
- # # 参数
409
+ # # 参数 {#parameters}
410
410
411
411
Storage Classes 的参数描述了存储类的卷。取决于制备器,可以接受不同的参数。
412
412
例如,参数 type 的值 io1 和参数 iopsPerGB 特定于 EBS PV。
@@ -1076,7 +1076,7 @@ parameters:
1076
1076
<!--
1077
1077
# ## Azure Disk
1078
1078
-->
1079
- # ## Azure 磁盘
1079
+ # ## Azure 磁盘 {#azure-disk}
1080
1080
1081
1081
<!--
1082
1082
# ### Azure Unmanaged Disk Storage Class {#azure-disk-storage-class}
@@ -1157,7 +1157,7 @@ parameters:
1157
1157
<!--
1158
1158
# ## Azure File
1159
1159
-->
1160
- # ## Azure 文件
1160
+ # ## Azure 文件 {#azure-file}
1161
1161
1162
1162
` ` ` yaml
1163
1163
kind: StorageClass
@@ -1225,7 +1225,7 @@ be read by other users.
1225
1225
<!--
1226
1226
# ## Portworx Volume
1227
1227
-->
1228
- # ## Portworx 卷
1228
+ # ## Portworx 卷 {#portworx-volume}
1229
1229
1230
1230
` ` ` yaml
1231
1231
apiVersion: storage.k8s.io/v1
@@ -1426,7 +1426,7 @@ references it.
1426
1426
<!--
1427
1427
# ## Local
1428
1428
-->
1429
- # ## 本地
1429
+ # ## 本地 {#local}
1430
1430
1431
1431
{{< feature-state for_k8s_version="v1.14" state="stable" >}}
1432
1432
0 commit comments