Skip to content

Commit 6d67035

Browse files
committed
[zh-cn] sync kubectl_wait kubectl_version kubectl_uncordon kubectl_taint
Signed-off-by: xin.li <[email protected]>
1 parent 9ba1eba commit 6d67035

File tree

4 files changed

+10
-115
lines changed

4 files changed

+10
-115
lines changed

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

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Update the taints on one or more nodes.
3333
* 效果必须是 NoSchedule、PreferNoSchedule 或 NoExecute。
3434
* 目前污点只能应用于节点。
3535

36-
```
36+
```shell
3737
kubectl taint NODE NAME KEY_1=VAL_1:TAINT_EFFECT_1 ... KEY_N=VAL_N:TAINT_EFFECT_N
3838
```
3939

@@ -351,34 +351,6 @@ TLS 客户端密钥文件的路径。
351351
</td>
352352
</tr>
353353

354-
<tr>
355-
<td colspan="2">--cloud-provider-gce-l7lb-src-cidrs cidrs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: 130.211.0.0/22,35.191.0.0/16"-->默认值:130.211.0.0/22,35.191.0.0/16</td>
356-
</tr>
357-
<tr>
358-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
359-
<p>
360-
<!--
361-
CIDRs opened in GCE firewall for L7 LB traffic proxy &amp; health checks
362-
-->
363-
GCE 防火墙中为 L7 负载均衡流量代理和健康检查开放的 CIDR。
364-
</p>
365-
</td>
366-
</tr>
367-
368-
<tr>
369-
<td colspan="2">--cloud-provider-gce-lb-src-cidrs cidrs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: 130.211.0.0/22,209.85.152.0/22,209.85.204.0/22,35.191.0.0/16-->默认值:130.211.0.0/22,209.85.152.0/22,209.85.204.0/22,35.191.0.0/16</td>
370-
</tr>
371-
<tr>
372-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
373-
<p>
374-
<!--
375-
CIDRs opened in GCE firewall for L4 LB traffic proxy &amp; health checks
376-
-->
377-
GCE 防火墙中为 L4 负载均衡流量代理和健康检查开放的 CIDR。
378-
</p>
379-
</td>
380-
</tr>
381-
382354
<tr>
383355
<td colspan="2">--cluster string</td>
384356
</tr>

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

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -194,34 +194,6 @@ TLS 客户端密钥文件的路径。
194194
</td>
195195
</tr>
196196

197-
<tr>
198-
<td colspan="2">--cloud-provider-gce-l7lb-src-cidrs cidrs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: 130.211.0.0/22,35.191.0.0/16"-->默认值:130.211.0.0/22,35.191.0.0/16</td>
199-
</tr>
200-
<tr>
201-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
202-
<p>
203-
<!--
204-
CIDRs opened in GCE firewall for L7 LB traffic proxy &amp; health checks
205-
-->
206-
GCE 防火墙中为 L7 负载均衡流量代理和健康检查开放的 CIDR。
207-
</p>
208-
</td>
209-
</tr>
210-
211-
<tr>
212-
<td colspan="2">--cloud-provider-gce-lb-src-cidrs cidrs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: 130.211.0.0/22,209.85.152.0/22,209.85.204.0/22,35.191.0.0/16-->默认值:130.211.0.0/22,209.85.152.0/22,209.85.204.0/22,35.191.0.0/16</td>
213-
</tr>
214-
<tr>
215-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
216-
<p>
217-
<!--
218-
CIDRs opened in GCE firewall for L4 LB traffic proxy &amp; health checks
219-
-->
220-
GCE 防火墙中为 L4 负载均衡流量代理和健康检查开放的 CIDR。
221-
</p>
222-
</td>
223-
</tr>
224-
225197
<tr>
226198
<td colspan="2">--cluster string</td>
227199
</tr>

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

Lines changed: 7 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,18 @@ Print the client and server version information for the current context.
2020
-->
2121
打印当前上下文的客户端和服务器版本信息。
2222

23-
```
23+
```shell
2424
kubectl version [flags]
2525
```
2626

2727
## {{% heading "examples" %}}
2828

29-
```
30-
# Print the client and server versions for the current context
31-
kubectl version
29+
<!--
30+
# Print the client and server versions for the current context
31+
-->
32+
```shell
33+
# 打印当前上下文的客户端和服务器版本
34+
kubectl version
3235
```
3336

3437
## {{% heading "options" %}}
@@ -194,34 +197,6 @@ TLS 客户端密钥文件的路径。
194197
</td>
195198
</tr>
196199

197-
<tr>
198-
<td colspan="2">--cloud-provider-gce-l7lb-src-cidrs cidrs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: 130.211.0.0/22,35.191.0.0/16"-->默认值:130.211.0.0/22,35.191.0.0/16</td>
199-
</tr>
200-
<tr>
201-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
202-
<p>
203-
<!--
204-
CIDRs opened in GCE firewall for L7 LB traffic proxy &amp; health checks
205-
-->
206-
GCE 防火墙中为 L7 负载均衡流量代理和健康检查开放的 CIDR。
207-
</p>
208-
</td>
209-
</tr>
210-
211-
<tr>
212-
<td colspan="2">--cloud-provider-gce-lb-src-cidrs cidrs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: 130.211.0.0/22,209.85.152.0/22,209.85.204.0/22,35.191.0.0/16-->默认值:130.211.0.0/22,209.85.152.0/22,209.85.204.0/22,35.191.0.0/16</td>
213-
</tr>
214-
<tr>
215-
<td></td><td style="line-height: 130%; word-wrap: break-word;">
216-
<p>
217-
<!--
218-
CIDRs opened in GCE firewall for L4 LB traffic proxy &amp; health checks
219-
-->
220-
GCE 防火墙中为 L4 负载均衡流量代理和健康检查开放的 CIDR。
221-
</p>
222-
</td>
223-
</tr>
224-
225200
<tr>
226201
<td colspan="2">--cluster string</td>
227202
</tr>

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

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ kubectl wait ([-f FILENAME] | resource.group/resource.name | resource.group [(-l
5252
# Wait for pod "busybox1" to be Ready
5353
kubectl wait --for='jsonpath={.status.conditions[?(@.type=="Ready")].status}=True' pod/busybox1
5454

55-
# Wait for the service "loadbalancer" to have ingress.
55+
# Wait for the service "loadbalancer" to have ingress
5656
kubectl wait --for=jsonpath='{.status.loadBalancer.ingress}' service/loadbalancer
5757

5858
# Wait for the pod "busybox1" to be deleted, with a timeout of 60s, after having issued the "delete" command
@@ -73,7 +73,7 @@ kubectl wait --for=jsonpath='{.status.phase}'=Running pod/busybox1
7373
# 等待 Pod "busybox1" 状况变为 Ready
7474
kubectl wait --for='jsonpath={.status.conditions[?(@.type=="Ready")].status}=True' pod/busybox1
7575

76-
# 等待 Service "loadbalancer" 具备入站规则
76+
# 等待 Service "loadbalancer" 具备入站规则
7777
kubectl wait --for=jsonpath='{.status.loadBalancer.ingress}' service/loadbalancer
7878

7979
# 发出 "delete" 命令后,等待 Pod "busybox1" 被删除,超时时间为 60 秒
@@ -365,30 +365,6 @@ TLS 客户端密钥文件的路径。
365365
</p></td>
366366
</tr>
367367
368-
<tr>
369-
<td colspan="2">--cloud-provider-gce-l7lb-src-cidrs cidrs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:130.211.0.0/22,35.191.0.0/16</td>
370-
</tr>
371-
<tr>
372-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
373-
<!--
374-
CIDRs opened in GCE firewall for L7 LB traffic proxy &amp; health checks
375-
-->
376-
GCE 防火墙中为 L7 负载均衡流量代理和健康检查开放的 CIDR。
377-
</p></td>
378-
</tr>
379-
380-
<tr>
381-
<td colspan="2">--cloud-provider-gce-lb-src-cidrs cidrs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default:-->默认值:130.211.0.0/22,209.85.152.0/22,209.85.204.0/22,35.191.0.0/16</td>
382-
</tr>
383-
<tr>
384-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
385-
<!--
386-
CIDRs opened in GCE firewall for L4 LB traffic proxy &amp; health checks
387-
-->
388-
GCE 防火墙中为 L4 负载均衡流量代理和健康检查开放的 CIDR。
389-
</p></td>
390-
</tr>
391-
392368
<tr>
393369
<td colspan="2">--cluster string</td>
394370
</tr>

0 commit comments

Comments
 (0)