Skip to content

Commit df5f732

Browse files
committed
sync
1 parent a0e1236 commit df5f732

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

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

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,16 @@ This page explains how Kubernetes objects are represented in the Kubernetes API,
2727
<!--
2828
## Understanding Kubernetes Objects
2929
30-
*Kubernetes Objects* are persistent entities in the Kubernetes system.
31-
Kubernetes uses these entities to represent the state of your cluster.
32-
33-
Specifically, they can describe:
30+
*Kubernetes objects* are persistent entities in the Kubernetes system. Kubernetes uses these
31+
entities to represent the state of your cluster. Specifically, they can describe:
3432
3533
* What containerized applications are running (and on which nodes)
3634
* The resources available to those applications
3735
* The policies around how those applications behave, such as restart policies, upgrades, and fault-tolerance
3836
-->
3937
## 理解 Kubernetes 对象 {#kubernetes-objects}
4038

41-
在 Kubernetes 系统中,*Kubernetes 对象* 是持久化的实体。
39+
在 Kubernetes 系统中,**Kubernetes 对象**是持久化的实体。
4240
Kubernetes 使用这些实体去表示整个集群的状态。
4341
比較特别地是,它们描述了如下信息:
4442

@@ -83,7 +81,7 @@ its _desired state_.
8381
几乎每个 Kubernetes 对象包含两个嵌套的对象字段,它们负责管理对象的配置:
8482
对象 **`spec`(规约)** 和 对象 **`status`(状态)**
8583
对于具有 `spec` 的对象,你必须在创建对象时设置其内容,描述你希望对象所具有的特征:
86-
*期望状态(Desired State)*
84+
**期望状态(Desired State)**
8785

8886
<!--
8987
The `status` describes the _current state_ of the object, supplied and updated
@@ -124,11 +122,13 @@ For more information on the object spec, status, and metadata, see the
124122
<!--
125123
### Describing a Kubernetes Object
126124
127-
When you create an object in Kubernetes, you must provide the object spec that describes its desired state,
128-
as well as some basic information about the object (such as a name).
129-
When you use the Kubernetes API to create the object (either directly or via `kubectl`),
130-
that API request must include that information as JSON in the request body.
131-
**Most often, you provide the information to `kubectl` in a .yaml file.** `kubectl` converts the information to JSON when making the API request.
125+
When you create an object in Kubernetes, you must provide the object spec that describes its
126+
desired state, as well as some basic information about the object (such as a name). When you use
127+
the Kubernetes API to create the object (either directly or via `kubectl`), that API request must
128+
include that information as JSON in the request body. **Most often, you provide the information to
129+
`kubectl` in a .yaml file.** `kubectl` converts the information to JSON when making the API
130+
request.
131+
132132
133133
Here's an example `.yaml` file that shows the required fields and object spec for a Kubernetes Deployment:
134134
-->
@@ -187,9 +187,8 @@ In the `.yaml` file for the Kubernetes object you want to create, you'll need to
187187
* `spec` - 你所期望的该对象的状态
188188

189189
<!--
190-
The precise format of the object `spec` is different for every Kubernetes object,
191-
and contains nested fields specific to that object.
192-
The [Kubernetes API Reference](https://kubernetes.io/docs/reference/kubernetes-api/)
190+
The precise format of the object `spec` is different for every Kubernetes object, and contains
191+
nested fields specific to that object. The [Kubernetes API Reference](/docs/reference/kubernetes-api/)
193192
can help you find the spec format for all of the objects you can create using Kubernetes.
194193
-->
195194
对每个 Kubernetes 对象而言,其 `spec` 之精确格式都是不同的,包含了特定于该对象的嵌套字段。

content/zh-cn/docs/tasks/configure-pod-container/assign-memory-resource.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This page shows how to assign a memory *request* and a memory *limit* to a
1717
Container. A Container is guaranteed to have as much memory as it requests,
1818
but is not allowed to use more memory than its limit.
1919
-->
20-
此页面展示如何将内存 *请求* (request)和内存 *限制* (limit)分配给一个容器。
20+
此页面展示如何将内存**请求**(request)和内存**限制**(limit)分配给一个容器。
2121
我们保障容器拥有它请求数量的内存,但不允许使用超过限制数量的内存。
2222

2323
## {{% heading "prerequisites" %}}

0 commit comments

Comments
 (0)