Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
yanrongshi committed Jul 28, 2022
1 parent a0e1236 commit df5f732
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,16 @@ This page explains how Kubernetes objects are represented in the Kubernetes API,
<!--
## Understanding Kubernetes Objects
*Kubernetes Objects* are persistent entities in the Kubernetes system.
Kubernetes uses these entities to represent the state of your cluster.
Specifically, they can describe:
*Kubernetes objects* are persistent entities in the Kubernetes system. Kubernetes uses these
entities to represent the state of your cluster. Specifically, they can describe:
* What containerized applications are running (and on which nodes)
* The resources available to those applications
* The policies around how those applications behave, such as restart policies, upgrades, and fault-tolerance
-->
## 理解 Kubernetes 对象 {#kubernetes-objects}

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

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

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

<!--
The precise format of the object `spec` is different for every Kubernetes object,
and contains nested fields specific to that object.
The [Kubernetes API Reference](https://kubernetes.io/docs/reference/kubernetes-api/)
The precise format of the object `spec` is different for every Kubernetes object, and contains
nested fields specific to that object. The [Kubernetes API Reference](/docs/reference/kubernetes-api/)
can help you find the spec format for all of the objects you can create using Kubernetes.
-->
对每个 Kubernetes 对象而言,其 `spec` 之精确格式都是不同的,包含了特定于该对象的嵌套字段。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This page shows how to assign a memory *request* and a memory *limit* to a
Container. A Container is guaranteed to have as much memory as it requests,
but is not allowed to use more memory than its limit.
-->
此页面展示如何将内存 *请求* (request)和内存 *限制* (limit)分配给一个容器。
此页面展示如何将内存**请求**(request)和内存**限制**(limit)分配给一个容器。
我们保障容器拥有它请求数量的内存,但不允许使用超过限制数量的内存。

## {{% heading "prerequisites" %}}
Expand Down

0 comments on commit df5f732

Please sign in to comment.