Skip to content

Commit abdf3d7

Browse files
authored
Merge pull request #51853 from my-git9/npa-17171
[zh-cn] sync apiserver-config.v1.md
2 parents 1c09dc5 + 52d375e commit abdf3d7

File tree

1 file changed

+59
-46
lines changed

1 file changed

+59
-46
lines changed

content/zh-cn/docs/reference/config-api/apiserver-config.v1.md

Lines changed: 59 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ package: apiserver.config.k8s.io/v1
1010
auto_generated: true
1111
-->
1212

13+
<p>
1314
<!--
14-
<p>Package v1 is the v1 version of the API.</p>
15+
Package v1 is the v1 version of the API.
1516
-->
16-
<p>v1 包中包含 API 的 v1 版本。</p>
17+
v1 包中包含 API 的 v1 版本。
18+
</p>
1719

1820
<!--
1921
## Resource Types
@@ -26,10 +28,12 @@ auto_generated: true
2628

2729
## `AdmissionConfiguration` {#apiserver-config-k8s-io-v1-AdmissionConfiguration}
2830

31+
<p>
2932
<!--
30-
<p>AdmissionConfiguration provides versioned configuration for admission controllers.</p>
33+
AdmissionConfiguration provides versioned configuration for admission controllers.
3134
-->
32-
<p>AdmissionConfiguration 为准入控制器提供版本化的配置。</p>
35+
AdmissionConfiguration 为准入控制器提供版本化的配置。
36+
</p>
3337

3438
<table class="table">
3539
<thead><tr><th width="30%"><!--Field-->字段</th><th><!--Description-->描述</th></tr></thead>
@@ -42,10 +46,12 @@ auto_generated: true
4246
<a href="#apiserver-config-k8s-io-v1-AdmissionPluginConfiguration"><code>[]AdmissionPluginConfiguration</code></a>
4347
</td>
4448
<td>
49+
<p>
4550
<!--
46-
<p>Plugins allows specifying a configuration per admission control plugin.</p>
47-
-->
48-
<p><code>plugins</code> 字段允许为每个准入控制插件设置配置选项。</p>
51+
Plugins allows specifying a configuration per admission control plugin.
52+
-->
53+
<code>plugins</code> 字段允许为每个准入控制插件设置配置选项。
54+
</p>
4955
</td>
5056
</tr>
5157

@@ -57,7 +63,7 @@ auto_generated: true
5763
<table class="table">
5864
<thead><tr><th width="30%"><!--Field-->字段</th><th><!--Description-->描述</th></tr></thead>
5965
<tbody>
60-
66+
6167
<tr><td><code>apiVersion</code><br/>string</td><td><code>apiserver.config.k8s.io/v1</code></td></tr>
6268
<tr><td><code>kind</code><br/>string</td><td><code>AuthorizationConfiguration</code></td></tr>
6369

@@ -73,7 +79,7 @@ This is similar to the --authorization-modes kube-apiserver flag
7379
Must be at least one.
7480
-->
7581
<code>authorizers</code> 是用于针对请求进行鉴权的鉴权组件的有序列表。
76-
这类似于 `--authorization-modes` kube-apiserver 标志。
82+
这类似于 <code>--authorization-modes</code> kube-apiserver 标志。
7783
必须至少包含一个元素。
7884
</p>
7985
</td>
@@ -156,7 +162,7 @@ resources:
156162
<!--
157163
resources is a list containing resources, and their corresponding encryption providers.
158164
-->
159-
resources 是一个包含资源及其对应加密驱动的列表。
165+
<code>resources</code> 是一个包含资源及其对应加密驱动的列表。
160166
</p>
161167
</td>
162168
</tr>
@@ -192,10 +198,10 @@ AESConfiguration 包含针对 AES 转换器的 API 配置。
192198
keys is a list of keys to be used for creating the AES transformer.
193199
Each key has to be 32 bytes long for AES-CBC and 16, 24 or 32 bytes for AES-GCM.
194200
-->
195-
keys 是一个用于创建 AES 转换器的密钥列表。
201+
<code>keys</code> 是一个用于创建 AES 转换器的密钥列表。
196202
对于 AES-CBC,每个密钥的长度必须是 32 字节;
197203
对于 AES-GCM,每个密钥的长度可以是 16、24 或 32 字节。
198-
</p>
204+
</p>
199205
</td>
200206
</tr>
201207
</tbody>
@@ -219,48 +225,54 @@ AESConfiguration 包含针对 AES 转换器的 API 配置。
219225
<thead><tr><th width="30%"><!-- Field-->字段</th><th><!--Description-->描述</th></tr></thead>
220226
<tbody>
221227

222-
<tr><td><code>name</code> <B>[必需]</B><br/>
228+
<tr><td><code>name</code> <B><!--[Required]-->[必需]</B><br/>
223229
<code>string</code>
224230
</td>
225231
<td>
232+
<p>
226233
<!--
227-
<p>Name is the name of the admission controller.
228-
It must match the registered admission plugin name.</p>
234+
Name is the name of the admission controller.
235+
It must match the registered admission plugin name.
229236
-->
230-
<p><code>name</code> 是准入控制器的名称。它必须与所注册的准入插件名称匹配。</p>
237+
<code>name</code> 是准入控制器的名称。它必须与所注册的准入插件名称匹配。
238+
</p>
231239
</td>
232240
</tr>
233241

234242
<tr><td><code>path</code><br/>
235243
<code>string</code>
236244
</td>
237245
<td>
246+
<p>
238247
<!--
239-
<p>Path is the path to a configuration file that contains the plugin's
240-
configuration</p>
248+
Path is the path to a configuration file that contains the plugin's
249+
configuration
241250
-->
242-
<p><code>path</code> 是指向包含插件配置信息的配置文件的路径。</p>
251+
<code>path</code> 是指向包含插件配置信息的配置文件的路径。
252+
</p>
243253
</td>
244254
</tr>
245255

246256
<tr><td><code>configuration</code><br/>
247257
<a href="https://pkg.go.dev/k8s.io/apimachinery/pkg/runtime#Unknown"><code>k8s.io/apimachinery/pkg/runtime.Unknown</code></a>
248258
</td>
249259
<td>
260+
<p>
250261
<!--
251-
<p>Configuration is an embedded configuration object to be used as the plugin's
252-
configuration. If present, it will be used instead of the path to the configuration file.</p>
262+
Configuration is an embedded configuration object to be used as the plugin's
263+
configuration. If present, it will be used instead of the path to the configuration file.
253264
-->
254-
<p><code>configuration</code> 是一个内嵌的配置对象,用来保存插件的配置信息。
255-
如果存在,则使用这里的配置信息而不是指向配置文件的路径。</p>
265+
<code>configuration</code> 是一个内嵌的配置对象,用来保存插件的配置信息。
266+
如果存在,则使用这里的配置信息而不是指向配置文件的路径。
267+
</p>
256268
</td>
257269
</tr>
258270

259271
</tbody>
260272
</table>
261273

262274
## `AuthorizerConfiguration` {#apiserver-config-k8s-io-v1-AuthorizerConfiguration}
263-
275+
264276
<!--
265277
**Appears in:**
266278
-->
@@ -363,7 +375,7 @@ KMSConfiguration 包含 KMS 型信封转换器所用的配置文件的名称、
363375
<table class="table">
364376
<thead><tr><th width="30%"><!--Field-->字段</th><th><!--Description-->描述</th></tr></thead>
365377
<tbody>
366-
378+
367379
<tr><td><code>apiVersion</code><br/>
368380
<code>string</code>
369381
</td>
@@ -384,7 +396,7 @@ KMSConfiguration 包含 KMS 型信封转换器所用的配置文件的名称、
384396
<!--
385397
name is the name of the KMS plugin to be used.
386398
-->
387-
name 是要使用的 KMS 插件的名称。
399+
<code>name</code> 是要使用的 KMS 插件的名称。
388400
</p>
389401
</td>
390402
</tr>
@@ -397,9 +409,9 @@ KMSConfiguration 包含 KMS 型信封转换器所用的配置文件的名称、
397409
cachesize is the maximum number of secrets which are cached in memory. The default value is 1000.
398410
Set to a negative value to disable caching. This field is only allowed for KMS v1 providers.
399411
-->
400-
cachesize 是内存中缓存的最大 Secret 数量。默认值为 1000。
412+
<code>cachesize</code> 是内存中缓存的最大 Secret 数量。默认值为 1000。
401413
设置为负值将禁用缓存。此字段仅允许用于 KMS v1 驱动。
402-
</p>
414+
</p>
403415
</td>
404416
</tr>
405417
<tr><td><code>endpoint</code> <B><!--[Required]-->[必需]</B><br/>
@@ -410,7 +422,7 @@ KMSConfiguration 包含 KMS 型信封转换器所用的配置文件的名称、
410422
<!--
411423
endpoint is the gRPC server listening address, for example &quot;unix:///var/run/kms-provider.sock&quot;.
412424
-->
413-
endpoint 是 gRPC 服务器的监听地址,例如 "unix:///var/run/kms-provider.sock"。
425+
<code>endpoint</code> 是 gRPC 服务器的监听地址,例如 "unix:///var/run/kms-provider.sock"。
414426
</p>
415427
</td>
416428
</tr>
@@ -422,7 +434,7 @@ KMSConfiguration 包含 KMS 型信封转换器所用的配置文件的名称、
422434
<!--
423435
timeout for gRPC calls to kms-plugin (ex. 5s). The default is 3 seconds.
424436
-->
425-
timeout 是 gRPC 调用到 KMS 插件的超时时间(例如 5s)。默认值为 3 秒。
437+
<code>timeout</code> 是 gRPC 调用到 KMS 插件的超时时间(例如 5s)。默认值为 3 秒。
426438
</p>
427439
</td>
428440
</tr>
@@ -449,7 +461,7 @@ Key 包含为转换器所提供的密钥的名称和 Secret。
449461
<table class="table">
450462
<thead><tr><th width="30%"><!--Field-->字段</th><th><!--Description-->描述</th></tr></thead>
451463
<tbody>
452-
464+
453465
<tr><td><code>name</code> <B><!--[Required]-->[必需]</B><br/>
454466
<code>string</code>
455467
</td>
@@ -458,7 +470,7 @@ Key 包含为转换器所提供的密钥的名称和 Secret。
458470
<!--
459471
name is the name of the key to be used while storing data to disk.
460472
-->
461-
name 是在将数据存储到磁盘时所使用的密钥名称。
473+
<code>name</code> 是在将数据存储到磁盘时所使用的密钥名称。
462474
</p>
463475
</td>
464476
</tr>
@@ -470,7 +482,7 @@ Key 包含为转换器所提供的密钥的名称和 Secret。
470482
<!--
471483
secret is the actual key, encoded in base64.
472484
-->
473-
secret 是实际的密钥,以 base64 编码。
485+
<code>secret</code> 是实际的密钥,以 base64 编码。
474486
</p>
475487
</td>
476488
</tr>
@@ -505,7 +517,7 @@ ProviderConfiguration 存储为加密驱动提供的配置。
505517
<!--
506518
aesgcm is the configuration for the AES-GCM transformer.
507519
-->
508-
aesgcm 是 AES-GCM 转换器的配置。
520+
<code>aesgcm</code> 是 AES-GCM 转换器的配置。
509521
</p>
510522
</td>
511523
</tr>
@@ -517,7 +529,7 @@ ProviderConfiguration 存储为加密驱动提供的配置。
517529
<!--
518530
aescbc is the configuration for the AES-CBC transformer.
519531
-->
520-
aescbc 是 AES-CBC 转换器的配置。
532+
<code>aescbc</code> 是 AES-CBC 转换器的配置。
521533
</p>
522534
</td>
523535
</tr>
@@ -529,7 +541,7 @@ ProviderConfiguration 存储为加密驱动提供的配置。
529541
<!--
530542
secretbox is the configuration for the Secretbox based transformer.
531543
-->
532-
secretbox 是基于 Secretbox 的转换器的配置。
544+
<code>secretbox</code> 是基于 Secretbox 的转换器的配置。
533545
</p>
534546
</td>
535547
</tr>
@@ -541,7 +553,7 @@ ProviderConfiguration 存储为加密驱动提供的配置。
541553
<!--
542554
identity is the (empty) configuration for the identity transformer.
543555
-->
544-
identity 是身份转换器的(空)配置。
556+
<code>identity</code> 是身份转换器的(空)配置。
545557
</p>
546558
</td>
547559
</tr>
@@ -553,7 +565,7 @@ ProviderConfiguration 存储为加密驱动提供的配置。
553565
<!--
554566
kms contains the name, cache size and path to configuration file for a KMS based envelope transformer.
555567
-->
556-
kms 包含 KMS 型信封转换器所用的配置文件的名称、缓存大小和路径。
568+
<code>kms</code> 包含 KMS 型信封转换器所用的配置文件的名称、缓存大小和路径。
557569
</p>
558570
</td>
559571
</tr>
@@ -592,13 +604,13 @@ Use '&ast;.&ast;' to encrypt all resources and '&ast;.&lt;group&gt;' to encrypt
592604
eg: '&ast;.awesome.bears.example' will encrypt all resources in the group 'awesome.bears.example'.
593605
eg: '&ast;.' will encrypt all resources in the core group (such as pods, configmaps, etc).
594606
-->
595-
resources 是一个需要加密的 Kubernetes 资源列表。
607+
<code>resources</code> 是一个需要加密的 Kubernetes 资源列表。
596608
资源名称来源于组/版本/资源的 “<code>resource</code>” 或 “<code>resource.group</code>”。
597609
例如,pandas.awesome.bears.example 是一个自定义资源,其 “group” 为 awesome.bears.example,
598610
“resource” 为 pandas。使用 “&ast;.&ast;” 以加密所有资源,使用 “&ast;.&lt;group&gt;” 以加密特定组中的所有资源。
599611
例如,“&ast;.awesome.bears.example” 将加密 “awesome.bears.example” 组中的所有资源。
600612
再比如,“&ast;.” 将加密核心组中的所有资源(如 Pod、ConfigMap 等)。
601-
</p>
613+
</p>
602614
</td>
603615
</tr>
604616
<tr><td><code>providers</code> <B><!--[Required]-->[必需]</B><br/>
@@ -610,9 +622,9 @@ eg: '&ast;.' will encrypt all resources in the core group (such as pods, configm
610622
providers is a list of transformers to be used for reading and writing the resources to disk.
611623
eg: aesgcm, aescbc, secretbox, identity, kms.
612624
-->
613-
providers 是从磁盘读取资源和写入资源到磁盘要使用的转换器的列表。
625+
<code>providers</code> 是从磁盘读取资源和写入资源到磁盘要使用的转换器的列表。
614626
例如:aesgcm、aescbc、secretbox、identity、kms。
615-
</p>
627+
</p>
616628
</td>
617629
</tr>
618630
</tbody>
@@ -647,7 +659,7 @@ SecretboxConfiguration 包含 Secretbox 转换器的 API 配置。
647659
keys is a list of keys to be used for creating the Secretbox transformer.
648660
Each key has to be 32 bytes long.
649661
-->
650-
keys 是一个用于创建 Secretbox 转换器的密钥列表。每个密钥的长度必须为 32 字节。
662+
<code>keys</code> 是一个用于创建 Secretbox 转换器的密钥列表。每个密钥的长度必须为 32 字节。
651663
</p>
652664
</td>
653665
</tr>
@@ -890,7 +902,7 @@ allowed for kube-apiserver.</li>
890902
Path to KubeConfigFile for connection info
891903
Required, if connectionInfo.Type is KubeConfig
892904
-->
893-
KubeConfig 文件的路径,用于获取连接信息。
905+
<code>kubeConfigFile</code> 文件的路径,用于获取连接信息。
894906
如果 <code>connectionInfo.type</code> 是 KubeConfig,则必需。
895907
</p>
896908
</td>
@@ -936,7 +948,8 @@ CEL 表达式可以访问 v1 版本中的 SubjectAccessReview 的内容。
936948
<li>'extra' corresponds to the user.Info.GetExtra() method from the authenticator.</li>
937949
<li>'uid' is the information about the requesting user. e.g. request.uid == '1'</li>
938950
-->
939-
<li>'resourceAttributes' 描述了资源访问请求的信息,在非资源请求中未设置。例如:<code>has(request.resourceAttributes) &amp;&amp; request.resourceAttributes.namespace == 'default'</code>。
951+
<li>'resourceAttributes' 描述了资源访问请求的信息,在非资源请求中未设置。
952+
例如:<code>has(request.resourceAttributes) &amp;&amp; request.resourceAttributes.namespace == 'default'</code>。
940953
</li>
941954
<li>'nonResourceAttributes' 描述了非资源访问请求的信息,在资源请求中未设置。例如:
942955
<code>has(request.nonResourceAttributes) &amp;&amp; request.nonResourceAttributes.path == '/healthz'</code>。
@@ -950,7 +963,7 @@ CEL 表达式可以访问 v1 版本中的 SubjectAccessReview 的内容。
950963
<!--
951964
Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
952965
-->
953-
关于 CEL 的文档:https://kubernetes.io/docs/reference/using-api/cel/
966+
关于 CEL 的文档:https://kubernetes.io/zh-cn/docs/reference/using-api/cel/
954967
</p>
955968
</td>
956969
</tr>

0 commit comments

Comments
 (0)