Skip to content

Commit dc3e785

Browse files
authored
Merge pull request #36389 from my-git9/custom-resources5
[zh-cn]sync custom-resources.md
2 parents 1bd5e48 + 54992c4 commit dc3e785

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

content/zh-cn/docs/concepts/extend-kubernetes/api-extension/custom-resources.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ many core Kubernetes functions are now built using custom resources, making Kube
5050
Custom resources can appear and disappear in a running cluster through dynamic registration,
5151
and cluster admins can update custom resources independently of the cluster itself.
5252
Once a custom resource is installed, users can create and access its objects using
53-
[kubectl](/docs/reference/kubectl/), just as they do for built-in resources like
54-
*Pods*.
53+
{{< glossary_tooltip text="kubectl" term_id="kubectl" >}}, just as they do for built-in resources
54+
like *Pods*.
5555
-->
5656
**定制资源(Custom Resource)** 是对 Kubernetes API 的扩展,不一定在默认的
5757
Kubernetes 安装中就可用。
5858
定制资源所代表的是对特定 Kubernetes 安装的一种定制。
5959
不过,很多 Kubernetes 核心功能现在都用定制资源来实现,这使得 Kubernetes 更加模块化。
6060

6161
定制资源可以通过动态注册的方式在运行中的集群内或出现或消失,集群管理员可以独立于集群更新定制资源。
62-
一旦某定制资源被安装,用户可以使用 [kubectl](/zh-cn/docs/reference/kubectl/) 来创建和访问其中的对象,
62+
一旦某定制资源被安装,用户可以使用 {{< glossary_tooltip text="kubectl" term_id="kubectl" >}} 来创建和访问其中的对象,
6363
就像他们为 **Pod** 这种内置资源所做的一样。
6464

6565
<!--
@@ -100,7 +100,7 @@ for specific applications into an extension of the Kubernetes API.
100100
你可以使用定制控制器来将特定于某应用的领域知识组织起来,以编码的形式构造对 Kubernetes API 的扩展。
101101

102102
<!--
103-
## Should I add a custom resource to my Kubernetes Cluster?
103+
## Should I add a custom resource to my Kubernetes cluster?
104104
105105
When creating a new API, consider whether to
106106
[aggregate your API with the Kubernetes cluster APIs](/docs/concepts/extend-kubernetes/api-extension/apiserver-aggregation/)
@@ -185,13 +185,13 @@ Signs that your API might not be declarative include:
185185
- 你决定使用操作 ID 或者操作对象来表现悬决的操作。
186186

187187
<!--
188-
## Should I use a configMap or a custom resource?
188+
## Should I use a ConfigMap or a custom resource?
189189
190190
Use a ConfigMap if any of the following apply:
191191
192-
* There is an existing, well-documented config file format, such as a `mysql.cnf` or `pom.xml`.
193-
* You want to put the entire config file into one key of a configMap.
194-
* The main use of the config file is for a program running in a Pod on your cluster to consume the file to configure itself.
192+
* There is an existing, well-documented configuration file format, such as a `mysql.cnf` or `pom.xml`.
193+
* You want to put the entire configuration file into one key of a configMap.
194+
* The main use of the configuration file is for a program running in a Pod on your cluster to consume the file to configure itself.
195195
* Consumers of the file prefer to consume via file in a Pod or environment variable in a pod, rather than the Kubernetes API.
196196
* You want to perform rolling updates via Deployment, etc., when the file is updated.
197197
-->
@@ -207,10 +207,10 @@ Use a ConfigMap if any of the following apply:
207207
* 你希望当文件被更新时通过类似 Deployment 之类的资源完成滚动更新操作。
208208

209209
<!--
210-
Use a [secret](/docs/concepts/configuration/secret/) for sensitive data, which is similar to a configMap but more secure.
210+
Use a {{< glossary_tooltip text="Secret" term_id="secret" >}} for sensitive data, which is similar to a configMap but more secure.
211211
-->
212212
{{< note >}}
213-
请使用 [Secret](/zh-cn/docs/concepts/configuration/secret/) 来保存敏感数据。
213+
请使用 {{< glossary_tooltip text="Secret" term_id="secret" >}} 来保存敏感数据。
214214
Secret 类似于 configMap,但更为安全。
215215
{{< /note >}}
216216

@@ -525,7 +525,7 @@ Kubernetes [client libraries](/docs/reference/using-api/client-libraries/) can b
525525
When you add a custom resource, you can access it using:
526526
527527
- `kubectl`
528-
- The kubernetes dynamic client.
528+
- The Kubernetes dynamic client.
529529
- A REST client that you write.
530530
- A client generated using [Kubernetes client generation tools](https://github.com/kubernetes/code-generator) (generating one is an advanced undertaking, but some projects may provide a client along with the CRD or AA).
531531
-->

0 commit comments

Comments
 (0)