@@ -39,6 +39,21 @@ FormatOptions 包含为不同日志格式提供的选项。
39
39
<thead ><tr ><th width =" 30% " ><!-- Field--> 字段</th ><th ><!-- Description--> 描述</th ></tr ></thead >
40
40
<tbody >
41
41
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 "text".
50
+ Only available when the LoggingAlphaOptions feature gate is enabled.</p>
51
+ -->
52
+ <p >[Alpha] 文本包含用于记录 " ; text" ; 格式的选项。
53
+ 仅当 LoggingAlphaOptions 特性门控被启用时可用。</p >
54
+ </td >
55
+ </tr >
56
+
42
57
<tr ><td ><code >json</code > <B ><!-- [Required] --> [必需]</B ><br />
43
58
<a href =" #JSONOptions " ><code >JSONOptions</code ></a >
44
59
</td >
@@ -73,38 +88,19 @@ JSONOptions 包含为 "json" 日志格式提供的选项。
73
88
<table class =" table " >
74
89
<thead ><tr ><th width =" 30% " ><!-- Field--> 字段</th ><th ><!-- Description--> 描述</th ></tr ></thead >
75
90
<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 >
94
91
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 >
98
93
<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 >
108
104
</td >
109
105
</tr >
110
106
</tbody >
@@ -262,6 +258,96 @@ certain global defaults.
262
258
</tbody >
263
259
</table >
264
260
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 "text" and "json".
275
+ -->
276
+ </p >
277
+ OutputRoutingOptions 包含 " ; text" ; 和 " ; json" ; 支持的选项。
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 "text".
326
+ -->
327
+ TextOptions 包含用于记录 " ; text" ; 格式的选项。
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
+
265
351
## ` TimeOrMetaDuration ` {#TimeOrMetaDuration}
266
352
267
353
<!--
@@ -480,6 +566,23 @@ Default: ""
480
566
</td >
481
567
</tr >
482
568
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: "/var/log/pods/"
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
+ 默认值:" ; /var/log/pods/" ;
581
+ 注意:不建议使用临时文件夹作为日志目录,因为它可能会在许多地方引起意外行为。</p >
582
+ </td >
583
+ </tr >
584
+
585
+
483
586
<tr ><td ><code >syncFrequency</code ><br />
484
587
<a href =" https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Duration " ><code >meta/v1.Duration</code ></a >
485
588
</td >
@@ -637,12 +740,12 @@ Default: ""
637
740
<!--
638
741
tlsCipherSuites is the list of allowed cipher suites for the server.
639
742
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).
641
744
Default: nil
642
745
-->
643
746
<p ><code >tlsCipherSuites</code > 是一个字符串列表,其中包含服务器所接受的加密包名称。
644
747
请注意,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 >
646
749
<p >默认值:nil</p >
647
750
</td >
648
751
</tr >
@@ -653,11 +756,11 @@ Default: ""
653
756
<td >
654
757
<!--
655
758
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).
657
760
Default: ""
658
761
-->
659
762
<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 >
661
764
<p >默认值:" ;" ; </p >
662
765
</td >
663
766
</tr >
@@ -1855,6 +1958,40 @@ Default: 5
1855
1958
</td >
1856
1959
</tr >
1857
1960
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
+
1858
1995
<tr ><td ><code >configMapAndSecretChangeDetectionStrategy</code ><br />
1859
1996
<a href =" #kubelet-config-k8s-io-v1beta1-ResourceChangeDetectionStrategy " ><code >ResourceChangeDetectionStrategy</code ></a >
1860
1997
</td >
@@ -2333,7 +2470,7 @@ Default: 0.8
2333
2470
</tr >
2334
2471
2335
2472
<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 >
2337
2474
</td >
2338
2475
<td >
2339
2476
<!--
@@ -2448,7 +2585,7 @@ SerializedNodeConfigSource 允许对 `v1.NodeConfigSource` 执行序列化操作
2448
2585
<tr ><td ><code >kind</code ><br />string</td ><td ><code >SerializedNodeConfigSource</code ></td ></tr >
2449
2586
2450
2587
<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 >
2452
2589
</td >
2453
2590
<td >
2454
2591
<!--
@@ -2932,7 +3069,7 @@ MemoryReservation 为每个 NUMA 节点设置不同类型的内存预留。
2932
3069
</tr >
2933
3070
2934
3071
<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 >
2936
3073
</td >
2937
3074
<td >
2938
3075
<!-- span class="text-muted">No description provided.</span-->
0 commit comments