Skip to content

Commit 15658a4

Browse files
authored
Merge pull request #52025 from my-git9/npa-24953
[zh-cn]sync event limitrange resource-quota group-version-resource spec
2 parents 0523e02 + 02c9e41 commit 15658a4

File tree

5 files changed

+60
-42
lines changed

5 files changed

+60
-42
lines changed

content/zh-cn/docs/reference/glossary/event.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ id: event
44
date: 2022-01-16
55
full_link: /zh-cn/docs/reference/kubernetes-api/cluster-resources/event-v1/
66
short_description: >
7-
事件(Event)是描述系统中某些状态变化的 Kubernetes 对象。
7+
描述集群中某些状态变化的 Kubernetes 对象。
88
aka:
99
tags:
1010
- core-object
@@ -16,24 +16,25 @@ id: event
1616
date: 2022-01-16
1717
full_link: /docs/reference/kubernetes-api/cluster-resources/event-v1/
1818
short_description: >
19-
Events are Kubernetes objects that describe some state change in the system.
19+
Kubernetes objects that describe some state change in the cluster.
2020
aka:
2121
tags:
2222
- core-object
2323
- fundamental
2424
-->
2525

2626
<!--
27-
Event is a Kubernetes object that describes state change/notable occurrences in the system.
27+
A Kubernetes {{< glossary_tooltip text="object" term_id="object" >}} that describes state changes
28+
or notable occurrences in the cluster.
2829
-->
29-
事件(Event)是描述系统状态变化以及需要注意的事情的 Kubernetes 对象。
30-
30+
一个 Kubernetes {{< glossary_tooltip text="对象" term_id="object" >}},
31+
描述集群中的状态状态变化或需要注意的事件。
3132
<!--more-->
3233

3334
<!--
34-
Events have a limited retention time and triggers and messages may evolve with time.
35-
Event consumers should not rely on the timing of an event with a given reason reflecting a consistent underlying trigger,
36-
or the continued existence of events with that reason.
35+
Events have a limited retention time and triggers and messages may evolve with time.
36+
Event consumers should not rely on the timing of an event with a given reason reflecting a consistent underlying trigger,
37+
or the continued existence of events with that reason.
3738
-->
3839
事件的保留时间有限,随着时间推进,其触发方式和消息都可能发生变化。
3940
事件用户不应该对带有给定原因(反映下层触发源)的时间特征有任何依赖,

content/zh-cn/docs/reference/glossary/group-version-resource.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,42 @@ id: gvr
44
date: 2023-07-24
55
short_description: >
66
Kubernetes API 的 API 组、API 版本和名称。
7-
87
aka: ["GVR"]
98
tags:
109
- architecture
1110
---
12-
1311
<!--
1412
title: Group Version Resource
1513
id: gvr
1614
date: 2023-07-24
1715
short_description: >
18-
The API group, API version and name of a Kubernetes API.
16+
The API group, API version and name of a Kubernetes API.
1917
2018
aka: ["GVR"]
2119
tags:
2220
- architecture
2321
-->
2422

2523
<!--
26-
Means of representing unique Kubernetes API resource.
24+
Means of representing specific Kubernetes APIs uniquely.
2725
-->
28-
表示唯一的 Kubernetes API 资源的方法
26+
表示特定的 Kubernetes API 的唯一方法
2927

3028
<!--more-->
3129

3230
<!--
33-
Group Version Resources (GVRs) specify the API group, API version, and resource (name for the object kind as it appears in the URI) associated with accessing a particular id of object in Kubernetes.
31+
Group Version Resources (GVRs) specify the API group, API version, and _resource_
32+
(name for the object kind as it appears in the URI) associated with accessing a particular id of object in Kubernetes.
3433
GVRs let you define and distinguish different Kubernetes objects, and to specify a way of accessing
3534
objects that is stable even as APIs change.
3635
-->
37-
组版本资源(Group Version Resource, GVR)指定了与访问 Kubernetes 中对象的特定 id 相关联的 API 组、API
38-
版本和资源(URI 中显示的对象类别的名称)。GVR 允许你定义和区分不同的 Kubernetes 对象,
36+
组版本资源(Group Version ResourceGVR)指定了与访问 Kubernetes 中对象的特定 id 相关联的 API 组、API
37+
版本和**资源**(URI 中显示的对象类别的名称)。GVR 允许你定义和区分不同的 Kubernetes 对象,
3938
并指定了一种访问对象的方式,即使在 API 发生变化时这也是一种稳定的访问方式。
4039

40+
<!--
41+
In this usage, _resource_ refers to an HTTP resource. Because some APIs are namespaced, a GVR may
42+
not refer to a specific {{< glossary_tooltip text="API resource" term_id="api-resource" >}}.
43+
-->
44+
在本用法中,**资源**指的是 HTTP 资源。因为某些 API 是命名空间化的,因此
45+
GVR 可能不会引用特定的

content/zh-cn/docs/reference/glossary/limitrange.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
title: LimitRange
33
id: limitrange
44
date: 2019-04-15
5-
full_link: /docs/concepts/policy/limit-range/
5+
full_link: /zh-cn/docs/concepts/policy/limit-range/
66
short_description: >
77
提供约束来限制命名空间中每个容器或 Pod 的资源消耗。
8-
98
aka:
109
tags:
1110
- core-object
@@ -14,11 +13,8 @@ tags:
1413
related:
1514
- pod
1615
- container
17-
1816
---
19-
2017
<!--
21-
---
2218
title: LimitRange
2319
id: limitrange
2420
date: 2019-04-15
@@ -34,18 +30,27 @@ tags:
3430
related:
3531
- pod
3632
- container
37-
38-
---
3933
-->
4034

4135
<!--
42-
Provides constraints to limit resource consumption per {{< glossary_tooltip text="Containers" term_id="container" >}} or {{< glossary_tooltip text="Pods" term_id="pod" >}} in a namespace.
36+
Constraints resource consumption per {{< glossary_tooltip text="container" term_id="container" >}}
37+
or {{< glossary_tooltip text="Pod" term_id="pod" >}},
38+
specified for a particular {{< glossary_tooltip text="namespace" term_id="namespace" >}}.
4339
-->
44-
提供约束来限制命名空间中每个 {{< glossary_tooltip text="容器(Containers)" term_id="container" >}} 或 {{< glossary_tooltip text="Pod" term_id="pod" >}} 的资源消耗。
40+
指定特定 {{< glossary_tooltip text="命名空间(Namespace)" term_id="namespace" >}}
41+
中每个 {{< glossary_tooltip text="容器(Containers)" term_id="container" >}}
42+
或 {{< glossary_tooltip text="Pod" term_id="pod" >}} 的资源消耗限制。
4543

4644
<!--more-->
45+
4746
<!--
48-
LimitRange limits the quantity of objects that can be created by type,
49-
as well as the amount of compute resources that may be requested/consumed by individual {{< glossary_tooltip text="Containers" term_id="container" >}} or {{< glossary_tooltip text="Pods" term_id="pod" >}} in a namespace.
47+
A [LimitRange](/docs/concepts/policy/limit-range/) either limits the quantity of
48+
{{< glossary_tooltip text="API resources" term_id="api-resource" >}}
49+
that can be created (for a particular resource type),
50+
or the amount of {{< glossary_tooltip text="infrastructure resources" term_id="infrastructure-resource" >}}
51+
that may be requested/consumed by individual containers or Pods within a namespace.
5052
-->
51-
LimitRange 按照类型来限制命名空间中对象能够创建的数量,以及单个 {{< glossary_tooltip text="容器(Containers)" term_id="container" >}} 或 {{< glossary_tooltip text="Pod" term_id="pod" >}} 可以请求/使用的计算资源量。
53+
[LimitRange](/zh-cn/docs/concepts/policy/limit-range/) 用来限制可以创建的
54+
{{< glossary_tooltip text="API 资源" term_id="api-resource" >}}的数量(针对特定资源类型),
55+
或者限制命名空间内单个容器或 Pod 可请求/消耗的
56+
{{< glossary_tooltip text="基础设施资源" term_id="infrastructure-resource" >}}的量。
Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
---
2-
title: 资源配额(Resource Quotas
2+
title: 资源配额(ResourceQuota
33
id: resource-quota
44
date: 2018-04-12
55
full_link: /zh-cn/docs/concepts/policy/resource-quotas/
66
short_description: >
77
资源配额提供了限制每个命名空间的资源消耗总和的约束。
8-
98
aka:
109
tags:
1110
- fundamental
1211
- operation
1312
- architecture
1413
---
1514
<!--
16-
title: Resource Quotas
15+
title: ResourceQuota
1716
id: resource-quota
1817
date: 2018-04-12
1918
full_link: /docs/concepts/policy/resource-quotas/
@@ -28,13 +27,20 @@ tags:
2827
-->
2928

3029
<!--
31-
Provides constraints that limit aggregate resource consumption per {{< glossary_tooltip term_id="namespace" >}}.
30+
Object that constrains aggregate resource
31+
consumption, per {{< glossary_tooltip term_id="namespace" >}}.
3232
-->
33-
资源配额提供了限制每个 {{< glossary_tooltip text="命名空间" term_id="namespace">}} 的资源消耗总和的约束
33+
用于限制每个{{< glossary_tooltip text="命名空间" term_id="namespace" >}}的资源消耗总和的对象
3434

35-
<!--more-->
35+
<!--more-->
3636

3737
<!--
38-
Limits the quantity of objects that can be created in a namespace by type, as well as the total amount of compute resources that may be consumed by resources in that project.
38+
A ResourceQuota can either limits the quantity of {{< glossary_tooltip text="API resources" term_id="api-resource" >}}
39+
that can be created in a namespace by type, or it can set a limit on the total amount of
40+
{{< glossary_tooltip text="infrastructure resources" term_id="infrastructure-resource" >}}
41+
that may be consumed on behalf of the namespace (and the objects within it).
3942
-->
40-
限制了命名空间中每种对象可以创建的数量,也限制了项目中可被资源对象利用的计算资源总数。
43+
资源配额可以限制命名空间中按类型创建的
44+
{{< glossary_tooltip text="API 资源" term_id="api-resource" >}}的数量,
45+
或者它可以设置代表命名空间(及其内部的对象)可消耗的
46+
{{< glossary_tooltip text="基础设施资源" term_id="infrastructure-resource" >}}总量的限制。

content/zh-cn/docs/reference/glossary/spec.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ id: spec
44
date: 2023-12-17
55
full_link: /zh-cn/docs/concepts/overview/working-with-objects/#object-spec-and-status
66
short_description: >
7-
在 Kubernetes 清单中的此字段用来定义特定 Kubernetes 对象的预期状态或预期配置
7+
在 Kubernetes 清单中的此字段用来定义预期状态或预期配置
88
99
aka:
1010
tags:
@@ -17,7 +17,7 @@ id: spec
1717
date: 2023-12-17
1818
full_link: /docs/concepts/overview/working-with-objects/#object-spec-and-status
1919
short_description: >
20-
This field in Kubernetes manifests defines the desired state or configuration for specific Kubernetes objects.
20+
Field in Kubernetes manifests that defines the desired state or configuration.
2121
2222
aka:
2323
tags:
@@ -33,15 +33,16 @@ Defines how each object, like Pods or Services, should be configured and its des
3333
<!--more-->
3434

3535
<!--
36-
Almost every Kubernetes object includes two nested object fields that govern the object's configuration: the object spec and the object status. For objects that have a spec, you have to set this when you create the object, providing a description of the characteristics you want the resource to have: its desired state.
36+
Almost every Kubernetes object includes two nested object fields that govern the object's configuration: the object spec and the object status. For objects that have a spec, you have to set this when you create the object, providing a description of the characteristics you want the {{< glossary_tooltip text="resource" term_id="api-resource" >}} to have: its desired state.
3737
-->
3838
几乎每个 Kubernetes 对象都包含两个嵌套的对象字段,用于治理对象本身的配置:
3939
对象规约(spec)和对象状态(status)。
40-
对于具有规约的对象,你必须在创建对象时设置规约,并提供资源所需特征的描述:即其预期状态。
40+
对于具有规约的对象,你必须在创建对象时设置规约,并提供{{< glossary_tooltip text="资源" term_id="api-resource" >}}所需特征的描述:
41+
即其预期状态。
4142

4243
<!--
43-
It varies for different objects like Pods, StatefulSets, and Services, detailing settings such as containers, volumes, replicas, ports,
44-
and other specifications unique to each object type. This field encapsulates what state Kubernetes should maintain for the defined
44+
It varies for different objects like Pods, StatefulSets, and Services, detailing settings such as containers, volumes, replicas, ports,
45+
and other specifications unique to each object type. This field encapsulates what state Kubernetes should maintain for the defined
4546
object.
4647
-->
4748
此字段对于 Pod、StatefulSet 和 Service 等不同对象会有所差异,

0 commit comments

Comments
 (0)