Skip to content

Commit e9296cd

Browse files
committed
[zh-cn]sync client-authentication.v1
Signed-off-by: xin.li <[email protected]>
1 parent 26f35d0 commit e9296cd

File tree

1 file changed

+78
-32
lines changed

1 file changed

+78
-32
lines changed

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

Lines changed: 78 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ ExecCredential 由基于 exec 的插件使用,与 HTTP 传输组件沟通凭
3636
<a href="#client-authentication-k8s-io-v1-ExecCredentialSpec"><code>ExecCredentialSpec</code></a>
3737
</td>
3838
<td>
39-
<!--Spec holds information passed to the plugin by the transport.-->
39+
<!--
40+
Spec holds information passed to the plugin by the transport.
41+
-->
4042
字段 spec 包含由 HTTP 传输组件传递给插件的信息。
4143
</td>
4244
</tr>
@@ -45,8 +47,10 @@ ExecCredential 由基于 exec 的插件使用,与 HTTP 传输组件沟通凭
4547
<a href="#client-authentication-k8s-io-v1-ExecCredentialStatus"><code>ExecCredentialStatus</code></a>
4648
</td>
4749
<td>
48-
<!--Status is filled in by the plugin and holds the credentials that the transport
49-
should use to contact the API.-->
50+
<!--
51+
Status is filled in by the plugin and holds the credentials that the transport
52+
should use to contact the API.
53+
-->
5054
字段 status 由插件填充,包含传输组件与 API 服务器连接时需要提供的凭据。
5155
</td>
5256
</tr>
@@ -86,7 +90,9 @@ Cluster 中包含允许 exec 插件与 Kubernetes 集群进行通信身份认证
8690
<code>string</code>
8791
</td>
8892
<td>
89-
<!--Server is the address of the kubernetes cluster (https://hostname:port).-->
93+
<!--
94+
Server is the address of the kubernetes cluster (https://hostname:port).
95+
-->
9096
字段 server 是 Kubernetes 集群的地址(https://hostname:port)。
9197
</td>
9298
</tr>
@@ -95,9 +101,11 @@ Cluster 中包含允许 exec 插件与 Kubernetes 集群进行通信身份认证
95101
<code>string</code>
96102
</td>
97103
<td>
98-
<!--TLSServerName is passed to the server for SNI and is used in the client to
104+
<!--
105+
TLSServerName is passed to the server for SNI and is used in the client to
99106
check server certificates against. If ServerName is empty, the hostname
100-
used to contact the server is used.-->
107+
used to contact the server is used.
108+
-->
101109
tls-server-name 是用来提供给服务器用作 SNI 解析的,客户端以此检查服务器的证书。
102110
如此字段为空,则使用链接服务器时使用的主机名。
103111
</td>
@@ -107,8 +115,10 @@ Cluster 中包含允许 exec 插件与 Kubernetes 集群进行通信身份认证
107115
<code>bool</code>
108116
</td>
109117
<td>
110-
<!--InsecureSkipTLSVerify skips the validity check for the server's certificate.
111-
This will make your HTTPS connections insecure.-->
118+
<!--
119+
InsecureSkipTLSVerify skips the validity check for the server's certificate.
120+
This will make your HTTPS connections insecure.
121+
-->
112122
设置此字段之后,会令客户端跳过对服务器端证书的合法性检查。
113123
这会使得你的 HTTPS 链接不再安全。
114124
</td>
@@ -118,8 +128,10 @@ Cluster 中包含允许 exec 插件与 Kubernetes 集群进行通信身份认证
118128
<code>[]byte</code>
119129
</td>
120130
<td>
121-
<!--CAData contains PEM-encoded certificate authority certificates.
122-
If empty, system roots should be used.-->
131+
<!--
132+
CAData contains PEM-encoded certificate authority certificates.
133+
If empty, system roots should be used.
134+
-->
123135
此字段包含 PEM 编码的证书机构(CA)证书。
124136
如果为空,则使用系统的根证书。
125137
</td>
@@ -129,8 +141,10 @@ Cluster 中包含允许 exec 插件与 Kubernetes 集群进行通信身份认证
129141
<code>string</code>
130142
</td>
131143
<td>
132-
<!--ProxyURL is the URL to the proxy to be used for all requests to this
133-
cluster.-->
144+
<!--
145+
ProxyURL is the URL to the proxy to be used for all requests to this
146+
cluster.
147+
-->
134148
此字段用来设置向集群发送所有请求时要使用的代理服务器。
135149
</td>
136150
</tr>
@@ -139,31 +153,47 @@ Cluster 中包含允许 exec 插件与 Kubernetes 集群进行通信身份认证
139153
<code>bool</code>
140154
</td>
141155
<td>
156+
<p>
142157
<!--
143158
DisableCompression allows client to opt-out of response compression for all requests to the server. This is useful
144159
to speed up requests (specifically lists) when client-server network bandwidth is ample, by saving time on
145160
compression (server-side) and decompression (client-side): https://github.com/kubernetes/kubernetes/issues/112296.
146161
-->
147-
<p>disable-compression 允许客户端针对到服务器的所有请求选择取消响应压缩。
162+
disable-compression 允许客户端针对到服务器的所有请求选择取消响应压缩。
148163
当客户端服务器网络带宽充足时,这有助于通过节省压缩(服务器端)和解压缩(客户端)时间来加快请求(特别是列表)的速度:
149-
https://github.com/kubernetes/kubernetes/issues/112296。</p>
164+
https://github.com/kubernetes/kubernetes/issues/112296。
165+
</p>
150166
</td>
151167
</tr>
152168

153169
<tr><td><code>config</code><br/>
154170
<a href="https://godoc.org/k8s.io/apimachinery/pkg/runtime/#RawExtension"><code>k8s.io/apimachinery/pkg/runtime.RawExtension</code></a>
155171
</td>
156172
<td>
157-
<!--Config holds additional config data that is specific to the exec
173+
<p>
174+
<!--
175+
Config holds additional config data that is specific to the exec
158176
plugin with regards to the cluster being authenticated to.
159-
177+
-->
178+
</p>
179+
此字段包含一些额外的、特定于 exec 插件和所连接的集群的数据。
180+
<p>
160181
This data is sourced from the clientcmd Cluster object's
161182
extensions[client.authentication.k8s.io/exec] field:
162-
-->
163-
<p>此字段包含一些额外的、特定于 exec 插件和所连接的集群的数据,</p>
164-
<p>此字段来自于 clientcmd 集群对象的 <code>extensions[client.authentication.k8s.io/exec]</code>
165-
字段:</p>
183+
此字段来自于 clientcmd 集群对象的 <code>extensions[client.authentication.k8s.io/exec]</code>
184+
字段:
185+
</p>
166186
<pre>
187+
<!--
188+
clusters:
189+
- name: my-cluster
190+
cluster:
191+
...
192+
extensions:
193+
- name: client.authentication.k8s.io/exec # reserved extension name for per cluster exec config
194+
extension:
195+
audience: 06e3fbd18de8 # arbitrary config
196+
-->
167197
clusters:
168198
- name: my-cluster
169199
cluster:
@@ -174,17 +204,21 @@ clusters:
174204
audience: 06e3fbd18de8 # 任意配置信息
175205
</pre>
176206

177-
<!--In some environments, the user config may be exactly the same across many clusters
207+
<p>
208+
<!--
209+
In some environments, the user config may be exactly the same across many clusters
178210
(i.e. call this exec plugin) minus some details that are specific to each cluster
179211
such as the audience. This field allows the per cluster config to be directly
180212
specified with the cluster info. Using this field to store secret data is not
181213
recommended as one of the prime benefits of exec plugins is that no secrets need
182-
to be stored directly in the kubeconfig.-->
183-
<p>在某些环境中,用户配置可能对很多集群而言都完全一样(即调用同一个 exec 插件),
214+
to be stored directly in the kubeconfig.
215+
-->
216+
在某些环境中,用户配置可能对很多集群而言都完全一样(即调用同一个 exec 插件),
184217
只是针对不同集群会有一些细节上的差异,例如 audience。
185218
此字段使得特定于集群的配置可以直接使用集群信息来设置。
186219
不建议使用此字段来保存 Secret 数据,因为 exec 插件的主要优势之一是不需要在
187-
kubeconfig 中保存 Secret 数据。</p>
220+
kubeconfig 中保存 Secret 数据。
221+
</p>
188222
</td>
189223
</tr>
190224
</tbody>
@@ -213,10 +247,12 @@ ExecCredentialSpec 保存传输组件所提供的特定于请求和运行时的
213247
<a href="#client-authentication-k8s-io-v1-Cluster"><code>Cluster</code></a>
214248
</td>
215249
<td>
216-
<!--Cluster contains information to allow an exec plugin to communicate with the
250+
<!--
251+
Cluster contains information to allow an exec plugin to communicate with the
217252
kubernetes cluster being authenticated to. Note that Cluster is non-nil only
218253
when provideClusterInfo is set to true in the exec provider config (i.e.,
219-
ExecConfig.ProvideClusterInfo).-->
254+
ExecConfig.ProvideClusterInfo).
255+
-->
220256
此字段中包含的信息使得 exec 插件能够与要访问的 Kubernetes 集群通信。
221257
注意,cluster 字段只有在 exec 驱动的配置中 provideClusterInfo
222258
(即:ExecConfig.ProvideClusterInfo)被设置为 true 时才不能为空。
@@ -227,7 +263,9 @@ ExecCredentialSpec 保存传输组件所提供的特定于请求和运行时的
227263
<code>bool</code>
228264
</td>
229265
<td>
230-
<!--Interactive declares whether stdin has been passed to this exec plugin.-->
266+
<!--
267+
Interactive declares whether stdin has been passed to this exec plugin.
268+
-->
231269
此字段用来标明标准输出信息是否已传递给 exec 插件。
232270
</td>
233271
</tr>
@@ -259,10 +297,12 @@ itself should at least be protected via file permissions.
259297
<thead><tr><th width="30%"><!--Field-->字段</th><th><!--Description-->描述</th></tr></thead>
260298
<tbody>
261299
<tr><td><code>expirationTimestamp</code><br/>
262-
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.32/#time-v1-meta"><code>meta/v1.Time</code></a>
300+
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.33/#time-v1-meta"><code>meta/v1.Time</code></a>
263301
</td>
264302
<td>
265-
<!--ExpirationTimestamp indicates a time when the provided credentials expire.-->
303+
<!--
304+
ExpirationTimestamp indicates a time when the provided credentials expire.
305+
-->
266306
给出所提供的凭据到期的时间。
267307
</td>
268308
</tr>
@@ -271,7 +311,9 @@ itself should at least be protected via file permissions.
271311
<code>string</code>
272312
</td>
273313
<td>
274-
<!--Token is a bearer token used by the client for request authentication.-->
314+
<!--
315+
Token is a bearer token used by the client for request authentication.
316+
-->
275317
客户端用做请求身份认证的持有者令牌。
276318
</td>
277319
</tr>
@@ -280,7 +322,9 @@ itself should at least be protected via file permissions.
280322
<code>string</code>
281323
</td>
282324
<td>
283-
<!--PEM-encoded client TLS certificates (including intermediates, if any).-->
325+
<!--
326+
PEM-encoded client TLS certificates (including intermediates, if any).
327+
-->
284328
PEM 编码的客户端 TLS 证书(如果有临时证书,也会包含)。
285329
</td>
286330
</tr>
@@ -289,7 +333,9 @@ itself should at least be protected via file permissions.
289333
<code>string</code>
290334
</td>
291335
<td>
292-
<!--PEM-encoded private key for the above certificate.-->
336+
<!--
337+
PEM-encoded private key for the above certificate.
338+
-->
293339
与上述证书对应的、PEM 编码的私钥。
294340
</td>
295341
</tr>

0 commit comments

Comments
 (0)