@@ -26,7 +26,10 @@ kubectl options [flags]
2626## {{% heading "examples" %}}
2727
2828<!--
29+ ```
2930# Print flags inherited by all commands
31+ kubectl options
32+ ```
3033-->
3134``` shell
3235# 打印被所有命令继承的标志
@@ -71,7 +74,8 @@ help for options
7174<td colspan =" 2 " >--as string</td >
7275</tr >
7376<tr >
74- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
77+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
78+ <p >
7579<!--
7680Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
7781-->
@@ -83,7 +87,8 @@ Username to impersonate for the operation. User could be a regular user or a ser
8387<td colspan =" 2 " >--as-group strings</td >
8488</tr >
8589<tr >
86- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
90+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
91+ <p >
8792<!--
8893Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
8994-->
@@ -95,7 +100,8 @@ Group to impersonate for the operation, this flag can be repeated to specify mul
95100<td colspan =" 2 " >--as-uid string</td >
96101</tr >
97102<tr >
98- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
103+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
104+ <p >
99105<!--
100106UID to impersonate for the operation.
101107-->
@@ -107,7 +113,8 @@ UID to impersonate for the operation.
107113<td colspan =" 2 " >--cache-dir string  ;  ;  ;  ;  ; <!-- Default: "$HOME/.kube/cache"--> 默认值:"$HOME/.kube/cache"</td >
108114</tr >
109115<tr >
110- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
116+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
117+ <p >
111118<!--
112119Default cache directory
113120-->
@@ -119,7 +126,8 @@ Default cache directory
119126<td colspan =" 2 " >--certificate-authority string</td >
120127</tr >
121128<tr >
122- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
129+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
130+ <p >
123131<!--
124132Path to a cert file for the certificate authority
125133-->
@@ -131,7 +139,8 @@ Path to a cert file for the certificate authority
131139<td colspan =" 2 " >--client-certificate string</td >
132140</tr >
133141<tr >
134- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
142+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
143+ <p >
135144<!--
136145Path to a client certificate file for TLS
137146-->
@@ -143,7 +152,8 @@ TLS 客户端证书文件的路径。
143152<td colspan =" 2 " >--client-key string</td >
144153</tr >
145154<tr >
146- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
155+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
156+ <p >
147157<!--
148158Path to a client key file for TLS
149159-->
@@ -155,7 +165,8 @@ TLS 客户端密钥文件的路径。
155165<td colspan =" 2 " >--cluster string</td >
156166</tr >
157167<tr >
158- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
168+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
169+ <p >
159170<!--
160171The name of the kubeconfig cluster to use
161172-->
@@ -167,43 +178,21 @@ The name of the kubeconfig cluster to use
167178<td colspan =" 2 " >--context string</td >
168179</tr >
169180<tr >
170- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
181+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
182+ <p >
171183<!--
172184The name of the kubeconfig context to use
173185-->
174186要使用的 kubeconfig 上下文的名称。
175187</p ></td >
176188</tr >
177189
178- <tr >
179- <td colspan =" 2 " >--default-not-ready-toleration-seconds int  ;  ;  ;  ;  ; <!-- Default: 300--> 默认值:300</td >
180- </tr >
181- <tr >
182- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
183- <!--
184- 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.
185- -->
186- 设置针对 notReady: NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
187- </p ></td >
188- </tr >
189-
190- <tr >
191- <td colspan =" 2 " >--default-unreachable-toleration-seconds int  ;  ;  ;  ;  ; <!-- Default: 300--> 默认值:300</td >
192- </tr >
193- <tr >
194- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
195- <!--
196- 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.
197- -->
198- 设置针对 unreachable: NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
199- </p ></td >
200- </tr >
201-
202190<tr >
203191<td colspan =" 2 " >--disable-compression</td >
204192</tr >
205193<tr >
206- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
194+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
195+ <p >
207196<!--
208197If true, opt-out of response compression for all requests to the server
209198-->
@@ -215,7 +204,8 @@ If true, opt-out of response compression for all requests to the server
215204<td colspan =" 2 " >--insecure-skip-tls-verify</td >
216205</tr >
217206<tr >
218- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
207+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
208+ <p >
219209<!--
220210If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
221211-->
@@ -227,19 +217,36 @@ If true, the server's certificate will not be checked for validity. This will ma
227217<td colspan =" 2 " >--kubeconfig string</td >
228218</tr >
229219<tr >
230- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
220+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
221+ <p >
231222<!--
232223Path to the kubeconfig file to use for CLI requests.
233224-->
234225CLI 请求要使用的 kubeconfig 文件的路径。
235226</p ></td >
236227</tr >
237228
229+ <tr >
230+ <td colspan =" 2 " >--kuberc string</td >
231+ </tr >
232+ <tr >
233+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
234+ <p >
235+ <!--
236+ 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.
237+ -->
238+ 用于偏好设置的 kuberc 文件的路径。可以通过导出 KUBECTL_KUBERC=false
239+ 特性门控或关闭 KUBERC=off 特性门控来禁用此功能。
240+ </p >
241+ </td >
242+ </tr >
243+
238244<tr >
239245<td colspan =" 2 " >--match-server-version</td >
240246</tr >
241247<tr >
242- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
248+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
249+ <p >
243250<!--
244251Require server version to match client version
245252-->
@@ -251,7 +258,8 @@ Require server version to match client version
251258<td colspan =" 2 " >-n, --namespace string</td >
252259</tr >
253260<tr >
254- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
261+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
262+ <p >
255263<!--
256264If present, the namespace scope for this CLI request
257265-->
@@ -263,7 +271,8 @@ If present, the namespace scope for this CLI request
263271<td colspan =" 2 " >--password string</td >
264272</tr >
265273<tr >
266- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
274+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
275+ <p >
267276<!--
268277Password for basic authentication to the API server
269278-->
@@ -275,7 +284,8 @@ Password for basic authentication to the API server
275284<td colspan =" 2 " >--profile string  ;  ;  ;  ;  ; <!-- Default: "none"--> 默认值:"none"</td >
276285</tr >
277286<tr >
278- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
287+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
288+ <p >
279289<!--
280290Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)
281291-->
@@ -287,7 +297,8 @@ Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|m
287297<td colspan =" 2 " >--profile-output string  ;  ;  ;  ;  ; <!-- Default: "profile.pprof"--> 默认值:"profile.pprof"</td >
288298</tr >
289299<tr >
290- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
300+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
301+ <p >
291302<!--
292303Name of the file to write the profile to
293304-->
@@ -299,7 +310,8 @@ Name of the file to write the profile to
299310<td colspan =" 2 " >--request-timeout string  ;  ;  ;  ;  ; <!-- Default: "0"--> 默认值:"0"</td >
300311</tr >
301312<tr >
302- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
313+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
314+ <p >
303315<!--
304316The 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.
305317-->
@@ -312,7 +324,8 @@ The length of time to wait before giving up on a single server request. Non-zero
312324<td colspan =" 2 " >-s, --server string</td >
313325</tr >
314326<tr >
315- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
327+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
328+ <p >
316329<!--
317330The address and port of the Kubernetes API server
318331-->
@@ -324,7 +337,8 @@ Kubernetes API 服务器的地址和端口。
324337<td colspan =" 2 " >--storage-driver-buffer-duration duration  ;  ;  ;  ;  ; <!-- Default: 1m0s--> 默认值:1m0s</td >
325338</tr >
326339<tr >
327- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
340+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
341+ <p >
328342<!--
329343Writes in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction
330344-->
0 commit comments