Skip to content

Commit 43192bd

Browse files
committed
[zh-cn]sync kubectl_create_namespace.md
Signed-off-by: xin.li <[email protected]>
1 parent 6433730 commit 43192bd

File tree

1 file changed

+57
-46
lines changed

1 file changed

+57
-46
lines changed

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

Lines changed: 57 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ kubectl create namespace my-namespace
4040

4141
## {{% heading "options" %}}
4242

43-
<table style="width: 100%; table-layout: fixed;">
43+
<table style="width: 100%; table-layout: fixed;">
4444
<colgroup>
4545
<col span="1" style="width: 10px;" />
4646
<col span="1" />
@@ -51,7 +51,8 @@ kubectl create namespace my-namespace
5151
<td colspan="2">--allow-missing-template-keys&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:true</td>
5252
</tr>
5353
<tr>
54-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
54+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
55+
<p>
5556
<!--
5657
If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.
5758
-->
@@ -64,7 +65,8 @@ If true, ignore any errors in templates when a field or map key is missing in th
6465
<td colspan="2">--dry-run string[="unchanged"]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"none"</td>
6566
</tr>
6667
<tr>
67-
<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>
6870
<!--
6971
Must be &quot;none&quot;, &quot;server&quot;, or &quot;client&quot;. If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.
7072
-->
@@ -77,7 +79,8 @@ Must be &quot;none&quot;, &quot;server&quot;, or &quot;client&quot;. If client s
7779
<td colspan="2">--field-manager string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"kubectl-create"</td>
7880
</tr>
7981
<tr>
80-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
82+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
83+
<p>
8184
<!--
8285
Name of the manager used to track field ownership.
8386
-->
@@ -89,7 +92,8 @@ Name of the manager used to track field ownership.
8992
<td colspan="2">-h, --help</td>
9093
</tr>
9194
<tr>
92-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
95+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
96+
<p>
9397
<!--
9498
help for namespace
9599
-->
@@ -101,7 +105,8 @@ namespace 操作的帮助命令。
101105
<td colspan="2">-o, --output string</td>
102106
</tr>
103107
<tr>
104-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
108+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
109+
<p>
105110
<!--
106111
Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).
107112
-->
@@ -114,7 +119,8 @@ json、yaml、name、go-template、go-template-file、template、templatefile、
114119
<td colspan="2">--save-config</td>
115120
</tr>
116121
<tr>
117-
<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>
118124
<!--
119125
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.
120126
-->
@@ -127,7 +133,8 @@ If true, the configuration of current object will be saved in its annotation. Ot
127133
<td colspan="2">--show-managed-fields</td>
128134
</tr>
129135
<tr>
130-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
136+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
137+
<p>
131138
<!--
132139
If true, keep the managedFields when printing objects in JSON or YAML format.
133140
-->
@@ -139,7 +146,8 @@ If true, keep the managedFields when printing objects in JSON or YAML format.
139146
<td colspan="2">--template string</td>
140147
</tr>
141148
<tr>
142-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
149+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
150+
<p>
143151
<!--
144152
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].
145153
-->
@@ -152,7 +160,8 @@ Template string or path to template file to use when -o=go-template, -o=go-templ
152160
<td colspan="2">--validate string[="strict"]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"strict"</td>
153161
</tr>
154162
<tr>
155-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
163+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
164+
<p>
156165
<!--
157166
Must be one of: strict (or true), warn, ignore (or false). &quot;true&quot; or &quot;strict&quot; will use a schema to validate the input and fail the request if invalid. It will perform server side validation if ServerSideFieldValidation is enabled on the api-server, but will fall back to less reliable client-side validation if not. &quot;warn&quot; will warn about unknown or duplicate fields without blocking the request if server-side field validation is enabled on the API server, and behave as &quot;ignore&quot; otherwise. &quot;false&quot; or &quot;ignore&quot; will not perform any schema validation, silently dropping any unknown or duplicate fields.
158167
-->
@@ -172,7 +181,7 @@ Must be one of: strict (or true), warn, ignore (or false). &quot;true&quot; or &
172181

173182
## {{% heading "parentoptions" %}}
174183

175-
<table style="width: 100%; table-layout: fixed;">
184+
<table style="width: 100%; table-layout: fixed;">
176185
<colgroup>
177186
<col span="1" style="width: 10px;" />
178187
<col span="1" />
@@ -183,7 +192,8 @@ Must be one of: strict (or true), warn, ignore (or false). &quot;true&quot; or &
183192
<td colspan="2">--as string</td>
184193
</tr>
185194
<tr>
186-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
195+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
196+
<p>
187197
<!--
188198
Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
189199
-->
@@ -207,7 +217,8 @@ Group to impersonate for the operation, this flag can be repeated to specify mul
207217
<td colspan="2">--as-uid string</td>
208218
</tr>
209219
<tr>
210-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
220+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
221+
<p>
211222
<!--
212223
UID to impersonate for the operation.
213224
-->
@@ -219,7 +230,8 @@ UID to impersonate for the operation.
219230
<td colspan="2">--cache-dir string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:"$HOME/.kube/cache"</td>
220231
</tr>
221232
<tr>
222-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
233+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
234+
<p>
223235
<!--
224236
Default cache directory
225237
-->
@@ -231,7 +243,8 @@ Default cache directory
231243
<td colspan="2">--certificate-authority string</td>
232244
</tr>
233245
<tr>
234-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
246+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
247+
<p>
235248
<!--
236249
Path to a cert file for the certificate authority
237250
-->
@@ -243,7 +256,8 @@ Path to a cert file for the certificate authority
243256
<td colspan="2">--client-certificate string</td>
244257
</tr>
245258
<tr>
246-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
259+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
260+
<p>
247261
<!--
248262
Path to a client certificate file for TLS
249263
-->
@@ -255,7 +269,8 @@ TLS 客户端证书文件的路径。
255269
<td colspan="2">--client-key string</td>
256270
</tr>
257271
<tr>
258-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
272+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
273+
<p>
259274
<!--
260275
Path to a client key file for TLS
261276
-->
@@ -267,7 +282,8 @@ TLS 客户端密钥文件的路径。
267282
<td colspan="2">--cluster string</td>
268283
</tr>
269284
<tr>
270-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
285+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
286+
<p>
271287
<!--
272288
The name of the kubeconfig cluster to use
273289
-->
@@ -279,43 +295,21 @@ The name of the kubeconfig cluster to use
279295
<td colspan="2">--context string</td>
280296
</tr>
281297
<tr>
282-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
298+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
299+
<p>
283300
<!--
284301
The name of the kubeconfig context to use
285302
-->
286303
要使用的 kubeconfig 上下文的名称。
287304
</p></td>
288305
</tr>
289306

290-
<tr>
291-
<td colspan="2">--default-not-ready-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:300</td>
292-
</tr>
293-
<tr>
294-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
295-
<!--
296-
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.
297-
-->
298-
设置针对 notReady:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
299-
</p></td>
300-
</tr>
301-
302-
<tr>
303-
<td colspan="2">--default-unreachable-toleration-seconds int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:300</td>
304-
</tr>
305-
<tr>
306-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
307-
<!--
308-
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.
309-
-->
310-
设置针对 unreachable:NoExecute 的容忍度的 tolerationSeconds,默认添加到所有尚未设置此容忍度的 Pod。
311-
</p></td>
312-
</tr>
313-
314307
<tr>
315308
<td colspan="2">--disable-compression</td>
316309
</tr>
317310
<tr>
318-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
311+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
312+
<p>
319313
<!--
320314
If true, opt-out of response compression for all requests to the server
321315
-->
@@ -327,7 +321,8 @@ If true, opt-out of response compression for all requests to the server
327321
<td colspan="2">--insecure-skip-tls-verify</td>
328322
</tr>
329323
<tr>
330-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
324+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
325+
<p>
331326
<!--
332327
If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
333328
-->
@@ -347,11 +342,27 @@ CLI 请求要使用的 kubeconfig 文件的路径。
347342
</p></td>
348343
</tr>
349344

345+
<tr>
346+
<td colspan="2">--kuberc string</td>
347+
</tr>
348+
<tr>
349+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
350+
<p>
351+
<!--
352+
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.
353+
-->
354+
用于偏好设置的 kuberc 文件的路径。可以通过导出 KUBECTL_KUBERC=false
355+
特性门控或关闭 KUBERC=off 特性门控来禁用此功能。
356+
</p>
357+
</td>
358+
</tr>
359+
350360
<tr>
351361
<td colspan="2">--match-server-version</td>
352362
</tr>
353363
<tr>
354-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
364+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
365+
<p>
355366
<!--
356367
Require server version to match client version
357368
-->

0 commit comments

Comments
 (0)