Skip to content

Commit 9b505ac

Browse files
authored
Merge pull request #52450 from my-git9/npe-30759
[zh-cn]sync kubectl_config_get-contexts.md
2 parents e29b43e + 699ca5d commit 9b505ac

File tree

1 file changed

+59
-46
lines changed

1 file changed

+59
-46
lines changed

content/zh-cn/docs/reference/kubectl/generated/kubectl_config/kubectl_config_get-contexts.md

Lines changed: 59 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ Output format. One of: (name).
9494
<td colspan="2">--as string</td>
9595
</tr>
9696
<tr>
97-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
97+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
98+
<p>
9899
<!--
99100
Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
100101
-->
@@ -106,7 +107,8 @@ Username to impersonate for the operation. User could be a regular user or a ser
106107
<td colspan="2">--as-group strings</td>
107108
</tr>
108109
<tr>
109-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
110+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
111+
<p>
110112
<!--
111113
Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
112114
-->
@@ -118,7 +120,8 @@ Group to impersonate for the operation, this flag can be repeated to specify mul
118120
<td colspan="2">--as-uid string</td>
119121
</tr>
120122
<tr>
121-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
123+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
124+
<p>
122125
<!--
123126
UID to impersonate for the operation.
124127
-->
@@ -130,7 +133,8 @@ UID to impersonate for the operation.
130133
<td colspan="2">--cache-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "$HOME/.kube/cache"-->默认值:"$HOME/.kube/cache"</td>
131134
</tr>
132135
<tr>
133-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
136+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
137+
<p>
134138
<!--
135139
Default cache directory
136140
-->
@@ -142,7 +146,8 @@ Default cache directory
142146
<td colspan="2">--certificate-authority string</td>
143147
</tr>
144148
<tr>
145-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
149+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
150+
<p>
146151
<!--
147152
Path to a cert file for the certificate authority
148153
-->
@@ -154,7 +159,8 @@ Path to a cert file for the certificate authority
154159
<td colspan="2">--client-certificate string</td>
155160
</tr>
156161
<tr>
157-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
162+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
163+
<p>
158164
<!--
159165
Path to a client certificate file for TLS
160166
-->
@@ -166,7 +172,8 @@ TLS 客户端证书文件的路径。
166172
<td colspan="2">--client-key string</td>
167173
</tr>
168174
<tr>
169-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
175+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
176+
<p>
170177
<!--
171178
Path to a client key file for TLS
172179
-->
@@ -178,7 +185,8 @@ TLS 客户端密钥文件的路径。
178185
<td colspan="2">--cluster string</td>
179186
</tr>
180187
<tr>
181-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
188+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
189+
<p>
182190
<!--
183191
The name of the kubeconfig cluster to use
184192
-->
@@ -190,43 +198,21 @@ The name of the kubeconfig cluster to use
190198
<td colspan="2">--context string</td>
191199
</tr>
192200
<tr>
193-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
201+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
202+
<p>
194203
<!--
195204
The name of the kubeconfig context to use
196205
-->
197206
要使用的 kubeconfig 上下文的名称。
198207
</p></td>
199208
</tr>
200209

201-
<tr>
202-
<td colspan="2">--default-not-ready-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: 300-->默认值:300</td>
203-
</tr>
204-
<tr>
205-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
206-
<!--
207-
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.
208-
-->
209-
设置针对 notReady:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
210-
</p></td>
211-
</tr>
212-
213-
<tr>
214-
<td colspan="2">--default-unreachable-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: 300-->默认值:300</td>
215-
</tr>
216-
<tr>
217-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
218-
<!--
219-
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.
220-
-->
221-
设置针对 unreachable:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
222-
</p></td>
223-
</tr>
224-
225210
<tr>
226211
<td colspan="2">--disable-compression</td>
227212
</tr>
228213
<tr>
229-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
214+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
215+
<p>
230216
<!--
231217
If true, opt-out of response compression for all requests to the server
232218
-->
@@ -238,7 +224,8 @@ If true, opt-out of response compression for all requests to the server
238224
<td colspan="2">--insecure-skip-tls-verify</td>
239225
</tr>
240226
<tr>
241-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
227+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
228+
<p>
242229
<!--
243230
If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
244231
-->
@@ -250,19 +237,36 @@ If true, the server's certificate will not be checked for validity. This will ma
250237
<td colspan="2">--kubeconfig string</td>
251238
</tr>
252239
<tr>
253-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
240+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
241+
<p>
254242
<!--
255243
Path to the kubeconfig file to use for CLI requests.
256244
-->
257245
CLI 请求要使用的 kubeconfig 文件的路径。
258246
</p></td>
259247
</tr>
260248

249+
<tr>
250+
<td colspan="2">--kuberc string</td>
251+
</tr>
252+
<tr>
253+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
254+
<p>
255+
<!--
256+
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.
257+
-->
258+
用于偏好设置的 kuberc 文件的路径。可以通过导出 KUBECTL_KUBERC=false
259+
特性门控或关闭 KUBERC=off 特性门控来禁用此功能。
260+
</p>
261+
</td>
262+
</tr>
263+
261264
<tr>
262265
<td colspan="2">--match-server-version</td>
263266
</tr>
264267
<tr>
265-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
268+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
269+
<p>
266270
<!--
267271
Require server version to match client version
268272
-->
@@ -274,7 +278,8 @@ Require server version to match client version
274278
<td colspan="2">-n, --namespace string</td>
275279
</tr>
276280
<tr>
277-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
281+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
282+
<p>
278283
<!--
279284
If present, the namespace scope for this CLI request
280285
-->
@@ -286,7 +291,8 @@ If present, the namespace scope for this CLI request
286291
<td colspan="2">--password string</td>
287292
</tr>
288293
<tr>
289-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
294+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
295+
<p>
290296
<!--
291297
Password for basic authentication to the API server
292298
-->
@@ -298,7 +304,8 @@ Password for basic authentication to the API server
298304
<td colspan="2">--profile string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "none"-->默认值:"none"</td>
299305
</tr>
300306
<tr>
301-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
307+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
308+
<p>
302309
<!--
303310
Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)
304311
-->
@@ -310,7 +317,8 @@ Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|m
310317
<td colspan="2">--profile-output string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "profile.pprof"-->默认值:"profile.pprof"</td>
311318
</tr>
312319
<tr>
313-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
320+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
321+
<p>
314322
<!--
315323
Name of the file to write the profile to
316324
-->
@@ -322,7 +330,8 @@ Name of the file to write the profile to
322330
<td colspan="2">--request-timeout string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "0"-->默认值:"0"</td>
323331
</tr>
324332
<tr>
325-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
333+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
334+
<p>
326335
<!--
327336
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.
328337
-->
@@ -335,7 +344,8 @@ The length of time to wait before giving up on a single server request. Non-zero
335344
<td colspan="2">-s, --server string</td>
336345
</tr>
337346
<tr>
338-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
347+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
348+
<p>
339349
<!--
340350
The address and port of the Kubernetes API server
341351
-->
@@ -347,7 +357,8 @@ Kubernetes API 服务器的地址和端口。
347357
<td colspan="2">--storage-driver-buffer-duration duration&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: 1m0s-->默认值:1m0s</td>
348358
</tr>
349359
<tr>
350-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
360+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
361+
<p>
351362
<!--
352363
Writes in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction
353364
-->
@@ -359,7 +370,8 @@ Writes in the storage driver will be buffered for this duration, and committed t
359370
<td colspan="2">--storage-driver-db string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "cadvisor"-->默认值:"cadvisor"</td>
360371
</tr>
361372
<tr>
362-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
373+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
374+
<p>
363375
<!--
364376
database name
365377
-->
@@ -371,7 +383,8 @@ database name
371383
<td colspan="2">--storage-driver-host string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "localhost:8086"-->默认值:"localhost:8086"</td>
372384
</tr>
373385
<tr>
374-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
386+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
387+
<p>
375388
<!--
376389
database host:port
377390
-->

0 commit comments

Comments
 (0)