Skip to content

Commit aa4854c

Browse files
authored
Merge pull request #41547 from asa3311/sync-zh-6
[zh-cn] sync kubelet object environment-variable-expose-pod-information
2 parents ca2979b + dc16319 commit aa4854c

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

content/zh-cn/docs/reference/command-line-tools-reference/kubelet.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,10 +356,9 @@ kubelet 将从此标志所指的文件中加载其初始配置。此路径可以
356356
<tr>
357357
<td></td><td style="line-height: 130%; word-wrap: break-word;">
358358
<!--
359-
&lt;Warning: Beta feature&gt; Set the maximum number of container log files that can be present for a container. The number must be &gt;= 2. This flag can only be used with <code>--container-runtime=remote</code>. (DEPRECATED: This parameter should be set via the config file specified by the Kubelet's <code>--config</code> flag. See <a href="https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> for more information.)
359+
&lt;Warning: Beta feature&gt; Set the maximum number of container log files that can be present for a container. The number must be &gt;= 2. (DEPRECATED: This parameter should be set via the config file specified by the Kubelet's <code>--config</code> flag. See <a href="https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> for more information.)
360360
-->
361361
【警告:Beta 特性】设置容器的日志文件个数上限。此值必须大于等于 2。
362-
此标志只能与 <code>--container-runtime=remote</code> 标志一起使用。
363362
(已弃用:应在 <code>--config</code> 所给的配置文件中进行设置。
364363
请参阅 <a href="https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> 了解更多信息。)
365364
</td>
@@ -371,10 +370,9 @@ kubelet 将从此标志所指的文件中加载其初始配置。此路径可以
371370
<tr>
372371
<td></td><td style="line-height: 130%; word-wrap: break-word;">
373372
<!--
374-
&lt;Warning: Beta feature&gt; Set the maximum size (e.g. <code>10Mi</code>) of container log file before it is rotated. This flag can only be used with <code>--container-runtime=remote</code>. (DEPRECATED: This parameter should be set via the config file specified by the Kubelet's <code>--config</code> flag. See <a href="https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> for more information.)
373+
&lt;Warning: Beta feature&gt; Set the maximum size (e.g. <code>10Mi</code>) of container log file before it is rotated. (DEPRECATED: This parameter should be set via the config file specified by the Kubelet's <code>--config</code> flag. See <a href="https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> for more information.)
375374
-->
376375
【警告:Beta 特性】设置容器日志文件在轮换生成新文件时之前的最大值(例如,<code>10Mi</code>)。
377-
此标志只能与 <code>--container-runtime=remote</code> 标志一起使用。
378376
(已弃用:应在 <code>--config</code> 所给的配置文件中进行设置。
379377
请参阅 <a href="https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> 了解更多信息。)
380378
</td>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: 对象(Object)
33
id: object
44
date: 2020-10-12
5-
full_link: /zh-cn/docs/concepts/overview/working-with-objects/kubernetes-objects/#kubernetes-objects
5+
full_link: /zh-cn/docs/concepts/overview/working-with-objects/#kubernetes-objects
66
short_description: >
77
Kubernetes 系统中的实体,代表了集群的部分状态。
88
aka:
@@ -13,7 +13,7 @@ tags:
1313
title: Object
1414
id: object
1515
date: 2020-10-12
16-
full_link: https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/#kubernetes-objects
16+
full_link: /docs/concepts/overview/working-with-objects/#kubernetes-objects
1717
short_description: >
1818
A entity in the Kubernetes system, representing part of the state of your cluster.
1919
aka:

content/zh-cn/docs/tasks/inject-data-application/environment-variable-expose-pod-information.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ In Kubernetes, there are two ways to expose Pod and container fields to a runnin
2626
2727
Together, these two ways of exposing Pod and container fields are called the
2828
downward API.
29+
30+
As Services are the primary mode of communication between containerized applications managed by Kubernetes,
31+
it is helpful to be able to discover them at runtime.
32+
33+
Read more about accessing Services [here](/docs/tutorials/services/connect-applications-service/#accessing-the-service).
2934
-->
3035
在 Kubernetes 中有两种方式可以将 Pod 和容器字段呈现给运行中的容器:
3136

@@ -34,6 +39,11 @@ downward API.
3439

3540
这两种呈现 Pod 和容器字段的方式统称为 downward API。
3641

42+
Service 是 Kubernetes 管理的容器化应用之间的主要通信模式,因此在运行时能发现这些 Service 是很有帮助的。
43+
44+
[这里](/zh-cn/docs/tutorials/services/connect-applications-service/#accessing-the-service)
45+
阅读更多关于访问 Service 的信息。
46+
3747
## {{% heading "prerequisites" %}}
3848

3949
{{< include "task-tutorial-prereqs.md" >}}

0 commit comments

Comments
 (0)