Skip to content

Commit 71cbd66

Browse files
authored
Merge pull request #35800 from mengjiao-liu/fix-namespace-render-zh
[zh-ch] Fix markdown format render error in namespaces page
2 parents cf3ce67 + e352357 commit 71cbd66

File tree

1 file changed

+10
-10
lines changed
  • content/zh-cn/docs/concepts/overview/working-with-objects

1 file changed

+10
-10
lines changed

content/zh-cn/docs/concepts/overview/working-with-objects/namespaces.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ weight: 30
1818
<!--
1919
In Kubernetes, _namespaces_ provides a mechanism for isolating groups of resources within a single cluster. Names of resources need to be unique within a namespace, but not across namespaces. Namespace-based scoping is applicable only for namespaced objects _(e.g. Deployments, Services, etc)_ and not for cluster-wide objects _(e.g. StorageClass, Nodes, PersistentVolumes, etc)_.
2020
-->
21-
在 Kubernetes 中,**名字空间(Namespace)**提供一种机制,将同一集群中的资源划分为相互隔离的组。
21+
在 Kubernetes 中,**名字空间(Namespace)** 提供一种机制,将同一集群中的资源划分为相互隔离的组。
2222
同一名字空间内的资源名称要唯一,但跨名字空间时没有这个要求。
2323
名字空间作用域仅针对带有名字空间的对象,例如 Deployment、Service 等,
2424
这种作用域对集群访问的对象不适用,例如 StorageClass、Node、PersistentVolume 等。
@@ -193,8 +193,8 @@ be redirected to those services, taking precedence over public DNS.
193193
-->
194194
通过创建与[公共顶级域名](https://data.iana.org/TLD/tlds-alpha-by-domain.txt)
195195
同名的名字空间,这些名字空间中的服务可以拥有与公共 DNS 记录重叠的、较短的 DNS 名称。
196-
所有名字空间中的负载在执行 DNS 查找时,如果查找的名称没有
197-
[尾部句点](https://datatracker.ietf.org/doc/html/rfc1034#page-8)
196+
所有名字空间中的负载在执行 DNS 查找时,
197+
如果查找的名称没有[尾部句点](https://datatracker.ietf.org/doc/html/rfc1034#page-8)
198198
就会被重定向到这些服务上,因此呈现出比公共 DNS 更高的优先序。
199199

200200
<!--
@@ -206,8 +206,8 @@ to block creating any namespace with the name of [public
206206
TLDs](https://data.iana.org/TLD/tlds-alpha-by-domain.txt).
207207
-->
208208
为了缓解这类问题,需要将创建名字空间的权限授予可信的用户。
209-
如果需要,你可以额外部署第三方的安全控制机制,例如以
210-
[准入 Webhook](/zh-cn/docs/reference/access-authn-authz/extensible-admission-controllers/)
209+
如果需要,你可以额外部署第三方的安全控制机制,
210+
例如以[准入 Webhook](/zh-cn/docs/reference/access-authn-authz/extensible-admission-controllers/)
211211
的形式,阻止用户创建与公共 [TLD](https://data.iana.org/TLD/tlds-alpha-by-domain.txt)
212212
同名的名字空间。
213213
{{< /warning >}}
@@ -225,8 +225,8 @@ And low-level resources, such as
225225
persistentVolumes, are not in any namespace.
226226
-->
227227
大多数 kubernetes 资源(例如 Pod、Service、副本控制器等)都位于某些名字空间中。
228-
但是名字空间资源本身并不在名字空间中。而且底层资源,例如
229-
[节点](/zh-cn/docs/concepts/architecture/nodes/)和持久化卷不属于任何名字空间。
228+
但是名字空间资源本身并不在名字空间中。而且底层资源,
229+
例如[节点](/zh-cn/docs/concepts/architecture/nodes/)和持久化卷不属于任何名字空间。
230230

231231
<!--
232232
To see which Kubernetes resources are and aren't in a namespace:
@@ -256,9 +256,9 @@ The value of the label is the namespace name.
256256
-->
257257
Kubernetes 控制面会为所有名字空间设置一个不可变更的
258258
{{< glossary_tooltip text="标签" term_id="label" >}}
259-
`kubernetes.io/metadata.name`,只要 `NamespaceDefaultLabelName` 这一
260-
[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)
261-
被启用。标签的值是名字空间的名称。
259+
`kubernetes.io/metadata.name`,只要 `NamespaceDefaultLabelName`
260+
这一[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)被启用。
261+
标签的值是名字空间的名称。
262262

263263
## {{% heading "whatsnext" %}}
264264

0 commit comments

Comments
 (0)