Skip to content

Commit 6c60ad2

Browse files
committed
[zh-cn]Fix add anchor reclaim-policy
[zh-cn]Fix add anchor reclaim-policy
1 parent e6fe643 commit 6c60ad2

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

content/zh-cn/docs/concepts/storage/storage-classes.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ administrators. Kubernetes itself is unopinionated about what classes
3838
represent. This concept is sometimes called "profiles" in other storage
3939
systems.
4040
-->
41-
## 介绍
41+
## 介绍 {#introduction}
4242

4343
StorageClass 为管理员提供了描述存储 "类" 的方法。
4444
不同的类型可能会映射到不同的服务质量等级或备份策略,或是由集群管理员制定的任意策略。
@@ -52,7 +52,7 @@ Each StorageClass contains the fields `provisioner`, `parameters`, and
5252
class needs to be dynamically provisioned.
5353
5454
-->
55-
## StorageClass 资源
55+
## StorageClass 资源 {#the-storageclass-resource}
5656

5757
每个 StorageClass 都包含 `provisioner``parameters``reclaimPolicy` 字段,
5858
这些字段会在 StorageClass 需要动态分配 PersistentVolume 时会使用到。
@@ -170,7 +170,7 @@ StorageClass object is created, it will default to `Delete`.
170170
PersistentVolumes that are created manually and managed via a StorageClass will have
171171
whatever reclaim policy they were assigned at creation.
172172
-->
173-
### 回收策略
173+
### 回收策略 {#reclaim-policy}
174174

175175
由 StorageClass 动态创建的 PersistentVolume 会在类的 `reclaimPolicy` 字段中指定回收策略,可以是
176176
`Delete` 或者 `Retain`。如果 StorageClass 对象被创建时没有指定 `reclaimPolicy`,它将默认为 `Delete`。
@@ -181,7 +181,7 @@ whatever reclaim policy they were assigned at creation.
181181
### Allow Volume Expansion
182182
-->
183183

184-
### 允许卷扩展
184+
### 允许卷扩展 {#allow-volume-expansion}
185185

186186
{{< feature-state for_k8s_version="v1.11" state="beta" >}}
187187

@@ -233,7 +233,7 @@ If the volume plugin does not support mount options but mount options are
233233
specified, provisioning will fail. Mount options are not validated on either
234234
the class or PV, If a mount option is invalid, the PV mount fails.
235235
-->
236-
### 挂载选项
236+
### 挂载选项 {#mount-options}
237237

238238
由 StorageClass 动态创建的 PersistentVolume 将使用类中 `mountOptions` 字段指定的挂载选项。
239239

@@ -243,7 +243,7 @@ the class or PV, If a mount option is invalid, the PV mount fails.
243243
<!--
244244
### Volume Binding Mode
245245
-->
246-
### 卷绑定模式
246+
### 卷绑定模式 {#volume-binding-mode}
247247

248248
<!--
249249
The `volumeBindingMode` field controls when [volume binding and dynamic
@@ -406,7 +406,7 @@ There can be at most 512 parameters defined for a StorageClass.
406406
The total length of the parameters object including its keys and values cannot
407407
exceed 256 KiB.
408408
-->
409-
## 参数
409+
## 参数 {#parameters}
410410

411411
Storage Classes 的参数描述了存储类的卷。取决于制备器,可以接受不同的参数。
412412
例如,参数 type 的值 io1 和参数 iopsPerGB 特定于 EBS PV。
@@ -1076,7 +1076,7 @@ parameters:
10761076
<!--
10771077
### Azure Disk
10781078
-->
1079-
### Azure 磁盘
1079+
### Azure 磁盘 {#azure-disk}
10801080

10811081
<!--
10821082
#### Azure Unmanaged Disk Storage Class {#azure-disk-storage-class}
@@ -1157,7 +1157,7 @@ parameters:
11571157
<!--
11581158
### Azure File
11591159
-->
1160-
### Azure 文件
1160+
### Azure 文件 {#azure-file}
11611161

11621162
```yaml
11631163
kind: StorageClass
@@ -1225,7 +1225,7 @@ be read by other users.
12251225
<!--
12261226
### Portworx Volume
12271227
-->
1228-
### Portworx 卷
1228+
### Portworx 卷 {#portworx-volume}
12291229

12301230
```yaml
12311231
apiVersion: storage.k8s.io/v1
@@ -1426,7 +1426,7 @@ references it.
14261426
<!--
14271427
### Local
14281428
-->
1429-
### 本地
1429+
### 本地 {#local}
14301430

14311431
{{< feature-state for_k8s_version="v1.14" state="stable" >}}
14321432

0 commit comments

Comments
 (0)