Skip to content

Commit 10edfc6

Browse files
committed
[zh-cn]sync kubectl_config_current-context.md
Signed-off-by: xin.li <[email protected]>
1 parent 2dcb7b0 commit 10edfc6

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_current-context.md

Lines changed: 57 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ help for current-context
7070
<td colspan="2">--as string</td>
7171
</tr>
7272
<tr>
73-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
73+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
74+
<p>
7475
<!--
7576
Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
7677
-->
@@ -82,7 +83,8 @@ Username to impersonate for the operation. User could be a regular user or a ser
8283
<td colspan="2">--as-group strings</td>
8384
</tr>
8485
<tr>
85-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
86+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
87+
<p>
8688
<!--
8789
Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
8890
-->
@@ -94,7 +96,8 @@ Group to impersonate for the operation, this flag can be repeated to specify mul
9496
<td colspan="2">--as-uid string</td>
9597
</tr>
9698
<tr>
97-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
99+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
100+
<p>
98101
<!--
99102
UID to impersonate for the operation.
100103
-->
@@ -106,7 +109,8 @@ UID to impersonate for the operation.
106109
<td colspan="2">--cache-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "$HOME/.kube/cache"-->默认值:"$HOME/.kube/cache"</td>
107110
</tr>
108111
<tr>
109-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
112+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
113+
<p>
110114
<!--
111115
Default cache directory
112116
-->
@@ -118,7 +122,8 @@ Default cache directory
118122
<td colspan="2">--certificate-authority string</td>
119123
</tr>
120124
<tr>
121-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
125+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
126+
<p>
122127
<!--
123128
Path to a cert file for the certificate authority
124129
-->
@@ -130,7 +135,8 @@ Path to a cert file for the certificate authority
130135
<td colspan="2">--client-certificate string</td>
131136
</tr>
132137
<tr>
133-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
138+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
139+
<p>
134140
<!--
135141
Path to a client certificate file for TLS
136142
-->
@@ -142,7 +148,8 @@ TLS 客户端证书文件的路径。
142148
<td colspan="2">--client-key string</td>
143149
</tr>
144150
<tr>
145-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
151+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
152+
<p>
146153
<!--
147154
Path to a client key file for TLS
148155
-->
@@ -154,7 +161,8 @@ TLS 客户端密钥文件的路径。
154161
<td colspan="2">--cluster string</td>
155162
</tr>
156163
<tr>
157-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
164+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
165+
<p>
158166
<!--
159167
The name of the kubeconfig cluster to use
160168
-->
@@ -166,43 +174,21 @@ The name of the kubeconfig cluster to use
166174
<td colspan="2">--context string</td>
167175
</tr>
168176
<tr>
169-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
177+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
178+
<p>
170179
<!--
171180
The name of the kubeconfig context to use
172181
-->
173182
要使用的 kubeconfig 上下文的名称。
174183
</p></td>
175184
</tr>
176185

177-
<tr>
178-
<td colspan="2">--default-not-ready-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: 300-->默认值:300</td>
179-
</tr>
180-
<tr>
181-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
182-
<!--
183-
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.
184-
-->
185-
设置针对 notReady:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
186-
</p></td>
187-
</tr>
188-
189-
<tr>
190-
<td colspan="2">--default-unreachable-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: 300-->默认值:300</td>
191-
</tr>
192-
<tr>
193-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
194-
<!--
195-
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.
196-
-->
197-
设置针对 unreachable:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
198-
</p></td>
199-
</tr>
200-
201186
<tr>
202187
<td colspan="2">--disable-compression</td>
203188
</tr>
204189
<tr>
205-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
190+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
191+
<p>
206192
<!--
207193
If true, opt-out of response compression for all requests to the server
208194
-->
@@ -214,7 +200,8 @@ If true, opt-out of response compression for all requests to the server
214200
<td colspan="2">--insecure-skip-tls-verify</td>
215201
</tr>
216202
<tr>
217-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
203+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
204+
<p>
218205
<!--
219206
If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
220207
-->
@@ -226,19 +213,36 @@ If true, the server's certificate will not be checked for validity. This will ma
226213
<td colspan="2">--kubeconfig string</td>
227214
</tr>
228215
<tr>
229-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
216+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
217+
<p>
230218
<!--
231219
Path to the kubeconfig file to use for CLI requests.
232220
-->
233221
CLI 请求要使用的 kubeconfig 文件的路径。
234222
</p></td>
235223
</tr>
236224

225+
<tr>
226+
<td colspan="2">--kuberc string</td>
227+
</tr>
228+
<tr>
229+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
230+
<p>
231+
<!--
232+
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.
233+
-->
234+
用于偏好设置的 kuberc 文件的路径。可以通过导出 KUBECTL_KUBERC=false
235+
特性门控或关闭 KUBERC=off 特性门控来禁用此功能。
236+
</p>
237+
</td>
238+
</tr>
239+
237240
<tr>
238241
<td colspan="2">--match-server-version</td>
239242
</tr>
240243
<tr>
241-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
244+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
245+
<p>
242246
<!--
243247
Require server version to match client version
244248
-->
@@ -250,7 +254,8 @@ Require server version to match client version
250254
<td colspan="2">-n, --namespace string</td>
251255
</tr>
252256
<tr>
253-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
257+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
258+
<p>
254259
<!--
255260
If present, the namespace scope for this CLI request
256261
-->
@@ -262,7 +267,8 @@ If present, the namespace scope for this CLI request
262267
<td colspan="2">--password string</td>
263268
</tr>
264269
<tr>
265-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
270+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
271+
<p>
266272
<!--
267273
Password for basic authentication to the API server
268274
-->
@@ -274,7 +280,8 @@ Password for basic authentication to the API server
274280
<td colspan="2">--profile string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "none"-->默认值:"none"</td>
275281
</tr>
276282
<tr>
277-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
283+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
284+
<p>
278285
<!--
279286
Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)
280287
-->
@@ -286,7 +293,8 @@ Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|m
286293
<td colspan="2">--profile-output string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "profile.pprof"-->默认值:"profile.pprof"</td>
287294
</tr>
288295
<tr>
289-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
296+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
297+
<p>
290298
<!--
291299
Name of the file to write the profile to
292300
-->
@@ -298,7 +306,8 @@ Name of the file to write the profile to
298306
<td colspan="2">--request-timeout string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "0"-->默认值:"0"</td>
299307
</tr>
300308
<tr>
301-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
309+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
310+
<p>
302311
<!--
303312
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.
304313
-->
@@ -311,7 +320,8 @@ The length of time to wait before giving up on a single server request. Non-zero
311320
<td colspan="2">-s, --server string</td>
312321
</tr>
313322
<tr>
314-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
323+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
324+
<p>
315325
<!--
316326
The address and port of the Kubernetes API server
317327
-->
@@ -323,7 +333,8 @@ Kubernetes API 服务器的地址和端口。
323333
<td colspan="2">--storage-driver-buffer-duration duration&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: 1m0s-->默认值:1m0s</td>
324334
</tr>
325335
<tr>
326-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
336+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
337+
<p>
327338
<!--
328339
Writes in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction
329340
-->
@@ -335,7 +346,8 @@ Writes in the storage driver will be buffered for this duration, and committed t
335346
<td colspan="2">--storage-driver-db string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "cadvisor"-->默认值:"cadvisor"</td>
336347
</tr>
337348
<tr>
338-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
349+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
350+
<p>
339351
<!--
340352
database name
341353
-->

0 commit comments

Comments
 (0)