Skip to content

Commit 86737ae

Browse files
committed
[zh-cn]sync kubectl node-status
Signed-off-by: xin.li <[email protected]>
1 parent f59367c commit 86737ae

2 files changed

Lines changed: 64 additions & 41 deletions

File tree

content/zh-cn/docs/reference/kubectl/kubectl.md

Lines changed: 28 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ kubectl [flags]
2727

2828
## {{% heading "options" %}}
2929

30-
<table style="width: 100%; table-layout: fixed;">
30+
<table style="width: 100%; table-layout: fixed;">
3131
<colgroup>
3232
<col span="1" style="width: 10px;" />
3333
<col span="1" />
@@ -41,7 +41,7 @@ kubectl [flags]
4141
<!--
4242
If true, adds the file directory to the header of the log messages
4343
-->
44-
设置为 true 表示添加文件目录到日志信息头中
44+
设置为 true 表示添加文件目录到日志信息头中
4545
</td>
4646
</tr>
4747
<tr>
@@ -52,7 +52,7 @@ kubectl [flags]
5252
<!--
5353
log to standard error as well as files
5454
-->
55-
表示将日志输出到文件的同时输出到 stderr
55+
表示将日志输出到文件的同时输出到 stderr
5656
</td>
5757
</tr>
5858
<tr>
@@ -63,7 +63,7 @@ kubectl [flags]
6363
<!--
6464
Username to impersonate for the operation
6565
-->
66-
以指定用户的身份执行操作
66+
以指定用户的身份执行操作
6767
</td>
6868
</tr>
6969
<tr>
@@ -89,14 +89,14 @@ kubectl [flags]
8989
</td>
9090
</tr>
9191
<tr>
92-
<td colspan="2">--cache-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值:"$HOME/.kube/cache"</td>
92+
<td colspan="2">--cache-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!-- Default: -->默认值:"$HOME/.kube/cache"</td>
9393
</tr>
9494
<tr>
9595
<td></td><td style="line-height: 130%; word-wrap: break-word;">
9696
<!--
9797
Default cache directory
9898
-->
99-
默认缓存目录
99+
默认缓存目录
100100
</td>
101101
</tr>
102102
<tr>
@@ -107,7 +107,7 @@ kubectl [flags]
107107
<!--
108108
Path to a cert file for the certificate authority
109109
-->
110-
指向证书机构的 cert 文件路径
110+
指向证书机构的 cert 文件路径
111111
</td>
112112
</tr>
113113
<tr>
@@ -118,7 +118,7 @@ kubectl [flags]
118118
<!--
119119
Path to a client certificate file for TLS
120120
-->
121-
TLS 使用的客户端证书路径
121+
TLS 使用的客户端证书路径
122122
</td>
123123
</tr>
124124
<tr>
@@ -129,11 +129,11 @@ kubectl [flags]
129129
<!--
130130
Path to a client key file for TLS
131131
-->
132-
TLS 使用的客户端密钥文件路径
132+
TLS 使用的客户端密钥文件路径
133133
</td>
134134
</tr>
135135
<tr>
136-
<td colspan="2">--cloud-provider-gce-l7lb-src-cidrs cidrs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值:130.211.0.0/22,35.191.0.0/16</td>
136+
<td colspan="2">--cloud-provider-gce-l7lb-src-cidrs cidrs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!-- Default: -->默认值:130.211.0.0/22,35.191.0.0/16</td>
137137
</tr>
138138
<tr>
139139
<td></td><td style="line-height: 130%; word-wrap: break-word;">
@@ -142,7 +142,7 @@ kubectl [flags]
142142
</td>
143143
</tr>
144144
<tr>
145-
<td colspan="2">--cloud-provider-gce-lb-src-cidrs cidrs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值:130.211.0.0/22,209.85.152.0/22,209.85.204.0/22,35.191.0.0/16</td>
145+
<td colspan="2">--cloud-provider-gce-lb-src-cidrs cidrs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!-- Default: -->默认值:130.211.0.0/22,209.85.152.0/22,209.85.204.0/22,35.191.0.0/16</td>
146146
</tr>
147147
<tr>
148148
<td></td><td style="line-height: 130%; word-wrap: break-word;">
@@ -160,7 +160,7 @@ kubectl [flags]
160160
<!--
161161
The name of the kubeconfig cluster to use
162162
-->
163-
要使用的 kubeconfig 集群的名称
163+
要使用的 kubeconfig 集群的名称
164164
</td>
165165
</tr>
166166
<tr>
@@ -171,11 +171,11 @@ kubectl [flags]
171171
<!--
172172
The name of the kubeconfig context to use
173173
-->
174-
要使用的 kubeconfig 上下文的名称
174+
要使用的 kubeconfig 上下文的名称
175175
</td>
176176
</tr>
177177
<tr>
178-
<td colspan="2">--default-not-ready-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值:300</td>
178+
<td colspan="2">--default-not-ready-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!-- Default: -->默认值:300</td>
179179
</tr>
180180
<tr>
181181
<td></td><td style="line-height: 130%; word-wrap: break-word;">
@@ -186,7 +186,7 @@ kubectl [flags]
186186
</td>
187187
</tr>
188188
<tr>
189-
<td colspan="2">--default-unreachable-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值:300</td>
189+
<td colspan="2">--default-unreachable-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!-- Default: -->默认值:300</td>
190190
</tr>
191191
<tr>
192192
<td></td><td style="line-height: 130%; word-wrap: break-word;">
@@ -230,7 +230,7 @@ kubectl [flags]
230230
</td>
231231
</tr>
232232
<tr>
233-
<td colspan="2">--log-backtrace-at traceLocation&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值:0</td>
233+
<td colspan="2">--log-backtrace-at traceLocation&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!-- Default: -->默认值:0</td>
234234
</tr>
235235
<tr>
236236
<td></td><td style="line-height: 130%; word-wrap: break-word;">
@@ -263,7 +263,7 @@ kubectl [flags]
263263
</td>
264264
</tr>
265265
<tr>
266-
<td colspan="2">--log-file-max-size uint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值:1800</td>
266+
<td colspan="2">--log-file-max-size uint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!-- Default: -->默认值:1800</td>
267267
</tr>
268268
<tr>
269269
<td></td><td style="line-height: 130%; word-wrap: break-word;">
@@ -286,7 +286,7 @@ kubectl [flags]
286286
</td>
287287
</tr>
288288
<tr>
289-
<td colspan="2">--logtostderr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值:true</td>
289+
<td colspan="2">--logtostderr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!-- Default: -->默认值:true</td>
290290
</tr>
291291
<tr>
292292
<td></td>
@@ -346,7 +346,7 @@ kubectl [flags]
346346
</td>
347347
</tr>
348348
<tr>
349-
<td colspan="2">--profile string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值:"none"</td>
349+
<td colspan="2">--profile string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!-- Default: -->默认值:"none"</td>
350350
</tr>
351351
<tr>
352352
<td></td>
@@ -358,19 +358,19 @@ kubectl [flags]
358358
</td>
359359
</tr>
360360
<tr>
361-
<td colspan="2">--profile-output string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值:"profile.pprof"</td>
361+
<td colspan="2">--profile-output string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!-- Default: -->默认值:"profile.pprof"</td>
362362
</tr>
363363
<tr>
364364
<td></td>
365365
<td style="line-height: 130%; word-wrap: break-word;">
366366
<!--
367367
Name of the file to write the profile to
368368
-->
369-
用于转储所记录的性能信息的文件名
369+
用于转储所记录的性能信息的文件名
370370
</td>
371371
</tr>
372372
<tr>
373-
<td colspan="2">--request-timeout string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值:"0"</td>
373+
<td colspan="2">--request-timeout string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!-- Default: -->默认值:"0"</td>
374374
</tr>
375375
<tr>
376376
<td></td>
@@ -391,7 +391,7 @@ kubectl [flags]
391391
<!--
392392
The address and port of the Kubernetes API server
393393
-->
394-
Kubernetes API 服务器的地址和端口
394+
Kubernetes API 服务器的地址和端口
395395
</td>
396396
</tr>
397397
<tr>
@@ -403,7 +403,7 @@ kubectl [flags]
403403
<!--
404404
If true, avoid header prefixes in the log messages
405405
-->
406-
设置为 true 则表示跳过在日志消息中出现 header 前缀信息
406+
设置为 true 则表示跳过在日志消息中出现 header 前缀信息
407407
</td>
408408
</tr>
409409
<tr>
@@ -415,11 +415,11 @@ kubectl [flags]
415415
<!--
416416
If true, avoid headers when opening log files
417417
-->
418-
设置为 true 则表示在打开日志文件时跳过 header 信息
418+
设置为 true 则表示在打开日志文件时跳过 header 信息
419419
</td>
420420
</tr>
421421
<tr>
422-
<td colspan="2">--stderrthreshold severity&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认值:2</td>
422+
<td colspan="2">--stderrthreshold severity&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!-- Default: -->默认值:2</td>
423423
</tr>
424424
<tr>
425425
<td></td>
@@ -526,20 +526,6 @@ kubectl 的配置 ("kubeconfig") 文件的路径。默认值:"$HOME/.kube/conf
526526
</td>
527527
</tr>
528528

529-
<tr>
530-
<td colspan="2">KUBECTL_COMMAND_HEADERS</td>
531-
</tr>
532-
<tr>
533-
<td></td>
534-
<td style="line-height: 130%; word-wrap: break-word;">
535-
<!--
536-
When set to false, turns off extra HTTP headers detailing invoked kubectl command (Kubernetes version v1.22 or later)
537-
-->
538-
设置为 false 时,将关闭额外的 HTTP 标头,不再详细说明被调用的 kubectl
539-
命令(此变量适用于 Kubernetes v1.22 或更高版本)
540-
</td>
541-
</tr>
542-
543529
<tr>
544530
<td colspan="2">KUBECTL_EXPLAIN_OPENAPIV3</td>
545531
</tr>
@@ -549,7 +535,8 @@ When set to false, turns off extra HTTP headers detailing invoked kubectl comman
549535
<!--
550536
Toggles whether calls to `kubectl explain` use the new OpenAPIv3 data source available. OpenAPIV3 is enabled by default since Kubernetes 1.24.
551537
-->
552-
切换对 <code>kubectl explain</code> 的调用是否使用可用的新 OpenAPIv3 数据源。OpenAPIV3 自 Kubernetes 1.24 起默认被启用。
538+
切换对 <code>kubectl explain</code> 的调用是否使用可用的新 OpenAPIv3 数据源。
539+
OpenAPIV3 自 Kubernetes 1.24 起默认被启用。
553540
</td>
554541
</tr>
555542

content/zh-cn/docs/reference/node/node-status.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ A Node's status contains the following information:
2828
* [Conditions](#condition)
2929
* [Capacity and Allocatable](#capacity)
3030
* [Info](#info)
31+
* [Declared Features](#declaredfeatures)
3132
-->
3233
## 节点状态字段 {#node-status-fields}
3334

@@ -37,6 +38,7 @@ A Node's status contains the following information:
3738
* [状况(Condition)](#condition)
3839
* [容量与可分配(Capacity)](#capacity)
3940
* [信息(Info)](#info)
41+
* [已声明的特性(Declared Features)](#declaredfeatures)
4042

4143
<!--
4244
You can use `kubectl` to view a Node's status and other details:
@@ -211,6 +213,40 @@ Info 指的是节点的一般信息,如内核版本、Kubernetes 版本(`kub
211213
容器运行时详细信息,以及节点使用的操作系统。
212214
`kubelet` 从节点收集这些信息并将其发布到 Kubernetes API。
213215

216+
<!--
217+
## Declared features {#declaredfeatures}
218+
-->
219+
## 声明式特性 {#declaredfeatures}
220+
221+
{{< feature-state feature_gate_name="NodeDeclaredFeatures" >}}
222+
223+
<!--
224+
This field lists specific Kubernetes features that are currently enabled on the
225+
node's kubelet via [feature gates](/docs/reference/command-line-tools-reference/feature-gates/).
226+
The features are reported by the kubelet as a list of strings in the
227+
`.status.declaredFeatures` field of the Node object.
228+
-->
229+
此字段列出了通过[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)在节点的
230+
kubelet 上当前已启用的特定 Kubernetes 特性。
231+
kubelet 会将这些特性以字符串列表的形式报告到 Node 对象的
232+
`.status.declaredFeatures` 字段中。
233+
234+
<!--
235+
This field is intended for newer features under active development; features that
236+
have graduated and no longer require a feature gate are considered baseline and
237+
are not declared in this field. This reflects the enablement of Kubernetes
238+
features, not the underlying operating system or kernel capabilities of the node.
239+
-->
240+
此字段用于记录正在积极开发的新特性;
241+
已完成且不再需要特性门控的功能被视为基线功能,无需在此字段中声明。
242+
这反映的是 Kubernetes 特性的启用情况,而非节点底层操作系统或内核的特性。
243+
244+
<!--
245+
See [Node Declared Features](/docs/concepts/scheduling-eviction/node-declared-features/)
246+
for more details.
247+
-->
248+
有关更多详细信息,请参阅[节点声明特性](/zh-cn/docs/concepts/scheduling-eviction/node-declared-features/)
249+
214250
<!--
215251
## Heartbeats
216252

0 commit comments

Comments
 (0)