Skip to content

Commit 069d37e

Browse files
authored
Merge pull request #46433 from my-git9/pt-25159
[zh-cn] sync kubelet-config.v1beta1.md
2 parents 7a23d3e + 686cd52 commit 069d37e

File tree

1 file changed

+174
-37
lines changed

1 file changed

+174
-37
lines changed

content/zh-cn/docs/reference/config-api/kubelet-config.v1beta1.md

Lines changed: 174 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,21 @@ FormatOptions 包含为不同日志格式提供的选项。
3939
<thead><tr><th width="30%"><!--Field-->字段</th><th><!--Description-->描述</th></tr></thead>
4040
<tbody>
4141

42+
<tr>
43+
<td>
44+
<code>text</code> <B><!-- [Required] -->[必需]</B><br/>
45+
<a href="#TextOptions"><code>TextOptions</code></a>
46+
</td>
47+
<td>
48+
<!--
49+
<p>[Alpha] Text contains options for logging format &quot;text&quot;.
50+
Only available when the LoggingAlphaOptions feature gate is enabled.</p>
51+
-->
52+
<p>[Alpha] 文本包含用于记录 &quot;text&quot; 格式的选项。
53+
仅当 LoggingAlphaOptions 特性门控被启用时可用。</p>
54+
</td>
55+
</tr>
56+
4257
<tr><td><code>json</code> <B><!-- [Required] -->[必需]</B><br/>
4358
<a href="#JSONOptions"><code>JSONOptions</code></a>
4459
</td>
@@ -73,38 +88,19 @@ JSONOptions 包含为 &quot;json&quot; 日志格式提供的选项。
7388
<table class="table">
7489
<thead><tr><th width="30%"><!--Field-->字段</th><th><!--Description-->描述</th></tr></thead>
7590
<tbody>
76-
<tr><td><code>splitStream</code> <B><!-- [Required] -->[必需]</B><br/>
77-
<code>bool</code>
78-
</td>
79-
<td>
80-
<p>
81-
<!--
82-
[Alpha] SplitStream redirects error messages to stderr while
83-
info messages go to stdout, with buffering. The default is to write
84-
both to stdout, without buffering. Only available when
85-
the LoggingAlphaOptions feature gate is enabled.
86-
-->
87-
[Alpha] <code>splitStream</code> 将错误信息重定向到标准错误输出(stderr),
88-
而将提示信息重定向到标准输出(stdout),并为二者提供缓存。
89-
默认设置是将二者都写出到标准输出,并且不提供缓存。
90-
只有 LoggingAlphaOptions 特性门控被启用时才可用。
91-
</p>
92-
</td>
93-
</tr>
9491

95-
<tr><td><code>infoBufferSize</code> <B><!-- [Required] -->[必需]</B><br/>
96-
<a href="https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#QuantityValue"><code>k8s.io/apimachinery/pkg/api/resource.QuantityValue</code></a>
97-
</td>
92+
<tr>
9893
<td>
99-
<p>
100-
<!--
101-
[Alpha] InfoBufferSize sets the size of the info stream when
102-
using split streams. The default is zero, which disables buffering.
103-
Only available when the LoggingAlphaOptions feature gate is enabled.
104-
-->
105-
[Alpha] <code>infoBufferSize</code> 在分离数据流时用来设置 info 数据流的大小。
106-
默认值为 0,相当于禁止缓存。只有 LoggingAlphaOptions 特性门控被启用时才可用。
107-
</p>
94+
<code>OutputRoutingOptions</code> <B><!-- [Required] -->[必需]</B><br/>
95+
<a href="#OutputRoutingOptions"><code>OutputRoutingOptions</code></a>
96+
</td>
97+
<td>
98+
<!--
99+
(Members of <code>OutputRoutingOptions</code> are embedded into this type.)
100+
<span class="text-muted">No descrtputRoutingOptions contains options that are supported biption provided.</span>
101+
-->
102+
(<code>OutputRoutingOptions</code> 的成员嵌入到此类型中。)
103+
<span class="text-muted">没有提供描述。</span>
108104
</td>
109105
</tr>
110106
</tbody>
@@ -262,6 +258,96 @@ certain global defaults.
262258
</tbody>
263259
</table>
264260

261+
<!--
262+
## `OutputRoutingOptions` {#OutputRoutingOptions}
263+
264+
**Appears in:**
265+
-->
266+
## `OutputRoutingOptions` {#OutputRoutingOptions}
267+
268+
- [JSONOptions](#JSONOptions)
269+
270+
- [TextOptions](#TextOptions)
271+
272+
<p>
273+
<!--
274+
OutputRoutingOptions contains options that are supported by both &quot;text&quot; and &quot;json&quot;.
275+
-->
276+
</p>
277+
OutputRoutingOptions 包含 &quot;text&quot;&quot;json&quot; 支持的选项。
278+
279+
<table class="table">
280+
<thead><tr><th width="30%">Field</th><th><!--Description-->描述<</th></tr></thead>
281+
282+
<tbody>
283+
<tr><td><code>splitStream</code> <B><!--[Required]-->[必需]</B><br/>
284+
<code>bool</code>
285+
</td>
286+
<td>
287+
<!--
288+
<p>[Alpha] SplitStream redirects error messages to stderr while
289+
info messages go to stdout, with buffering. The default is to write
290+
both to stdout, without buffering. Only available when
291+
the LoggingAlphaOptions feature gate is enabled.</p>
292+
-->
293+
<p>[Alpha] SplitStream 将错误消息重定向到 stderr,而信息消息则转到 stdout,并进行缓冲。
294+
默认是将两者都写入 stdout,而不进行缓冲。仅在 LoggingAlphaOptions 特性门控启用时可用。</p>
295+
</td>
296+
</tr>
297+
<tr>
298+
<td><code>infoBufferSize</code> <B><!--[Required]-->[必需]</B><br/>
299+
<a href="https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#QuantityValue"><code>k8s.io/apimachinery/pkg/api/resource.QuantityValue</code></a>
300+
</td>
301+
<td>
302+
<!--
303+
<p>[Alpha] InfoBufferSize sets the size of the info stream when
304+
using split streams. The default is zero, which disables buffering.
305+
Only available when the LoggingAlphaOptions feature gate is enabled.</p>
306+
-->
307+
<p>[Alpha] InfoBufferSize 设置使用分割流时信息流的大小。默认值为零,表示禁用缓冲。
308+
仅在 LoggingAlphaOptions 特性门控启用时可用。</p>
309+
</td>
310+
</tr>
311+
</tbody>
312+
</table>
313+
314+
## `TextOptions` {#TextOptions}
315+
316+
<!--
317+
**Appears in:**
318+
-->
319+
**出现在:**
320+
321+
- [FormatOptions](#FormatOptions)
322+
323+
<p>
324+
<!--
325+
TextOptions contains options for logging format &quot;text&quot;.
326+
-->
327+
TextOptions 包含用于记录 &quot;text&quot; 格式的选项。
328+
</p>
329+
330+
331+
<table class="table">
332+
<thead><tr><th width="30%">Field</th><th><!--Description-->描述</th></tr></thead>
333+
<tbody>
334+
335+
<tr>
336+
<td><code>OutputRoutingOptions</code> <B><!--[Required]-->[必需]</B><br/>
337+
<a href="#OutputRoutingOptions"><code>OutputRoutingOptions</code></a>
338+
</td>
339+
<td>
340+
<!--
341+
(Members of <code>OutputRoutingOptions</code> are embedded into this type.)
342+
<span class="text-muted">No description provided.</span>
343+
-->
344+
(<code>OutputRoutingOptions</code> 的成员嵌入到此类型中。)
345+
<span class="text-muted">未提供描述。</span>
346+
</td>
347+
</tr>
348+
</tbody>
349+
</table>
350+
265351
## `TimeOrMetaDuration` {#TimeOrMetaDuration}
266352

267353
<!--
@@ -480,6 +566,23 @@ Default: &quot;&quot;
480566
</td>
481567
</tr>
482568

569+
<tr><td><code>podLogsDir</code><br/>
570+
<code>string</code>
571+
</td>
572+
<td>
573+
<!--
574+
<p>podLogsDir is a custom root directory path kubelet will use to place pod's log files.
575+
Default: &quot;/var/log/pods/&quot;
576+
Note: it is not recommended to use the temp folder as a log directory as it may cause
577+
unexpected behavior in many places.</p>
578+
-->
579+
<p>podLogsDir 是 kubelet 用于放置 Pod 日志文件的自定义根目录路径。
580+
默认值:&quot;/var/log/pods/&quot;
581+
注意:不建议使用临时文件夹作为日志目录,因为它可能会在许多地方引起意外行为。</p>
582+
</td>
583+
</tr>
584+
585+
483586
<tr><td><code>syncFrequency</code><br/>
484587
<a href="https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Duration"><code>meta/v1.Duration</code></a>
485588
</td>
@@ -637,12 +740,12 @@ Default: &quot;&quot;
637740
<!--
638741
tlsCipherSuites is the list of allowed cipher suites for the server.
639742
Note that TLS 1.3 ciphersuites are not configurable.
640-
Values are from tls package constants (https://pkg.go.dev/crypto/tls#pkg-constants).
743+
Values are from tls package constants (https://golang.org/pkg/crypto/tls/#pkg-constants).
641744
Default: nil
642745
-->
643746
<p><code>tlsCipherSuites</code> 是一个字符串列表,其中包含服务器所接受的加密包名称。
644747
请注意,TLS 1.3 密码套件是不可配置的。
645-
列表中的每个值来自于 <code>tls</code> 包中定义的常数(https://pkg.go.dev/crypto/tls#pkg-constants)。</p>
748+
列表中的每个值来自于 <code>tls</code> 包中定义的常数(https://golang.org/pkg/crypto/tls/#pkg-constants)。</p>
646749
<p>默认值:nil</p>
647750
</td>
648751
</tr>
@@ -653,11 +756,11 @@ Default: &quot;&quot;
653756
<td>
654757
<!--
655758
tlsMinVersion is the minimum TLS version supported.
656-
Values are from tls package constants (https://pkg.go.dev/crypto/tls#pkg-constants).
759+
Values are from tls package constants (https://golang.org/pkg/crypto/tls/#pkg-constants).
657760
Default: &quot;&quot;
658761
-->
659762
<p><code>tlsMinVersion</code> 给出所支持的最小 TLS 版本。
660-
字段取值来自于 <code>tls</code> 包中的常数定义(https://pkg.go.dev/crypto/tls#pkg-constants)。</p>
763+
字段取值来自于 <code>tls</code> 包中的常数定义(https://golang.org/pkg/crypto/tls/#pkg-constants)。</p>
661764
<p>默认值:&quot;&quot;</p>
662765
</td>
663766
</tr>
@@ -1855,6 +1958,40 @@ Default: 5
18551958
</td>
18561959
</tr>
18571960

1961+
<tr><td><code>containerLogMaxWorkers</code><br/>
1962+
<code>int32</code>
1963+
</td>
1964+
<td>
1965+
<!--
1966+
<p>ContainerLogMaxWorkers specifies the maximum number of concurrent workers to spawn
1967+
for performing the log rotate operations. Set this count to 1 for disabling the
1968+
concurrent log rotation workflows
1969+
Default: 1</p>
1970+
-->
1971+
<p>containerLogMaxWorkers 指定执行日志轮换操作所需的并发工作程序的最大数量。
1972+
将此计数设置为 1,以禁用并发日志轮换工作流程。
1973+
默认值:1</p>
1974+
</td>
1975+
</tr>
1976+
<tr>
1977+
<td><code>containerLogMonitorInterval</code><br/>
1978+
<a href="https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Duration"><code>meta/v1.Duration</code></a>
1979+
</td>
1980+
<td>
1981+
<!--
1982+
<p>ContainerLogMonitorInterval specifies the duration at which the container logs are monitored
1983+
for performing the log rotate operation. This defaults to 10 * time.Seconds. But can be
1984+
customized to a smaller value based on the log generation rate and the size required to be
1985+
rotated against
1986+
Default: 10s</p>
1987+
-->
1988+
<p>ContainerLogMonitorInterval 指定监视容器日志以执行日志轮转操作的持续时间。
1989+
默认为 10s,但可以根据日志生成率和需要轮换的大小定制为较小的值。
1990+
默认值:10s
1991+
</p>
1992+
</td>
1993+
</tr>
1994+
18581995
<tr><td><code>configMapAndSecretChangeDetectionStrategy</code><br/>
18591996
<a href="#kubelet-config-k8s-io-v1beta1-ResourceChangeDetectionStrategy"><code>ResourceChangeDetectionStrategy</code></a>
18601997
</td>
@@ -2333,7 +2470,7 @@ Default: 0.8
23332470
</tr>
23342471

23352472
<tr><td><code>registerWithTaints</code><br/>
2336-
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.29/#taint-v1-core"><code>[]core/v1.Taint</code></a>
2473+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#taint-v1-core"><code>[]core/v1.Taint</code></a>
23372474
</td>
23382475
<td>
23392476
<!--
@@ -2448,7 +2585,7 @@ SerializedNodeConfigSource 允许对 `v1.NodeConfigSource` 执行序列化操作
24482585
<tr><td><code>kind</code><br/>string</td><td><code>SerializedNodeConfigSource</code></td></tr>
24492586

24502587
<tr><td><code>source</code><br/>
2451-
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.29/#nodeconfigsource-v1-core"><code>core/v1.NodeConfigSource</code></a>
2588+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#nodeconfigsource-v1-core"><code>core/v1.NodeConfigSource</code></a>
24522589
</td>
24532590
<td>
24542591
<!--
@@ -2932,7 +3069,7 @@ MemoryReservation 为每个 NUMA 节点设置不同类型的内存预留。
29323069
</tr>
29333070

29343071
<tr><td><code>limits</code> <B><!-- [Required] -->[必需]</B><br/>
2935-
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.29/#resourcelist-v1-core"><code>core/v1.ResourceList</code></a>
3072+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#resourcelist-v1-core"><code>core/v1.ResourceList</code></a>
29363073
</td>
29373074
<td>
29383075
<!--span class="text-muted">No description provided.</span-->

0 commit comments

Comments
 (0)