Skip to content

Commit 51287ca

Browse files
committed
[zh-cn]sync namespace-v1
Signed-off-by: xin.li <[email protected]>
1 parent ff34ef2 commit 51287ca

2 files changed

Lines changed: 77 additions & 29 deletions

File tree

content/zh-cn/docs/reference/kubernetes-api/cluster-resources/namespace-v1.md

Lines changed: 43 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,27 @@ Namespace 为名字提供作用域。使用多个命名空间是可选的。
4343
<!--
4444
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
4545
-->
46-
标准的对象元数据。更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
46+
47+
标准的对象元数据。更多信息:
48+
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
4749

4850
- **spec** (<a href="{{< ref "../cluster-resources/namespace-v1#NamespaceSpec" >}}">NamespaceSpec</a>)
4951

5052
<!--
5153
Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
5254
-->
53-
spec 定义了 Namespace 的行为。更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
55+
56+
`spec` 定义了 Namespace 的行为。更多信息:
57+
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
5458

5559
- **status** (<a href="{{< ref "../cluster-resources/namespace-v1#NamespaceStatus" >}}">NamespaceStatus</a>)
5660

5761
<!--
5862
Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
5963
-->
60-
status 描述了当前 Namespace 的状态。更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
64+
65+
`status` 描述了当前 Namespace 的状态。更多信息:
66+
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
6167

6268
## NamespaceSpec {#NamespaceSpec}
6369

@@ -74,7 +80,8 @@ NamespaceSpec 用于描述 Namespace 的属性。
7480
Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
7581
-->
7682

77-
finalizers 是一个不透明的值列表,只有此列表为空时才能从存储中永久删除对象。 更多信息: https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/namespaces/
83+
`finalizers` 是一个不透明的值列表,只有此列表为空时才能从存储中永久删除对象。
84+
更多信息: https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/namespaces/
7885

7986
<!--
8087
*Atomic: will be replaced during a merge*
@@ -100,6 +107,7 @@ NamespaceStatus 表示 Namespace 的当前状态信息。
100107
101108
Represents the latest available observations of a namespace's current state.
102109
-->
110+
103111
**补丁策略:基于 `type` 健合并**
104112

105113
**Map:键 `type` 的唯一值将在合并期间保留**
@@ -114,11 +122,13 @@ NamespaceStatus 表示 Namespace 的当前状态信息。
114122
115123
Status of the condition, one of True, False, Unknown.
116124
-->
125+
117126
**NamespaceCondition 包含命名空间状态的详细信息。**
118127

119128
- **conditions.status** (string),必需
120129

121-
状况(condition)的状态,取值为 True、False 或 Unknown 之一。
130+
状况(condition)的状态,取值为 `True``False``Unknown` 之一。
131+
122132
<!--
123133
- **conditions.type** (string), required
124134
@@ -128,6 +138,7 @@ NamespaceStatus 表示 Namespace 的当前状态信息。
128138
129139
Last time the condition transitioned from one status to another.
130140
-->
141+
131142
- **conditions.type** (string), 必需
132143

133144
命名空间控制器状况的类型。
@@ -140,30 +151,42 @@ NamespaceStatus 表示 Namespace 的当前状态信息。
140151
<!--
141152
*Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.*
142153
-->
143-
**Time 是对 time.Time 的封装。Time 支持对 YAML 和 JSON 进行正确封包。为 time 包的许多函数方法提供了封装器。**
154+
155+
**`Time` 是对 `time.Time` 的封装。`Time` 支持对 YAML 和 JSON 进行正确封包。
156+
`time` 包的许多函数方法提供了封装器。**
144157

145158
- **conditions.message** (string)
146159

147160
<!--
148161
Human-readable message indicating details about last transition.
149162
-->
150-
163+
151164
人类可读的消息,指示上次转换的详细信息。
152165

153166
- **conditions.reason** (string)
154167

155168
<!--
156169
Unique, one-word, CamelCase reason for the condition's last transition.
157170
-->
158-
171+
159172
唯一、一个单词、驼峰命名的 Condition 转换原因。
160173

161174
- **phase** (string)
162175

163176
<!--
164177
Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
178+
179+
Possible enum values:
180+
- `"Active"` means the namespace is available for use in the system
181+
- `"Terminating"` means the namespace is undergoing graceful termination
165182
-->
166-
phase 是命名空间的当前生命周期阶段。更多信息: https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/namespaces/
183+
184+
`phase` 是命名空间的当前生命周期阶段。更多信息:
185+
https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/namespaces/
186+
187+
可能的枚举值:
188+
- `"Active"` 表示命名空间在系统中可用
189+
- `"Terminating"` 表示命名空间正在被体面终止
167190

168191
## NamespaceList {#NamespaceList}
169192

@@ -179,10 +202,13 @@ NamespaceList 是一个命名空间列表。
179202
- **kind**: NamespaceList
180203

181204
- **metadata** (<a href="{{< ref "../common-definitions/list-meta#ListMeta" >}}">ListMeta</a>)
205+
182206
<!--
183207
Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
184208
-->
185-
标准的列表元数据。更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
209+
210+
标准的列表元数据。更多信息:
211+
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
186212

187213
<!--
188214
- **items** ([]<a href="{{< ref "../cluster-resources/namespace-v1#Namespace" >}}">Namespace</a>), required
@@ -193,7 +219,9 @@ NamespaceList 是一个命名空间列表。
193219
<!--
194220
Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
195221
-->
196-
items 是列表中的 Namespace 对象列表。更多信息: https://kubernetes.io/zh-cn/docs/concepts/overview/working-with-objects/namespaces/
222+
223+
`items` 是列表中的 Namespace 对象列表。更多信息:
224+
https://kubernetes.io/zh-cn/docs/concepts/overview/working-with-objects/namespaces/
197225

198226
<!--
199227
## Operations {#Operations}
@@ -228,7 +256,7 @@ GET /api/v1/namespaces/{name}
228256
-->
229257
- **name** (**路径参数**):string,必需
230258

231-
Namespace 的名称
259+
Namespace 的名称
232260

233261
- **pretty** (**查询参数**):string
234262

@@ -267,7 +295,7 @@ GET /api/v1/namespaces/{name}/status
267295
-->
268296
- **name** (**路径参数**):string,必需
269297

270-
Namespace 的名称
298+
Namespace 的名称
271299
<!--
272300
- **pretty** (*in query*): string
273301
-->
@@ -361,7 +389,7 @@ GET /api/v1/namespaces
361389
<!--
362390
- **sendInitialEvents** (*in query*): boolean
363391
-->
364-
- **resourceVersionMatch** (**查询参数**): string
392+
- **resourceVersionMatch** (**查询参数**)string
365393

366394
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
367395

@@ -617,7 +645,7 @@ PUT /api/v1/namespaces/{name}/status
617645

618646
Namespace 的名称
619647

620-
- **body**: <a href="{{< ref "../cluster-resources/namespace-v1#Namespace" >}}">Namespace</a>,必需
648+
- **body**: <a href="{{< ref "../cluster-resources/namespace-v1#Namespace" >}}">Namespace</a>,必需
621649

622650
<!--
623651
- **dryRun** (*in query*): string

content/zh-cn/docs/reference/kubernetes-api/config-and-storage-resources/storage-class-v1.md

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ StorageClass 是不受名字空间作用域限制的;按照 etcd 设定的存
6161

6262
- **provisioner** (string),必需
6363

64-
provisioner 表示制备器的类别。
64+
`provisioner` 表示制备器的类别。
6565

6666
- **allowVolumeExpansion** (boolean)
6767

68-
allowVolumeExpansion 显示存储类是否允许卷扩充。
68+
`allowVolumeExpansion` 显示存储类是否允许卷扩充。
6969

7070
<!--
7171
- **allowedTopologies** ([]TopologySelectorTerm)
@@ -81,20 +81,20 @@ StorageClass 是不受名字空间作用域限制的;按照 etcd 设定的存
8181

8282
**原子性:将在合并期间被替换**
8383

84-
allowedTopologies 限制可以动态制备卷的节点拓扑。每个卷插件定义其自己支持的拓扑规约。
84+
`allowedTopologies` 限制可以动态制备卷的节点拓扑。每个卷插件定义其自己支持的拓扑规约。
8585
空的 TopologySelectorTerm 列表意味着没有拓扑限制。
8686
只有启用 VolumeScheduling 功能特性的服务器才能使用此字段。
8787

8888
<a name="TopologySelectorTerm"></a>
8989
**拓扑选择器条件表示标签查询的结果。
90-
一个 null 或空的拓扑选择器条件不会匹配任何对象。各个条件的要求按逻辑与的关系来计算。
91-
此选择器作为 NodeSelectorTerm 所提供功能的子集。这是一个 Alpha 特性,将来可能会变更。**
90+
一个 `null` 或空的拓扑选择器条件不会匹配任何对象。各个条件的要求按逻辑与的关系来计算。
91+
此选择器作为 `NodeSelectorTerm` 所提供功能的子集。这是一个 Alpha 特性,将来可能会变更。**
9292

9393
<!--
9494
- **allowedTopologies.matchLabelExpressions** ([]TopologySelectorLabelRequirement)
9595
9696
*Atomic: will be replaced during a merge*
97-
97+
9898
A list of topology selector requirements by labels.
9999
100100
<a name="TopologySelectorLabelRequirement"></a>
@@ -136,7 +136,7 @@ StorageClass 是不受名字空间作用域限制的;按照 etcd 设定的存
136136
- **mountOptions** ([]string)
137137
138138
*Atomic: will be replaced during a merge*
139-
139+
140140
mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid.
141141
142142
- **parameters** (map[string]string)
@@ -152,27 +152,47 @@ StorageClass 是不受名字空间作用域限制的;按照 etcd 设定的存
152152

153153
- **parameters** (map[string]string)
154154

155-
parameters 包含应创建此存储类卷的制备器的参数。
155+
`parameters` 包含应创建此存储类卷的制备器的参数。
156156

157157
<!--
158158
- **reclaimPolicy** (string)
159159
160160
reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.
161161
162-
- **volumeBindingMode** (string)
163-
164-
volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.
162+
Possible enum values:
163+
- `"Delete"` means the volume will be deleted from Kubernetes on release from its claim. The volume plugin must support Deletion.
164+
- `"Recycle"` means the volume will be recycled back into the pool of unbound persistent volumes on release from its claim. The volume plugin must support Recycling.
165+
- `"Retain"` means the volume will be left in its current phase (Released) for manual reclamation by the administrator. The default policy is Retain.
165166
-->
166167
- **reclaimPolicy** (string)
167168

168-
reclaimPolicy 控制此存储类动态制备的 PersistentVolume 的 reclaimPolicy。默认为 Delete。
169+
`reclaimPolicy` 控制此存储类动态制备的 PersistentVolume 的 `reclaimPolicy`。默认为 Delete。
170+
171+
可能的枚举值:
172+
- `"Delete"` 表示当卷被从其申领中释放时,将被从 Kubernetes 中删除。卷插件必须支持删除。
173+
- `"Recycle"` 表示当卷被从其申领中释放时,将被回收回到未绑定的持久卷池中。卷插件必须支持回收。
174+
- `"Retain"` 表示卷将在其当前阶段(已释放)中保留,以供管理员手动回收。默认策略是 `"Retain"`
175+
176+
<!--
177+
- **volumeBindingMode** (string)
169178
179+
volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.
180+
181+
Possible enum values:
182+
- `"Immediate"` indicates that PersistentVolumeClaims should be immediately provisioned and bound. This is the default mode.
183+
- `"WaitForFirstConsumer"` indicates that PersistentVolumeClaims should not be provisioned and bound until the first Pod is created that references the PeristentVolumeClaim. The volume provisioning and binding will occur during Pod scheduing.
184+
-->
170185
- **volumeBindingMode** (string)
171186

172-
volumeBindingMode 指示应该如何制备和绑定 PersistentVolumeClaim。
187+
`volumeBindingMode` 指示应该如何制备和绑定 PersistentVolumeClaim。
173188
未设置时,将使用 VolumeBindingImmediate。
174189
只有启用 VolumeScheduling 功能特性的服务器才能使用此字段。
175190

191+
可能的枚举值:
192+
- `"Immediate"` 表示应立即制备并绑定持久卷申领。这是默认模式。
193+
- `"WaitForFirstConsumer"` 表示直到引用了持久卷申领的第一个 Pod 被创建之前,
194+
不应制备或绑定持久卷申领。卷的制备和绑定将在 Pod 调度期间发生。
195+
176196
## StorageClassList {#StorageClassList}
177197

178198
<!--
@@ -202,7 +222,7 @@ StorageClassList 是存储类的集合。
202222

203223
- **items** ([]<a href="{{< ref "../config-and-storage-resources/storage-class-v1#StorageClass" >}}">StorageClass</a>),必需
204224

205-
items 是 StorageClass 的列表。
225+
`items` 是 StorageClass 的列表。
206226

207227
<!--
208228
## Operations {#Operations}

0 commit comments

Comments
 (0)