@@ -12,16 +12,19 @@ Display clusters defined in the kubeconfig.
12
12
-->
13
13
显示 kubeconfig 中定义的集群。
14
14
15
- ```
15
+ ``` shell
16
16
kubectl config get-clusters [flags]
17
17
```
18
18
19
19
## {{% heading "examples" %}}
20
20
21
21
<!--
22
+ ```
22
23
# List the clusters that kubectl knows about
23
- -->
24
+ kubectl config get-clusters
24
25
```
26
+ -->
27
+ ``` shell
25
28
# 列出 kubectl 所知悉的集群
26
29
kubectl config get-clusters
27
30
```
@@ -64,7 +67,8 @@ help for get-clusters
64
67
<td colspan =" 2 " >--as string</td >
65
68
</tr >
66
69
<tr >
67
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
70
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
71
+ <p >
68
72
<!--
69
73
Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
70
74
-->
@@ -76,7 +80,8 @@ Username to impersonate for the operation. User could be a regular user or a ser
76
80
<td colspan =" 2 " >--as-group strings</td >
77
81
</tr >
78
82
<tr >
79
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
83
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
84
+ <p >
80
85
<!--
81
86
Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
82
87
-->
@@ -88,7 +93,8 @@ Group to impersonate for the operation, this flag can be repeated to specify mul
88
93
<td colspan =" 2 " >--as-uid string</td >
89
94
</tr >
90
95
<tr >
91
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
96
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
97
+ <p >
92
98
<!--
93
99
UID to impersonate for the operation.
94
100
-->
@@ -100,7 +106,8 @@ UID to impersonate for the operation.
100
106
<td colspan =" 2 " >--cache-dir string  ;  ;  ;  ;  ; <!-- Default: "$HOME/.kube/cache"--> 默认值:"$HOME/.kube/cache"</td >
101
107
</tr >
102
108
<tr >
103
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
109
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
110
+ <p >
104
111
<!--
105
112
Default cache directory
106
113
-->
@@ -112,7 +119,8 @@ Default cache directory
112
119
<td colspan =" 2 " >--certificate-authority string</td >
113
120
</tr >
114
121
<tr >
115
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
122
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
123
+ <p >
116
124
<!--
117
125
Path to a cert file for the certificate authority
118
126
-->
@@ -124,7 +132,8 @@ Path to a cert file for the certificate authority
124
132
<td colspan =" 2 " >--client-certificate string</td >
125
133
</tr >
126
134
<tr >
127
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
135
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
136
+ <p >
128
137
<!--
129
138
Path to a client certificate file for TLS
130
139
-->
@@ -136,7 +145,8 @@ TLS 客户端证书文件的路径。
136
145
<td colspan =" 2 " >--client-key string</td >
137
146
</tr >
138
147
<tr >
139
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
148
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
149
+ <p >
140
150
<!--
141
151
Path to a client key file for TLS
142
152
-->
@@ -148,7 +158,8 @@ TLS 客户端密钥文件的路径。
148
158
<td colspan =" 2 " >--cluster string</td >
149
159
</tr >
150
160
<tr >
151
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
161
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
162
+ <p >
152
163
<!--
153
164
The name of the kubeconfig cluster to use
154
165
-->
@@ -160,43 +171,21 @@ The name of the kubeconfig cluster to use
160
171
<td colspan =" 2 " >--context string</td >
161
172
</tr >
162
173
<tr >
163
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
174
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
175
+ <p >
164
176
<!--
165
177
The name of the kubeconfig context to use
166
178
-->
167
179
要使用的 kubeconfig 上下文的名称。
168
180
</p ></td >
169
181
</tr >
170
182
171
- <tr >
172
- <td colspan =" 2 " >--default-not-ready-toleration-seconds int  ;  ;  ;  ;  ; <!-- Default: 300--> 默认值:300</td >
173
- </tr >
174
- <tr >
175
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
176
- <!--
177
- 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.
178
- -->
179
- 设置针对 notReady: NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
180
- </p ></td >
181
- </tr >
182
-
183
- <tr >
184
- <td colspan =" 2 " >--default-unreachable-toleration-seconds int  ;  ;  ;  ;  ; <!-- Default: 300--> 默认值:300</td >
185
- </tr >
186
- <tr >
187
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
188
- <!--
189
- 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.
190
- -->
191
- 设置针对 unreachable: NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
192
- </p ></td >
193
- </tr >
194
-
195
183
<tr >
196
184
<td colspan =" 2 " >--disable-compression</td >
197
185
</tr >
198
186
<tr >
199
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
187
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
188
+ <p >
200
189
<!--
201
190
If true, opt-out of response compression for all requests to the server
202
191
-->
@@ -208,7 +197,8 @@ If true, opt-out of response compression for all requests to the server
208
197
<td colspan =" 2 " >--insecure-skip-tls-verify</td >
209
198
</tr >
210
199
<tr >
211
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
200
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
201
+ <p >
212
202
<!--
213
203
If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
214
204
-->
@@ -220,7 +210,8 @@ If true, the server's certificate will not be checked for validity. This will ma
220
210
<td colspan =" 2 " >--kubeconfig string</td >
221
211
</tr >
222
212
<tr >
223
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
213
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
214
+ <p >
224
215
<!--
225
216
Path to the kubeconfig file to use for CLI requests.
226
217
-->
@@ -232,19 +223,36 @@ CLI 请求要使用的 kubeconfig 文件的路径。
232
223
<td colspan =" 2 " >--match-server-version</td >
233
224
</tr >
234
225
<tr >
235
- <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 >
236
228
<!--
237
229
Require server version to match client version
238
230
-->
239
231
要求服务器版本与客户端版本匹配。
240
232
</p ></td >
241
233
</tr >
242
234
235
+ <tr >
236
+ <td colspan =" 2 " >--kuberc string</td >
237
+ </tr >
238
+ <tr >
239
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
240
+ <p >
241
+ <!--
242
+ 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.
243
+ -->
244
+ 用于偏好设置的 kuberc 文件的路径。可以通过导出 KUBECTL_KUBERC=false
245
+ 特性门控或关闭 KUBERC=off 特性门控来禁用此功能。
246
+ </p >
247
+ </td >
248
+ </tr >
249
+
243
250
<tr >
244
251
<td colspan =" 2 " >-n, --namespace string</td >
245
252
</tr >
246
253
<tr >
247
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
254
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
255
+ <p >
248
256
<!--
249
257
If present, the namespace scope for this CLI request
250
258
-->
@@ -256,7 +264,8 @@ If present, the namespace scope for this CLI request
256
264
<td colspan =" 2 " >--password string</td >
257
265
</tr >
258
266
<tr >
259
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
267
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
268
+ <p >
260
269
<!--
261
270
Password for basic authentication to the API server
262
271
-->
@@ -268,7 +277,8 @@ Password for basic authentication to the API server
268
277
<td colspan =" 2 " >--profile string  ;  ;  ;  ;  ; <!-- Default: "none"--> 默认值:"none"</td >
269
278
</tr >
270
279
<tr >
271
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
280
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
281
+ <p >
272
282
<!--
273
283
Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)
274
284
-->
@@ -280,7 +290,8 @@ Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|m
280
290
<td colspan =" 2 " >--profile-output string  ;  ;  ;  ;  ; <!-- Default: "profile.pprof"--> 默认值:"profile.pprof"</td >
281
291
</tr >
282
292
<tr >
283
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
293
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
294
+ <p >
284
295
<!--
285
296
Name of the file to write the profile to
286
297
-->
@@ -292,7 +303,8 @@ Name of the file to write the profile to
292
303
<td colspan =" 2 " >--request-timeout string  ;  ;  ;  ;  ; <!-- Default: "0"--> 默认值:"0"</td >
293
304
</tr >
294
305
<tr >
295
- <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" ><p >
306
+ <td ></td ><td style =" line-height : 130% ; word-wrap : break-word ;" >
307
+ <p >
296
308
<!--
297
309
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.
298
310
-->
0 commit comments