Skip to content

Commit 6f3b276

Browse files
authored
Merge pull request #39252 from windsonsea/downapi
[zh] sync downward-api.md
2 parents 4e761ce + f097433 commit 6f3b276

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

content/zh-cn/docs/concepts/workloads/pods/downward-api.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@ via either mechanism are:
125125
`metadata.labels['<KEY>']`
126126
: Pod 的{{< glossary_tooltip text="标签" term_id="label" >}} `<KEY>` 的值(例如:`metadata.labels['mylabel']`
127127

128+
<!--
129+
The following information is available through environment variables
130+
**but not as a downwardAPI volume fieldRef**:
131+
-->
132+
以下信息可以通过环境变量获得,但**不能作为 `downwardAPI``fieldRef`** 获得:
133+
128134
<!--
129135
`spec.serviceAccountName`
130136
: the name of the pod's {{< glossary_tooltip text="service account" term_id="service-account" >}}
@@ -154,10 +160,10 @@ via either mechanism are:
154160
: Pod 的主 IP 地址(通常是其 IPv4 地址)
155161

156162
<!--
157-
In addition, the following information is available through
158-
a `downwardAPI` volume `fieldRef`, but **not as environment variables**:
163+
The following information is available through a `downwardAPI` volume
164+
`fieldRef`, **but not as environment variables**:
159165
-->
160-
此外,以下信息可以通过 `downwardAPI``fieldRef` 获得,但**不能作为环境变量**获得:
166+
以下信息可以通过 `downwardAPI``fieldRef` 获得,但**不能作为环境变量**获得:
161167

162168
<!--
163169
`metadata.labels`

0 commit comments

Comments
 (0)