Skip to content

Commit dd67bba

Browse files
authored
Merge pull request #52468 from my-git9/npe-9443
[zh-cn]sync kubectl_config_get-clusters.md
2 parents 2bac9ea + 13de28a commit dd67bba

File tree

1 file changed

+56
-44
lines changed

1 file changed

+56
-44
lines changed

content/zh-cn/docs/reference/kubectl/generated/kubectl_config/kubectl_config_get-clusters.md

Lines changed: 56 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,19 @@ Display clusters defined in the kubeconfig.
1212
-->
1313
显示 kubeconfig 中定义的集群。
1414

15-
```
15+
```shell
1616
kubectl config get-clusters [flags]
1717
```
1818

1919
## {{% heading "examples" %}}
2020

2121
<!--
22+
```
2223
# List the clusters that kubectl knows about
23-
-->
24+
kubectl config get-clusters
2425
```
26+
-->
27+
```shell
2528
# 列出 kubectl 所知悉的集群
2629
kubectl config get-clusters
2730
```
@@ -64,7 +67,8 @@ help for get-clusters
6467
<td colspan="2">--as string</td>
6568
</tr>
6669
<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>
6872
<!--
6973
Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
7074
-->
@@ -76,7 +80,8 @@ Username to impersonate for the operation. User could be a regular user or a ser
7680
<td colspan="2">--as-group strings</td>
7781
</tr>
7882
<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>
8085
<!--
8186
Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
8287
-->
@@ -88,7 +93,8 @@ Group to impersonate for the operation, this flag can be repeated to specify mul
8893
<td colspan="2">--as-uid string</td>
8994
</tr>
9095
<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>
9298
<!--
9399
UID to impersonate for the operation.
94100
-->
@@ -100,7 +106,8 @@ UID to impersonate for the operation.
100106
<td colspan="2">--cache-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "$HOME/.kube/cache"-->默认值:"$HOME/.kube/cache"</td>
101107
</tr>
102108
<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>
104111
<!--
105112
Default cache directory
106113
-->
@@ -112,7 +119,8 @@ Default cache directory
112119
<td colspan="2">--certificate-authority string</td>
113120
</tr>
114121
<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>
116124
<!--
117125
Path to a cert file for the certificate authority
118126
-->
@@ -124,7 +132,8 @@ Path to a cert file for the certificate authority
124132
<td colspan="2">--client-certificate string</td>
125133
</tr>
126134
<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>
128137
<!--
129138
Path to a client certificate file for TLS
130139
-->
@@ -136,7 +145,8 @@ TLS 客户端证书文件的路径。
136145
<td colspan="2">--client-key string</td>
137146
</tr>
138147
<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>
140150
<!--
141151
Path to a client key file for TLS
142152
-->
@@ -148,7 +158,8 @@ TLS 客户端密钥文件的路径。
148158
<td colspan="2">--cluster string</td>
149159
</tr>
150160
<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>
152163
<!--
153164
The name of the kubeconfig cluster to use
154165
-->
@@ -160,43 +171,21 @@ The name of the kubeconfig cluster to use
160171
<td colspan="2">--context string</td>
161172
</tr>
162173
<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>
164176
<!--
165177
The name of the kubeconfig context to use
166178
-->
167179
要使用的 kubeconfig 上下文的名称。
168180
</p></td>
169181
</tr>
170182

171-
<tr>
172-
<td colspan="2">--default-not-ready-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--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-
195183
<tr>
196184
<td colspan="2">--disable-compression</td>
197185
</tr>
198186
<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>
200189
<!--
201190
If true, opt-out of response compression for all requests to the server
202191
-->
@@ -208,7 +197,8 @@ If true, opt-out of response compression for all requests to the server
208197
<td colspan="2">--insecure-skip-tls-verify</td>
209198
</tr>
210199
<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>
212202
<!--
213203
If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
214204
-->
@@ -220,7 +210,8 @@ If true, the server's certificate will not be checked for validity. This will ma
220210
<td colspan="2">--kubeconfig string</td>
221211
</tr>
222212
<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>
224215
<!--
225216
Path to the kubeconfig file to use for CLI requests.
226217
-->
@@ -232,19 +223,36 @@ CLI 请求要使用的 kubeconfig 文件的路径。
232223
<td colspan="2">--match-server-version</td>
233224
</tr>
234225
<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>
236228
<!--
237229
Require server version to match client version
238230
-->
239231
要求服务器版本与客户端版本匹配。
240232
</p></td>
241233
</tr>
242234

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+
243250
<tr>
244251
<td colspan="2">-n, --namespace string</td>
245252
</tr>
246253
<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>
248256
<!--
249257
If present, the namespace scope for this CLI request
250258
-->
@@ -256,7 +264,8 @@ If present, the namespace scope for this CLI request
256264
<td colspan="2">--password string</td>
257265
</tr>
258266
<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>
260269
<!--
261270
Password for basic authentication to the API server
262271
-->
@@ -268,7 +277,8 @@ Password for basic authentication to the API server
268277
<td colspan="2">--profile string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "none"-->默认值:"none"</td>
269278
</tr>
270279
<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>
272282
<!--
273283
Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)
274284
-->
@@ -280,7 +290,8 @@ Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|m
280290
<td colspan="2">--profile-output string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "profile.pprof"-->默认值:"profile.pprof"</td>
281291
</tr>
282292
<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>
284295
<!--
285296
Name of the file to write the profile to
286297
-->
@@ -292,7 +303,8 @@ Name of the file to write the profile to
292303
<td colspan="2">--request-timeout string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "0"-->默认值:"0"</td>
293304
</tr>
294305
<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>
296308
<!--
297309
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.
298310
-->

0 commit comments

Comments
 (0)