Skip to content

Commit 6735810

Browse files
committed
[zh] Sync kubectl_set/_index.md
1 parent 05cb3dc commit 6735810

File tree

1 file changed

+79
-60
lines changed
  • content/zh-cn/docs/reference/kubectl/generated/kubectl_set

1 file changed

+79
-60
lines changed

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

Lines changed: 79 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Configure application resources.
2323

2424
这些命令可帮助你更改现有的应用程序资源。
2525

26-
```
26+
```shell
2727
kubectl set SUBCOMMAND
2828
```
2929

@@ -52,8 +52,6 @@ help for set
5252
</tbody>
5353
</table>
5454

55-
56-
5755
## {{% heading "parentoptions" %}}
5856

5957
<table style="width: 100%; table-layout: fixed;">
@@ -67,7 +65,8 @@ help for set
6765
<td colspan="2">--as string</td>
6866
</tr>
6967
<tr>
70-
<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>
7170
<!--
7271
Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
7372
-->
@@ -79,7 +78,8 @@ Username to impersonate for the operation. User could be a regular user or a ser
7978
<td colspan="2">--as-group strings</td>
8079
</tr>
8180
<tr>
82-
<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>
8383
<!--
8484
Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
8585
-->
@@ -91,7 +91,8 @@ Group to impersonate for the operation, this flag can be repeated to specify mul
9191
<td colspan="2">--as-uid string</td>
9292
</tr>
9393
<tr>
94-
<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>
9596
<!--
9697
UID to impersonate for the operation.
9798
-->
@@ -103,7 +104,8 @@ UID to impersonate for the operation.
103104
<td colspan="2">--cache-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "$HOME/.kube/cache"-->默认值:"$HOME/.kube/cache"</td>
104105
</tr>
105106
<tr>
106-
<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>
107109
<!--
108110
Default cache directory
109111
-->
@@ -115,7 +117,8 @@ Default cache directory
115117
<td colspan="2">--certificate-authority string</td>
116118
</tr>
117119
<tr>
118-
<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>
119122
<!--
120123
Path to a cert file for the certificate authority
121124
-->
@@ -127,7 +130,8 @@ Path to a cert file for the certificate authority
127130
<td colspan="2">--client-certificate string</td>
128131
</tr>
129132
<tr>
130-
<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>
131135
<!--
132136
Path to a client certificate file for TLS
133137
-->
@@ -139,7 +143,8 @@ TLS 客户端证书文件的路径。
139143
<td colspan="2">--client-key string</td>
140144
</tr>
141145
<tr>
142-
<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>
143148
<!--
144149
Path to a client key file for TLS
145150
-->
@@ -151,7 +156,8 @@ TLS 客户端密钥文件的路径。
151156
<td colspan="2">--cluster string</td>
152157
</tr>
153158
<tr>
154-
<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>
155161
<!--
156162
The name of the kubeconfig cluster to use
157163
-->
@@ -163,43 +169,21 @@ The name of the kubeconfig cluster to use
163169
<td colspan="2">--context string</td>
164170
</tr>
165171
<tr>
166-
<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>
167174
<!--
168175
The name of the kubeconfig context to use
169176
-->
170177
要使用的 kubeconfig 上下文的名称。
171178
</p></td>
172179
</tr>
173180

174-
<tr>
175-
<td colspan="2">--default-not-ready-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: 300-->默认值:300</td>
176-
</tr>
177-
<tr>
178-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
179-
<!--
180-
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.
181-
-->
182-
设置针对 notReady:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
183-
</p></td>
184-
</tr>
185-
186-
<tr>
187-
<td colspan="2">--default-unreachable-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: 300-->默认值:300</td>
188-
</tr>
189-
<tr>
190-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
191-
<!--
192-
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.
193-
-->
194-
设置针对 unreachable:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
195-
</p></td>
196-
</tr>
197-
198181
<tr>
199182
<td colspan="2">--disable-compression</td>
200183
</tr>
201184
<tr>
202-
<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>
203187
<!--
204188
If true, opt-out of response compression for all requests to the server
205189
-->
@@ -211,7 +195,8 @@ If true, opt-out of response compression for all requests to the server
211195
<td colspan="2">--insecure-skip-tls-verify</td>
212196
</tr>
213197
<tr>
214-
<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>
215200
<!--
216201
If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
217202
-->
@@ -223,19 +208,35 @@ If true, the server's certificate will not be checked for validity. This will ma
223208
<td colspan="2">--kubeconfig string</td>
224209
</tr>
225210
<tr>
226-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
211+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
212+
<p>
227213
<!--
228214
Path to the kubeconfig file to use for CLI requests.
229215
-->
230216
CLI 请求要使用的 kubeconfig 文件的路径。
231217
</p></td>
232218
</tr>
233219

220+
<tr>
221+
<td colspan="2">--kuberc string</td>
222+
</tr>
223+
<tr>
224+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
225+
<p>
226+
<!--
227+
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.
228+
-->
229+
用于偏好设置的 kuberc 文件的路径。可以通过导出 KUBECTL_KUBERC=false
230+
特性门控或关闭 KUBERC=off 特性门控来禁用此功能。
231+
</p></td>
232+
</tr>
233+
234234
<tr>
235235
<td colspan="2">--match-server-version</td>
236236
</tr>
237237
<tr>
238-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
238+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
239+
<p>
239240
<!--
240241
Require server version to match client version
241242
-->
@@ -247,7 +248,8 @@ Require server version to match client version
247248
<td colspan="2">-n, --namespace string</td>
248249
</tr>
249250
<tr>
250-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
251+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
252+
<p>
251253
<!--
252254
If present, the namespace scope for this CLI request
253255
-->
@@ -259,7 +261,8 @@ If present, the namespace scope for this CLI request
259261
<td colspan="2">--password string</td>
260262
</tr>
261263
<tr>
262-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
264+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
265+
<p>
263266
<!--
264267
Password for basic authentication to the API server
265268
-->
@@ -271,7 +274,8 @@ Password for basic authentication to the API server
271274
<td colspan="2">--profile string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "none"-->默认值:"none"</td>
272275
</tr>
273276
<tr>
274-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
277+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
278+
<p>
275279
<!--
276280
Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)
277281
-->
@@ -283,7 +287,8 @@ Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|m
283287
<td colspan="2">--profile-output string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "profile.pprof"-->默认值:"profile.pprof"</td>
284288
</tr>
285289
<tr>
286-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
290+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
291+
<p>
287292
<!--
288293
Name of the file to write the profile to
289294
-->
@@ -295,7 +300,8 @@ Name of the file to write the profile to
295300
<td colspan="2">--request-timeout string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "0"-->默认值:"0"</td>
296301
</tr>
297302
<tr>
298-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
303+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
304+
<p>
299305
<!--
300306
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.
301307
-->
@@ -308,7 +314,8 @@ The length of time to wait before giving up on a single server request. Non-zero
308314
<td colspan="2">-s, --server string</td>
309315
</tr>
310316
<tr>
311-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
317+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
318+
<p>
312319
<!--
313320
The address and port of the Kubernetes API server
314321
-->
@@ -320,7 +327,8 @@ Kubernetes API 服务器的地址和端口。
320327
<td colspan="2">--storage-driver-buffer-duration duration&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: 1m0s-->默认值:1m0s</td>
321328
</tr>
322329
<tr>
323-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
330+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
331+
<p>
324332
<!--
325333
Writes in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction
326334
-->
@@ -332,7 +340,8 @@ Writes in the storage driver will be buffered for this duration, and committed t
332340
<td colspan="2">--storage-driver-db string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "cadvisor"-->默认值:"cadvisor"</td>
333341
</tr>
334342
<tr>
335-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
343+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
344+
<p>
336345
<!--
337346
database name
338347
-->
@@ -344,7 +353,8 @@ database name
344353
<td colspan="2">--storage-driver-host string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "localhost:8086"-->默认值:"localhost:8086"</td>
345354
</tr>
346355
<tr>
347-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
356+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
357+
<p>
348358
<!--
349359
database host:port
350360
-->
@@ -356,7 +366,8 @@ database host:port
356366
<td colspan="2">--storage-driver-password string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "root"-->默认值:"root"</td>
357367
</tr>
358368
<tr>
359-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
369+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
370+
<p>
360371
<!--
361372
database password
362373
-->
@@ -368,7 +379,8 @@ database password
368379
<td colspan="2">--storage-driver-secure</td>
369380
</tr>
370381
<tr>
371-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
382+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
383+
<p>
372384
<!--
373385
use secure connection with database
374386
-->
@@ -380,7 +392,8 @@ use secure connection with database
380392
<td colspan="2">--storage-driver-table string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "stats"-->默认值:"stats"</td>
381393
</tr>
382394
<tr>
383-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
395+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
396+
<p>
384397
<!--
385398
table name
386399
-->
@@ -392,7 +405,8 @@ table name
392405
<td colspan="2">--storage-driver-user string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "root"-->默认值:"root"</td>
393406
</tr>
394407
<tr>
395-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
408+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
409+
<p>
396410
<!--
397411
database username
398412
-->
@@ -418,7 +432,8 @@ Server name to use for server certificate validation. If it is not provided, the
418432
<td colspan="2">--token string</td>
419433
</tr>
420434
<tr>
421-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
435+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
436+
<p>
422437
<!--
423438
Bearer token for authentication to the API server
424439
-->
@@ -430,7 +445,8 @@ Bearer token for authentication to the API server
430445
<td colspan="2">--user string</td>
431446
</tr>
432447
<tr>
433-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
448+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
449+
<p>
434450
<!--
435451
The name of the kubeconfig user to use
436452
-->
@@ -442,7 +458,8 @@ The name of the kubeconfig user to use
442458
<td colspan="2">--username string</td>
443459
</tr>
444460
<tr>
445-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
461+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
462+
<p>
446463
<!--
447464
Username for basic authentication to the API server
448465
-->
@@ -454,7 +471,8 @@ Username for basic authentication to the API server
454471
<td colspan="2">--version version[=true]</td>
455472
</tr>
456473
<tr>
457-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
474+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
475+
<p>
458476
<!--
459477
--version, --version=raw prints version information and quits; --version=vX.Y.Z... sets the reported version
460478
-->
@@ -466,7 +484,8 @@ Username for basic authentication to the API server
466484
<td colspan="2">--warnings-as-errors</td>
467485
</tr>
468486
<tr>
469-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
487+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
488+
<p>
470489
<!--
471490
Treat warnings received from the server as errors and exit with a non-zero exit code
472491
-->
@@ -493,5 +512,5 @@ Treat warnings received from the server as errors and exit with a non-zero exit
493512
* [kubectl set image](kubectl_set_image/) - 更新 Pod 模板上的镜像
494513
* [kubectl set resources](kubectl_set_resources/) - 使用 Pod 模板更新对象的资源请求/限制
495514
* [kubectl set selector](kubectl_set_selector/) - 设置资源上的选择器
496-
* [kubectl set serviceaccount](kubectl_set_serviceaccount/) - 更新资源的服务帐户
497-
* [kubectl set subject](kubectl_set_subject/) - 更新角色绑定或集群角色绑定中的用户、组或服务帐户
515+
* [kubectl set serviceaccount](kubectl_set_serviceaccount/) - 更新资源的服务账号
516+
* [kubectl set subject](kubectl_set_subject/) - 更新角色绑定或集群角色绑定中的用户、组或服务账号

0 commit comments

Comments
 (0)