Skip to content

Commit 1353259

Browse files
committed
[zh-cn]sync kubectl_config_set-context.md
Signed-off-by: xin.li <[email protected]>
1 parent 7a1e772 commit 1353259

File tree

1 file changed

+57
-45
lines changed

1 file changed

+57
-45
lines changed

content/zh-cn/docs/reference/kubectl/generated/kubectl_config/kubectl_config_set-context.md

Lines changed: 57 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ kubeconfig 中上下文条目的用户。
125125
<td colspan="2">--as string</td>
126126
</tr>
127127
<tr>
128-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
128+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
129+
<p>
129130
<!--
130131
Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
131132
-->
@@ -137,7 +138,8 @@ Username to impersonate for the operation. User could be a regular user or a ser
137138
<td colspan="2">--as-group strings</td>
138139
</tr>
139140
<tr>
140-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
141+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
142+
<p>
141143
<!--
142144
Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
143145
-->
@@ -149,7 +151,8 @@ Group to impersonate for the operation, this flag can be repeated to specify mul
149151
<td colspan="2">--as-uid string</td>
150152
</tr>
151153
<tr>
152-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
154+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
155+
<p>
153156
<!--
154157
UID to impersonate for the operation.
155158
-->
@@ -161,7 +164,8 @@ UID to impersonate for the operation.
161164
<td colspan="2">--cache-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "$HOME/.kube/cache"-->默认值:"$HOME/.kube/cache"</td>
162165
</tr>
163166
<tr>
164-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
167+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
168+
<p>
165169
<!--
166170
Default cache directory
167171
-->
@@ -173,7 +177,8 @@ Default cache directory
173177
<td colspan="2">--certificate-authority string</td>
174178
</tr>
175179
<tr>
176-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
180+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
181+
<p>
177182
<!--
178183
Path to a cert file for the certificate authority
179184
-->
@@ -185,7 +190,8 @@ Path to a cert file for the certificate authority
185190
<td colspan="2">--client-certificate string</td>
186191
</tr>
187192
<tr>
188-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
193+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
194+
<p>
189195
<!--
190196
Path to a client certificate file for TLS
191197
-->
@@ -197,7 +203,8 @@ TLS 客户端证书文件的路径。
197203
<td colspan="2">--client-key string</td>
198204
</tr>
199205
<tr>
200-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
206+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
207+
<p>
201208
<!--
202209
Path to a client key file for TLS
203210
-->
@@ -209,7 +216,8 @@ TLS 客户端密钥文件的路径。
209216
<td colspan="2">--cluster string</td>
210217
</tr>
211218
<tr>
212-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
219+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
220+
<p>
213221
<!--
214222
The name of the kubeconfig cluster to use
215223
-->
@@ -221,43 +229,21 @@ The name of the kubeconfig cluster to use
221229
<td colspan="2">--context string</td>
222230
</tr>
223231
<tr>
224-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
232+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
233+
<p>
225234
<!--
226235
The name of the kubeconfig context to use
227236
-->
228237
要使用的 kubeconfig 上下文的名称。
229238
</p></td>
230239
</tr>
231240

232-
<tr>
233-
<td colspan="2">--default-not-ready-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: 300-->默认值:300</td>
234-
</tr>
235-
<tr>
236-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
237-
<!--
238-
Indicates the tolerationSeconds of the toleration for notReady:NoExecute that is added by default to every pod that does not already have such a toleration.
239-
-->
240-
设置针对 notReady:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
241-
</p></td>
242-
</tr>
243-
244-
<tr>
245-
<td colspan="2">--default-unreachable-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: 300-->默认值:300</td>
246-
</tr>
247-
<tr>
248-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
249-
<!--
250-
Indicates the tolerationSeconds of the toleration for unreachable:NoExecute that is added by default to every pod that does not already have such a toleration.
251-
-->
252-
设置针对 unreachable:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
253-
</p></td>
254-
</tr>
255-
256241
<tr>
257242
<td colspan="2">--disable-compression</td>
258243
</tr>
259244
<tr>
260-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
245+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
246+
<p>
261247
<!--
262248
If true, opt-out of response compression for all requests to the server
263249
-->
@@ -269,7 +255,8 @@ If true, opt-out of response compression for all requests to the server
269255
<td colspan="2">--insecure-skip-tls-verify</td>
270256
</tr>
271257
<tr>
272-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
258+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
259+
<p>
273260
<!--
274261
If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
275262
-->
@@ -281,14 +268,30 @@ If true, the server's certificate will not be checked for validity. This will ma
281268
<td colspan="2">--kubeconfig string</td>
282269
</tr>
283270
<tr>
284-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
271+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
272+
<p>
285273
<!--
286274
Path to the kubeconfig file to use for CLI requests.
287275
-->
288276
CLI 请求要使用的 kubeconfig 文件的路径。
289277
</p></td>
290278
</tr>
291279

280+
<tr>
281+
<td colspan="2">--kuberc string</td>
282+
</tr>
283+
<tr>
284+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
285+
<p>
286+
<!--
287+
Path to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.
288+
-->
289+
用于偏好设置的 kuberc 文件的路径。可以通过导出 KUBECTL_KUBERC=false
290+
特性门控或关闭 KUBERC=off 特性门控来禁用此功能。
291+
</p>
292+
</td>
293+
</tr>
294+
292295
<tr>
293296
<td colspan="2">--match-server-version</td>
294297
</tr>
@@ -305,7 +308,8 @@ Require server version to match client version
305308
<td colspan="2">-n, --namespace string</td>
306309
</tr>
307310
<tr>
308-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
311+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
312+
<p>
309313
<!--
310314
If present, the namespace scope for this CLI request
311315
-->
@@ -317,7 +321,8 @@ If present, the namespace scope for this CLI request
317321
<td colspan="2">--password string</td>
318322
</tr>
319323
<tr>
320-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
324+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
325+
<p>
321326
<!--
322327
Password for basic authentication to the API server
323328
-->
@@ -329,7 +334,8 @@ Password for basic authentication to the API server
329334
<td colspan="2">--profile string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "none"-->默认值:"none"</td>
330335
</tr>
331336
<tr>
332-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
337+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
338+
<p>
333339
<!--
334340
Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)
335341
-->
@@ -341,7 +347,8 @@ Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|m
341347
<td colspan="2">--profile-output string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "profile.pprof"-->默认值:"profile.pprof"</td>
342348
</tr>
343349
<tr>
344-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
350+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
351+
<p>
345352
<!--
346353
Name of the file to write the profile to
347354
-->
@@ -353,7 +360,8 @@ Name of the file to write the profile to
353360
<td colspan="2">--request-timeout string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "0"-->默认值:"0"</td>
354361
</tr>
355362
<tr>
356-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
363+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
364+
<p>
357365
<!--
358366
The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests.
359367
-->
@@ -366,7 +374,8 @@ The length of time to wait before giving up on a single server request. Non-zero
366374
<td colspan="2">-s, --server string</td>
367375
</tr>
368376
<tr>
369-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
377+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
378+
<p>
370379
<!--
371380
The address and port of the Kubernetes API server
372381
-->
@@ -378,7 +387,8 @@ Kubernetes API 服务器的地址和端口。
378387
<td colspan="2">--storage-driver-buffer-duration duration&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: 1m0s-->默认值:1m0s</td>
379388
</tr>
380389
<tr>
381-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
390+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
391+
<p>
382392
<!--
383393
Writes in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction
384394
-->
@@ -390,7 +400,8 @@ Writes in the storage driver will be buffered for this duration, and committed t
390400
<td colspan="2">--storage-driver-db string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "cadvisor"-->默认值:"cadvisor"</td>
391401
</tr>
392402
<tr>
393-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
403+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
404+
<p>
394405
<!--
395406
database name
396407
-->
@@ -402,7 +413,8 @@ database name
402413
<td colspan="2">--storage-driver-host string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "localhost:8086"-->默认值:"localhost:8086"</td>
403414
</tr>
404415
<tr>
405-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
416+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
417+
<p>
406418
<!--
407419
database host:port
408420
-->

0 commit comments

Comments
 (0)