Skip to content

Commit fec32fa

Browse files
authored
Merge pull request #52397 from my-git9/npa-17736
[zh-cn]sync kubectl_create_service_nodeport.md
2 parents b944faa + cf44a47 commit fec32fa

File tree

1 file changed

+57
-47
lines changed

1 file changed

+57
-47
lines changed

content/zh-cn/docs/reference/kubectl/generated/kubectl_create/kubectl_create_service_nodeport.md

Lines changed: 57 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ json、yaml、name、go-template、go-template-file、template、templatefile、
125125
<td colspan="2">--save-config</td>
126126
</tr>
127127
<tr>
128-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
128+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
129+
<p>
129130
<!--
130131
If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.
131132
-->
@@ -138,7 +139,8 @@ If true, the configuration of current object will be saved in its annotation. Ot
138139
<td colspan="2">--show-managed-fields</td>
139140
</tr>
140141
<tr>
141-
<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>
142144
<!--
143145
If true, keep the managedFields when printing objects in JSON or YAML format.
144146
-->
@@ -150,7 +152,8 @@ If true, keep the managedFields when printing objects in JSON or YAML format.
150152
<td colspan="2">--tcp strings</td>
151153
</tr>
152154
<tr>
153-
<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>
154157
<!--
155158
Port pairs can be specified as '&lt;port&gt;:&lt;targetPort&gt;'.
156159
-->
@@ -162,7 +165,8 @@ Port pairs can be specified as '&lt;port&gt;:&lt;targetPort&gt;'.
162165
<td colspan="2">--template string</td>
163166
</tr>
164167
<tr>
165-
<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>
166170
<!--
167171
Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].
168172
-->
@@ -175,7 +179,8 @@ Template string or path to template file to use when -o=go-template, -o=go-templ
175179
<td colspan="2">--validate string[="strict"]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"strict"</td>
176180
</tr>
177181
<tr>
178-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
182+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
183+
<p>
179184
<!--
180185
Must be one of: strict (or true), warn, ignore (or false). &quot;true&quot; or &quot;strict&quot; will
181186
use a schema to validate the input and fail the request if invalid. It will perform server side validation
@@ -198,8 +203,6 @@ unknown or duplicate fields.
198203
</tbody>
199204
</table>
200205

201-
202-
203206
## {{% heading "parentoptions" %}}
204207

205208
<table style="width: 100%; table-layout: fixed;">
@@ -213,7 +216,8 @@ unknown or duplicate fields.
213216
<td colspan="2">--as string</td>
214217
</tr>
215218
<tr>
216-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
219+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
220+
<p>
217221
<!--
218222
Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
219223
-->
@@ -225,7 +229,8 @@ Username to impersonate for the operation. User could be a regular user or a ser
225229
<td colspan="2">--as-group strings</td>
226230
</tr>
227231
<tr>
228-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
232+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
233+
<p>
229234
<!--
230235
Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
231236
-->
@@ -237,7 +242,8 @@ Group to impersonate for the operation, this flag can be repeated to specify mul
237242
<td colspan="2">--as-uid string</td>
238243
</tr>
239244
<tr>
240-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
245+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
246+
<p>
241247
<!--
242248
UID to impersonate for the operation.
243249
-->
@@ -249,7 +255,8 @@ UID to impersonate for the operation.
249255
<td colspan="2">--cache-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"$HOME/.kube/cache"</td>
250256
</tr>
251257
<tr>
252-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
258+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
259+
<p>
253260
<!--
254261
Default cache directory
255262
-->
@@ -261,7 +268,8 @@ Default cache directory
261268
<td colspan="2">--certificate-authority string</td>
262269
</tr>
263270
<tr>
264-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
271+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
272+
<p>
265273
<!--
266274
Path to a cert file for the certificate authority
267275
-->
@@ -273,7 +281,8 @@ Path to a cert file for the certificate authority
273281
<td colspan="2">--client-certificate string</td>
274282
</tr>
275283
<tr>
276-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
284+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
285+
<p>
277286
<!--
278287
Path to a client certificate file for TLS
279288
-->
@@ -285,7 +294,8 @@ TLS 客户端证书文件的路径。
285294
<td colspan="2">--client-key string</td>
286295
</tr>
287296
<tr>
288-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
297+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
298+
<p>
289299
<!--
290300
Path to a client key file for TLS
291301
-->
@@ -297,7 +307,8 @@ TLS 客户端密钥文件的路径。
297307
<td colspan="2">--cluster string</td>
298308
</tr>
299309
<tr>
300-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
310+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
311+
<p>
301312
<!--
302313
The name of the kubeconfig cluster to use
303314
-->
@@ -309,43 +320,21 @@ The name of the kubeconfig cluster to use
309320
<td colspan="2">--context string</td>
310321
</tr>
311322
<tr>
312-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
323+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
324+
<p>
313325
<!--
314326
The name of the kubeconfig context to use
315327
-->
316328
要使用的 kubeconfig 上下文的名称。
317329
</p></td>
318330
</tr>
319331

320-
<tr>
321-
<td colspan="2">--default-not-ready-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:300</td>
322-
</tr>
323-
<tr>
324-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
325-
<!--
326-
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.
327-
-->
328-
设置针对 notReady:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
329-
</p></td>
330-
</tr>
331-
332-
<tr>
333-
<td colspan="2">--default-unreachable-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:300</td>
334-
</tr>
335-
<tr>
336-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
337-
<!--
338-
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.
339-
-->
340-
设置针对 unreachable:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
341-
</p></td>
342-
</tr>
343-
344332
<tr>
345333
<td colspan="2">--disable-compression</td>
346334
</tr>
347335
<tr>
348-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
336+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
337+
<p>
349338
<!--
350339
If true, opt-out of response compression for all requests to the server
351340
-->
@@ -357,7 +346,8 @@ If true, opt-out of response compression for all requests to the server
357346
<td colspan="2">--insecure-skip-tls-verify</td>
358347
</tr>
359348
<tr>
360-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
349+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
350+
<p>
361351
<!--
362352
If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
363353
-->
@@ -369,19 +359,36 @@ If true, the server's certificate will not be checked for validity. This will ma
369359
<td colspan="2">--kubeconfig string</td>
370360
</tr>
371361
<tr>
372-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
362+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
363+
<p>
373364
<!--
374365
Path to the kubeconfig file to use for CLI requests.
375366
-->
376367
CLI 请求要使用的 kubeconfig 文件的路径。
377368
</p></td>
378369
</tr>
379370

371+
<tr>
372+
<td colspan="2">--kuberc string</td>
373+
</tr>
374+
<tr>
375+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
376+
<p>
377+
<!--
378+
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.
379+
-->
380+
用于偏好设置的 kuberc 文件的路径。可以通过导出 KUBECTL_KUBERC=false
381+
特性门控或关闭 KUBERC=off 特性门控来禁用此功能。
382+
</p>
383+
</td>
384+
</tr>
385+
380386
<tr>
381387
<td colspan="2">--match-server-version</td>
382388
</tr>
383389
<tr>
384-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
390+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
391+
<p>
385392
<!--
386393
Require server version to match client version
387394
-->
@@ -393,7 +400,8 @@ Require server version to match client version
393400
<td colspan="2">-n, --namespace string</td>
394401
</tr>
395402
<tr>
396-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
403+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
404+
<p>
397405
<!--
398406
If present, the namespace scope for this CLI request
399407
-->
@@ -405,7 +413,8 @@ If present, the namespace scope for this CLI request
405413
<td colspan="2">--password string</td>
406414
</tr>
407415
<tr>
408-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
416+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
417+
<p>
409418
<!--
410419
Password for basic authentication to the API server
411420
-->
@@ -417,7 +426,8 @@ Password for basic authentication to the API server
417426
<td colspan="2">--profile string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"none"</td>
418427
</tr>
419428
<tr>
420-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
429+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
430+
<p>
421431
<!--
422432
Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)
423433
-->

0 commit comments

Comments
 (0)