Skip to content

Commit 964c5a6

Browse files
authored
Merge pull request #52377 from my-git9/npa-8176
[zh-cn]sync kubectl_create_service.md
2 parents 3ff7c76 + 5e2a34e commit 964c5a6

File tree

1 file changed

+59
-46
lines changed

1 file changed

+59
-46
lines changed

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

Lines changed: 59 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ service 操作的帮助命令。
6060
<td colspan="2">--as string</td>
6161
</tr>
6262
<tr>
63-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
63+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
64+
<p>
6465
<!--
6566
Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
6667
-->
@@ -72,7 +73,8 @@ Username to impersonate for the operation. User could be a regular user or a ser
7273
<td colspan="2">--as-group strings</td>
7374
</tr>
7475
<tr>
75-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
76+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
77+
<p>
7678
<!--
7779
Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
7880
-->
@@ -84,7 +86,8 @@ Group to impersonate for the operation, this flag can be repeated to specify mul
8486
<td colspan="2">--as-uid string</td>
8587
</tr>
8688
<tr>
87-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
89+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
90+
<p>
8891
<!--
8992
UID to impersonate for the operation.
9093
-->
@@ -96,7 +99,8 @@ UID to impersonate for the operation.
9699
<td colspan="2">--cache-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"$HOME/.kube/cache"</td>
97100
</tr>
98101
<tr>
99-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
102+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
103+
<p>
100104
<!--
101105
Default cache directory
102106
-->
@@ -108,7 +112,8 @@ Default cache directory
108112
<td colspan="2">--certificate-authority string</td>
109113
</tr>
110114
<tr>
111-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
115+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
116+
<p>
112117
<!--
113118
Path to a cert file for the certificate authority
114119
-->
@@ -120,7 +125,8 @@ Path to a cert file for the certificate authority
120125
<td colspan="2">--client-certificate string</td>
121126
</tr>
122127
<tr>
123-
<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>
124130
<!--
125131
Path to a client certificate file for TLS
126132
-->
@@ -132,7 +138,8 @@ TLS 客户端证书文件的路径。
132138
<td colspan="2">--client-key string</td>
133139
</tr>
134140
<tr>
135-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
141+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
142+
<p>
136143
<!--
137144
Path to a client key file for TLS
138145
-->
@@ -144,7 +151,8 @@ TLS 客户端密钥文件的路径。
144151
<td colspan="2">--cluster string</td>
145152
</tr>
146153
<tr>
147-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
154+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
155+
<p>
148156
<!--
149157
The name of the kubeconfig cluster to use
150158
-->
@@ -156,43 +164,21 @@ The name of the kubeconfig cluster to use
156164
<td colspan="2">--context string</td>
157165
</tr>
158166
<tr>
159-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
167+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
168+
<p>
160169
<!--
161170
The name of the kubeconfig context to use
162171
-->
163172
要使用的 kubeconfig 上下文的名称。
164173
</p></td>
165174
</tr>
166175

167-
<tr>
168-
<td colspan="2">--default-not-ready-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:300</td>
169-
</tr>
170-
<tr>
171-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
172-
<!--
173-
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.
174-
-->
175-
设置针对 notReady:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
176-
</p></td>
177-
</tr>
178-
179-
<tr>
180-
<td colspan="2">--default-unreachable-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:300</td>
181-
</tr>
182-
<tr>
183-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
184-
<!--
185-
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.
186-
-->
187-
设置针对 unreachable:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
188-
</p></td>
189-
</tr>
190-
191176
<tr>
192177
<td colspan="2">--disable-compression</td>
193178
</tr>
194179
<tr>
195-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
180+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
181+
<p>
196182
<!--
197183
If true, opt-out of response compression for all requests to the server
198184
-->
@@ -204,7 +190,8 @@ If true, opt-out of response compression for all requests to the server
204190
<td colspan="2">--insecure-skip-tls-verify</td>
205191
</tr>
206192
<tr>
207-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
193+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
194+
<p>
208195
<!--
209196
If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
210197
-->
@@ -216,19 +203,36 @@ If true, the server's certificate will not be checked for validity. This will ma
216203
<td colspan="2">--kubeconfig string</td>
217204
</tr>
218205
<tr>
219-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
206+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
207+
<p>
220208
<!--
221209
Path to the kubeconfig file to use for CLI requests.
222210
-->
223211
CLI 请求要使用的 kubeconfig 文件的路径。
224212
</p></td>
225213
</tr>
226214

215+
<tr>
216+
<td colspan="2">--kuberc string</td>
217+
</tr>
218+
<tr>
219+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
220+
<p>
221+
<!--
222+
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.
223+
-->
224+
用于偏好设置的 kuberc 文件的路径。可以通过导出 KUBECTL_KUBERC=false
225+
特性门控或关闭 KUBERC=off 特性门控来禁用此功能。
226+
</p>
227+
</td>
228+
</tr>
229+
227230
<tr>
228231
<td colspan="2">--match-server-version</td>
229232
</tr>
230233
<tr>
231-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
234+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
235+
<p>
232236
<!--
233237
Require server version to match client version
234238
-->
@@ -240,7 +244,8 @@ Require server version to match client version
240244
<td colspan="2">-n, --namespace string</td>
241245
</tr>
242246
<tr>
243-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
247+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
248+
<p>
244249
<!--
245250
If present, the namespace scope for this CLI request
246251
-->
@@ -252,7 +257,8 @@ If present, the namespace scope for this CLI request
252257
<td colspan="2">--password string</td>
253258
</tr>
254259
<tr>
255-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
260+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
261+
<p>
256262
<!--
257263
Password for basic authentication to the API server
258264
-->
@@ -264,7 +270,8 @@ Password for basic authentication to the API server
264270
<td colspan="2">--profile string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"none"</td>
265271
</tr>
266272
<tr>
267-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
273+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
274+
<p>
268275
<!--
269276
Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)
270277
-->
@@ -276,7 +283,8 @@ Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|m
276283
<td colspan="2">--profile-output string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"profile.pprof"</td>
277284
</tr>
278285
<tr>
279-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
286+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
287+
<p>
280288
<!--
281289
Name of the file to write the profile to
282290
-->
@@ -288,7 +296,8 @@ Name of the file to write the profile to
288296
<td colspan="2">--request-timeout string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"0"</td>
289297
</tr>
290298
<tr>
291-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
299+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
300+
<p>
292301
<!--
293302
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.
294303
-->
@@ -301,7 +310,8 @@ The length of time to wait before giving up on a single server request. Non-zero
301310
<td colspan="2">-s, --server string</td>
302311
</tr>
303312
<tr>
304-
<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>
305315
<!--
306316
The address and port of the Kubernetes API server
307317
-->
@@ -313,7 +323,8 @@ Kubernetes API 服务器的地址和端口。
313323
<td colspan="2">--storage-driver-buffer-duration duration&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:1m0s</td>
314324
</tr>
315325
<tr>
316-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
326+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
327+
<p>
317328
<!--
318329
Writes in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction
319330
-->
@@ -325,7 +336,8 @@ Writes in the storage driver will be buffered for this duration, and committed t
325336
<td colspan="2">--storage-driver-db string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"cadvisor"</td>
326337
</tr>
327338
<tr>
328-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
339+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
340+
<p>
329341
<!--
330342
database name
331343
-->
@@ -337,7 +349,8 @@ database name
337349
<td colspan="2">--storage-driver-host string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"localhost:8086"</td>
338350
</tr>
339351
<tr>
340-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
352+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
353+
<p>
341354
<!--
342355
database host:port
343356
-->

0 commit comments

Comments
 (0)