Skip to content

Commit 531a339

Browse files
authored
Merge pull request #52301 from my-git9/npa-23573
[zh-cn]sync kubectl.md
2 parents 8fc41f1 + bf63370 commit 531a339

File tree

1 file changed

+62
-48
lines changed
  • content/zh-cn/docs/reference/kubectl/generated

1 file changed

+62
-48
lines changed

content/zh-cn/docs/reference/kubectl/generated/kubectl.md

Lines changed: 62 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ kubectl [flags]
2828

2929
## {{% heading "options" %}}
3030

31-
<table style="width: 100%; table-layout: fixed;">
31+
<table style="width: 100%; table-layout: fixed;">
3232
<colgroup>
3333
<col span="1" style="width: 10px;" />
3434
<col span="1" />
@@ -39,7 +39,8 @@ kubectl [flags]
3939
<td colspan="2">--as string</td>
4040
</tr>
4141
<tr>
42-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
42+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
43+
<p>
4344
<!--
4445
Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
4546
-->
@@ -51,7 +52,8 @@ Username to impersonate for the operation. User could be a regular user or a ser
5152
<td colspan="2">--as-group strings</td>
5253
</tr>
5354
<tr>
54-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
55+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
56+
<p>
5557
<!--
5658
Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
5759
-->
@@ -63,7 +65,8 @@ Group to impersonate for the operation, this flag can be repeated to specify mul
6365
<td colspan="2">--as-uid string</td>
6466
</tr>
6567
<tr>
66-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
68+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
69+
<p>
6770
<!--
6871
UID to impersonate for the operation.
6972
-->
@@ -75,7 +78,8 @@ UID to impersonate for the operation.
7578
<td colspan="2">--cache-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"$HOME/.kube/cache"</td>
7679
</tr>
7780
<tr>
78-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
81+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
82+
<p>
7983
<!--
8084
Default cache directory
8185
-->
@@ -87,7 +91,8 @@ Default cache directory
8791
<td colspan="2">--certificate-authority string</td>
8892
</tr>
8993
<tr>
90-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
94+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
95+
<p>
9196
<!--
9297
Path to a cert file for the certificate authority
9398
-->
@@ -99,7 +104,8 @@ Path to a cert file for the certificate authority
99104
<td colspan="2">--client-certificate string</td>
100105
</tr>
101106
<tr>
102-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
107+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
108+
<p>
103109
<!--
104110
Path to a client certificate file for TLS
105111
-->
@@ -111,7 +117,8 @@ TLS 客户端证书文件的路径。
111117
<td colspan="2">--client-key string</td>
112118
</tr>
113119
<tr>
114-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
120+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
121+
<p>
115122
<!--
116123
Path to a client key file for TLS
117124
-->
@@ -123,7 +130,8 @@ TLS 客户端密钥文件的路径。
123130
<td colspan="2">--cluster string</td>
124131
</tr>
125132
<tr>
126-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
133+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
134+
<p>
127135
<!--
128136
The name of the kubeconfig cluster to use
129137
-->
@@ -135,43 +143,21 @@ The name of the kubeconfig cluster to use
135143
<td colspan="2">--context string</td>
136144
</tr>
137145
<tr>
138-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
146+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
147+
<p>
139148
<!--
140149
The name of the kubeconfig context to use
141150
-->
142151
要使用的 kubeconfig 上下文的名称。
143152
</p></td>
144153
</tr>
145154

146-
<tr>
147-
<td colspan="2">--default-not-ready-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:300</td>
148-
</tr>
149-
<tr>
150-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
151-
<!--
152-
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.
153-
-->
154-
设置针对 notReady:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
155-
</p></td>
156-
</tr>
157-
158-
<tr>
159-
<td colspan="2">--default-unreachable-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:300</td>
160-
</tr>
161-
<tr>
162-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
163-
<!--
164-
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.
165-
-->
166-
设置针对 unreachable:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
167-
</p></td>
168-
</tr>
169-
170155
<tr>
171156
<td colspan="2">--disable-compression</td>
172157
</tr>
173158
<tr>
174-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
159+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
160+
<p>
175161
<!--
176162
If true, opt-out of response compression for all requests to the server
177163
-->
@@ -183,7 +169,8 @@ If true, opt-out of response compression for all requests to the server
183169
<td colspan="2">-h, --help</td>
184170
</tr>
185171
<tr>
186-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
172+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
173+
<p>
187174
<!--
188175
help for kubectl
189176
-->
@@ -195,7 +182,8 @@ kubectl 操作的帮助命令。
195182
<td colspan="2">--insecure-skip-tls-verify</td>
196183
</tr>
197184
<tr>
198-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
185+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
186+
<p>
199187
<!--
200188
If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
201189
-->
@@ -207,19 +195,36 @@ If true, the server's certificate will not be checked for validity. This will ma
207195
<td colspan="2">--kubeconfig string</td>
208196
</tr>
209197
<tr>
210-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
198+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
199+
<p>
211200
<!--
212201
Path to the kubeconfig file to use for CLI requests.
213202
-->
214203
CLI 请求要使用的 kubeconfig 文件的路径。
215204
</p></td>
216205
</tr>
217206

207+
<tr>
208+
<td colspan="2">--kuberc string</td>
209+
</tr>
210+
<tr>
211+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
212+
<p>
213+
<!--
214+
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.
215+
-->
216+
用于偏好设置的 kuberc 文件的路径。可以通过导出 KUBECTL_KUBERC=false
217+
特性门控或关闭 KUBERC=off 特性门控来禁用此功能。
218+
</p>
219+
</td>
220+
</tr>
221+
218222
<tr>
219223
<td colspan="2">--match-server-version</td>
220224
</tr>
221225
<tr>
222-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
226+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
227+
<p>
223228
<!--
224229
Require server version to match client version
225230
-->
@@ -231,7 +236,8 @@ Require server version to match client version
231236
<td colspan="2">-n, --namespace string</td>
232237
</tr>
233238
<tr>
234-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
239+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
240+
<p>
235241
<!--
236242
If present, the namespace scope for this CLI request
237243
-->
@@ -243,7 +249,8 @@ If present, the namespace scope for this CLI request
243249
<td colspan="2">--password string</td>
244250
</tr>
245251
<tr>
246-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
252+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
253+
<p>
247254
<!--
248255
Password for basic authentication to the API server
249256
-->
@@ -255,7 +262,8 @@ Password for basic authentication to the API server
255262
<td colspan="2">--profile string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"none"</td>
256263
</tr>
257264
<tr>
258-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
265+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
266+
<p>
259267
<!--
260268
Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)
261269
-->
@@ -267,7 +275,8 @@ Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|m
267275
<td colspan="2">--profile-output string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"profile.pprof"</td>
268276
</tr>
269277
<tr>
270-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
278+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
279+
<p>
271280
<!--
272281
Name of the file to write the profile to
273282
-->
@@ -279,7 +288,8 @@ Name of the file to write the profile to
279288
<td colspan="2">--request-timeout string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"0"</td>
280289
</tr>
281290
<tr>
282-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
291+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
292+
<p>
283293
<!--
284294
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.
285295
-->
@@ -316,7 +326,8 @@ Writes in the storage driver will be buffered for this duration, and committed t
316326
<td colspan="2">--storage-driver-db string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"cadvisor"</td>
317327
</tr>
318328
<tr>
319-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
329+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
330+
<p>
320331
<!--
321332
database name
322333
-->
@@ -328,7 +339,8 @@ database name
328339
<td colspan="2">--storage-driver-host string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"localhost:8086"</td>
329340
</tr>
330341
<tr>
331-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
342+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
343+
<p>
332344
<!--
333345
database host:port
334346
-->
@@ -340,7 +352,8 @@ database host:port
340352
<td colspan="2">--storage-driver-password string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"root"</td>
341353
</tr>
342354
<tr>
343-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
355+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
356+
<p>
344357
<!--
345358
database password
346359
-->
@@ -364,7 +377,8 @@ use secure connection with database
364377
<td colspan="2">--storage-driver-table string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"stats"</td>
365378
</tr>
366379
<tr>
367-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
380+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
381+
<p>
368382
<!--
369383
table name
370384
-->

0 commit comments

Comments
 (0)