@@ -27,7 +27,10 @@ kubectl version [flags]
2727## {{% heading "examples" %}}
2828
2929<!--
30+ ```
3031# Print the client and server versions for the current context
32+ kubectl version
33+ ```
3134-->
3235``` shell
3336# 打印当前上下文的客户端和服务器版本
@@ -47,7 +50,8 @@ kubectl version
4750<td colspan =" 2 " >--client</td >
4851</tr >
4952<tr >
50- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
53+ <td ></td >
54+ <td style =" line-height : 130% ; word-wrap : break-word ;" >
5155<p >
5256<!--
5357If true, shows client version only (no server required).
@@ -61,7 +65,8 @@ If true, shows client version only (no server required).
6165<td colspan =" 2 " >-h, --help</td >
6266</tr >
6367<tr >
64- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
68+ <td ></td >
69+ <td style =" line-height : 130% ; word-wrap : break-word ;" >
6570<p >
6671<!--
6772help for version
@@ -75,7 +80,8 @@ help for version
7580<td colspan =" 2 " >-o, --output string</td >
7681</tr >
7782<tr >
78- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
83+ <td ></td >
84+ <td style =" line-height : 130% ; word-wrap : break-word ;" >
7985<p >
8086<!--
8187One of 'yaml' or 'json'.
@@ -88,11 +94,9 @@ One of 'yaml' or 'json'.
8894</tbody >
8995</table >
9096
91-
92-
9397## {{% heading "parentoptions" %}}
9498
95- <table style =" width : 100% ; table-layout : fixed ;" >
99+ <table style =" width : 100% ; table-layout : fixed ;" >
96100<colgroup >
97101<col span =" 1 " style =" width : 10px ;" />
98102<col span =" 1 " />
@@ -103,7 +107,8 @@ One of 'yaml' or 'json'.
103107<td colspan =" 2 " >--as string</td >
104108</tr >
105109<tr >
106- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
110+ <td ></td >
111+ <td style =" line-height : 130% ; word-wrap : break-word ;" >
107112<p >
108113<!--
109114Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
@@ -117,7 +122,8 @@ Username to impersonate for the operation. User could be a regular user or a ser
117122<td colspan =" 2 " >--as-group strings</td >
118123</tr >
119124<tr >
120- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
125+ <td ></td >
126+ <td style =" line-height : 130% ; word-wrap : break-word ;" >
121127<p >
122128<!--
123129Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
@@ -131,7 +137,8 @@ Group to impersonate for the operation, this flag can be repeated to specify mul
131137<td colspan =" 2 " >--as-uid string</td >
132138</tr >
133139<tr >
134- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
140+ <td ></td >
141+ <td style =" line-height : 130% ; word-wrap : break-word ;" >
135142<p >
136143<!--
137144UID to impersonate for the operation.
@@ -145,7 +152,8 @@ UID to impersonate for the operation.
145152<td colspan =" 2 " >--cache-dir string  ;  ;  ;  ;  ; Default: "$HOME/.kube/cache"</td >
146153</tr >
147154<tr >
148- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
155+ <td ></td >
156+ <td style =" line-height : 130% ; word-wrap : break-word ;" >
149157<p >
150158<!--
151159Default cache directory
@@ -159,7 +167,8 @@ Default cache directory
159167<td colspan =" 2 " >--certificate-authority string</td >
160168</tr >
161169<tr >
162- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
170+ <td ></td >
171+ <td style =" line-height : 130% ; word-wrap : break-word ;" >
163172<p >
164173<!--
165174Path to a cert file for the certificate authority
@@ -173,7 +182,8 @@ Path to a cert file for the certificate authority
173182<td colspan =" 2 " >--client-certificate string</td >
174183</tr >
175184<tr >
176- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
185+ <td ></td >
186+ <td style =" line-height : 130% ; word-wrap : break-word ;" >
177187<p >
178188<!--
179189Path to a client certificate file for TLS
@@ -187,7 +197,8 @@ TLS 客户端证书文件的路径。
187197<td colspan =" 2 " >--client-key string</td >
188198</tr >
189199<tr >
190- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
200+ <td ></td >
201+ <td style =" line-height : 130% ; word-wrap : break-word ;" >
191202<p >
192203<!--
193204Path to a client key file for TLS
@@ -202,7 +213,8 @@ TLS 客户端密钥文件的路径。
202213</tr >
203214<tr >
204215<td >
205- </td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
216+ </td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
217+ <p >
206218<!--
207219The name of the kubeconfig cluster to use
208220-->
@@ -215,7 +227,8 @@ The name of the kubeconfig cluster to use
215227<td colspan =" 2 " >--context string</td >
216228</tr >
217229<tr >
218- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
230+ <td ></td >
231+ <td style =" line-height : 130% ; word-wrap : break-word ;" >
219232<p >
220233<!--
221234The name of the kubeconfig context to use
@@ -226,71 +239,62 @@ The name of the kubeconfig context to use
226239</tr >
227240
228241<tr >
229- <td colspan =" 2 " >--default-not-ready-toleration-seconds int  ;  ;  ;  ;  ; <!-- Default: 300--> 默认值:300</td >
230- </tr >
231- <tr >
232- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
233- <p >
234- <!--
235- 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.
236- -->
237- 设置针对 notReady: NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
238- </p >
239- </td >
240- </tr >
241-
242- <tr >
243- <td colspan =" 2 " >--default-unreachable-toleration-seconds int  ;  ;  ;  ;  ; <!-- Default: 300--> 默认值:300</td >
242+ <td colspan =" 2 " >--disable-compression</td >
244243</tr >
245244<tr >
246- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
245+ <td ></td >
246+ <td style =" line-height : 130% ; word-wrap : break-word ;" >
247247<p >
248248<!--
249- 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.
249+ If true, opt-out of response compression for all requests to the server
250250-->
251- 设置针对 unreachable : NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod 。
251+ 如果为 true,则对服务器所有请求的响应不再压缩 。
252252</p >
253253</td >
254254</tr >
255255
256256<tr >
257- <td colspan =" 2 " >--disable-compression </td >
257+ <td colspan =" 2 " >--insecure-skip-tls-verify </td >
258258</tr >
259259<tr >
260- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
260+ <td ></td >
261+ <td style =" line-height : 130% ; word-wrap : break-word ;" >
261262<p >
262263<!--
263- If true, opt-out of response compression for all requests to the server
264+ If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
264265-->
265- 如果为 true,则对服务器所有请求的响应不再压缩 。
266+ 如果为 true,则不检查服务器证书的有效性。这将使你的 HTTPS 连接不安全 。
266267</p >
267268</td >
268269</tr >
269270
270271<tr >
271- <td colspan =" 2 " >--insecure-skip-tls-verify </td >
272+ <td colspan =" 2 " >--kubeconfig string </td >
272273</tr >
273274<tr >
274- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
275+ <td ></td >
276+ <td style =" line-height : 130% ; word-wrap : break-word ;" >
275277<p >
276278<!--
277- If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
279+ Path to the kubeconfig file to use for CLI requests.
278280-->
279- 如果为 true,则不检查服务器证书的有效性。这将使你的 HTTPS 连接不安全 。
281+ CLI 请求要使用的 kubeconfig 文件的路径 。
280282</p >
281283</td >
282284</tr >
283285
284286<tr >
285- <td colspan =" 2 " >--kubeconfig string</td >
287+ <td colspan =" 2 " >--kuberc string</td >
286288</tr >
287289<tr >
288- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
290+ <td ></td >
291+ <td style =" line-height : 130% ; word-wrap : break-word ;" >
289292<p >
290293<!--
291- Path to the kubeconfig file to use for CLI requests .
294+ 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 .
292295-->
293- CLI 请求要使用的 kubeconfig 文件的路径。
296+ 用于偏好设置的 kuberc 文件的路径。可以通过导出 KUBECTL_KUBERC=false
297+ 特性门控或关闭 KUBERC=off 特性门控来禁用此功能。
294298</p >
295299</td >
296300</tr >
@@ -299,7 +303,8 @@ CLI 请求要使用的 kubeconfig 文件的路径。
299303<td colspan =" 2 " >--match-server-version</td >
300304</tr >
301305<tr >
302- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
306+ <td ></td >
307+ <td style =" line-height : 130% ; word-wrap : break-word ;" >
303308<p >
304309<!--
305310Require server version to match client version
@@ -313,7 +318,8 @@ Require server version to match client version
313318<td colspan =" 2 " >-n, --namespace string</td >
314319</tr >
315320<tr >
316- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
321+ <td ></td >
322+ <td style =" line-height : 130% ; word-wrap : break-word ;" >
317323<p >
318324<!--
319325If present, the namespace scope for this CLI request
0 commit comments