Skip to content

Commit fef1855

Browse files
authored
Merge pull request #33855 from nameYULI/yl35
[zh]Sync reference-16
2 parents 67eba17 + c3dc4d3 commit fef1855

File tree

1 file changed

+21
-23
lines changed

1 file changed

+21
-23
lines changed

content/zh/docs/reference/config-api/kubelet-config.v1alpha1.md

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ auto_generated: true
2626
-->
2727
**出现在:**
2828

29-
- [LoggingConfiguration](#LoggingConfiguration)
30-
3129
<!--
3230
FormatOptions contains options for the different logging formats.
3331
-->
@@ -41,8 +39,8 @@ FormatOptions 包含为不同类型日志格式提供的选项。
4139
<a href="#JSONOptions"><code>JSONOptions</code></a>
4240
</td>
4341
<td>
44-
<!--[Experimental] JSON contains options for logging format "json".-->
45-
[试验特性] <code>json</code> 中包含 "json" 日志格式的选项。
42+
<!--[Experimental] JSON contains options for logging format &quot;json&quot;.-->
43+
[试验特性] <code>json</code> 中包含 &quot;json&quot; 日志格式的选项。
4644
</td>
4745
</tr>
4846
</tbody>
@@ -58,9 +56,9 @@ FormatOptions 包含为不同类型日志格式提供的选项。
5856
- [FormatOptions](#FormatOptions)
5957

6058
<!--
61-
JSONOptions contains options for logging format "json".
59+
JSONOptions contains options for logging format &quot;json&quot;.
6260
-->
63-
JSONOptions 包含用于 "json" 日志格式的选项。
61+
JSONOptions 包含用于 &quot;json&quot; 日志格式的选项。
6462

6563
<table class="table">
6664
<thead><tr><th width="30%"><!--Field-->字段</th><th><!--Description-->描述</th></tr></thead>
@@ -104,8 +102,6 @@ using split streams. The default is zero, which disables buffering.-->
104102
-->
105103
**出现在:**
106104

107-
- [LoggingConfiguration](#LoggingConfiguration)
108-
109105
<!--
110106
VModuleConfiguration is a collection of individual file names or patterns
111107
and the corresponding verbosity threshold.
@@ -194,13 +190,15 @@ to provide credentials. Images are expected to contain the registry domain
194190
and URL path.
195191
Each entry in matchImages is a pattern which can optionally contain a port and a path.
196192
Globs can be used in the domain, but not in the port or the path. Globs are supported
197-
as subdomains like '&lowast;.k8s.io' or 'k8s.&lowast;.io', and top-level-domains such as 'k8s.&lowast;'.
198-
Matching partial subdomains like 'app&lowast;.k8s.io' is also supported. Each glob can only match
199-
a single subdomain segment, so &lowast;.io does not match &lowast;.k8s.io.
193+
as subdomains like <code>*.k8s.io</code> or <code>k8s.*.io</code>, and top-level-domains such as <code>k8s.*</code>.
194+
Matching partial subdomains like <code>app*.k8s.io</code> is also supported. Each glob can only match
195+
a single subdomain segment, so <code>*.io</code> does not match <code>*.k8s.io</code>.
200196
A match exists between an image and a matchImage when all of the below are true:
201-
- Both contain the same number of domain parts and each part matches.
202-
- The URL path of an imageMatch must be a prefix of the target image URL path.
203-
- If the imageMatch contains a port, then the port must match in the image as well.
197+
<ul>
198+
<li>Both contain the same number of domain parts and each part matches.</li>
199+
<li>The URL path of an imageMatch must be a prefix of the target image URL path.</li>
200+
<li>If the imageMatch contains a port, then the port must match in the image as well.</li>
201+
</ul>
204202
Example values of matchImages:
205203
- 123456789.dkr.ecr.us-east-1.amazonaws.com
206204
- &lowast;.azurecr.io
@@ -213,9 +211,9 @@ Example values of matchImages:
213211
镜像应该包含镜像库域名和 URL 路径。</p>
214212
<p><code>matchImages</code> 中的每个条目都是一个模式字符串,其中可以包含端口号和路径。
215213
域名部分可以包含统配符,但端口或路径部分不可以。通配符可以用作子域名,例如
216-
'&lowast;.k8s.io''k8s.&lowast;.io',以及顶级域名,如 'k8s.&lowast;'。</p>
217-
<p>对类似 'app&lowast;.k8s.io' 这类部分子域名的匹配也是支持的。
218-
每个通配符只能用来匹配一个子域名段,所以 '&lowast;.io' 不会匹配 '&lowast;.k8s.io'。</p>
214+
<code>*.k8s.io</code><code>k8s.*.io</code>,以及顶级域名,如 <code>k8s.*</code>。</p>
215+
<p>对类似 <code>app*.k8s.io</code> 这类部分子域名的匹配也是支持的。
216+
每个通配符只能用来匹配一个子域名段,所以 <code>*.io</code> 不会匹配 <code>*.k8s.io</code>。</p>
219217
<p>镜像与 <code>matchImages</code> 之间存在匹配时,以下条件都要满足:</p>
220218
<ul>
221219
<li>二者均包含相同个数的域名部分,并且每个域名部分都对应匹配;</li>
@@ -224,17 +222,17 @@ Example values of matchImages:
224222
</ul>
225223
<p><code>matchImages</code> 的一些示例如下:</p>
226224
<ul>
227-
<li>123456789.dkr.ecr.us-east-1.amazonaws.com</li>
228-
<li>&lowast;.azurecr.io</li>
229-
<li>gcr.io</li>
230-
<li>&lowast;.&lowast;.registry.io</li>
231-
<li>registry.io:8080/path</li>
225+
<li><code>123456789.dkr.ecr.us-east-1.amazonaws.com</code></li>
226+
<li><code>*.azurecr.io</code></li>
227+
<li><code>gcr.io</code></li>
228+
<li><code>*.*.registry.io</code></li>
229+
<li><code>registry.io:8080/path</code></li>
232230
</ul>
233231
</td>
234232
</tr>
235233

236234
<tr><td><code>defaultCacheDuration</code> <B>[必需]</B><br/>
237-
<a href="https://godoc.org/k8s.io/apimachinery/pkg/apis/meta/v1#Duration"><code>meta/v1.Duration</code></a>
235+
<a href="https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Duration"><code>meta/v1.Duration</code></a>
238236
</td>
239237
<td>
240238
<!--defaultCacheDuration is the default duration the plugin will cache credentials in-memory

0 commit comments

Comments
 (0)