Skip to content

Commit 7576be8

Browse files
authored
Merge pull request kubernetes#47578 from my-git9/pp-17579
[zh-cn] sync kubectl_kustomize kubectl_get kubectl_expose
2 parents f56b910 + a60bc3b commit 7576be8

File tree

3 files changed

+37
-75
lines changed

3 files changed

+37
-75
lines changed

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

-24
Original file line numberDiff line numberDiff line change
@@ -483,30 +483,6 @@ TLS 客户端密钥文件的路径。
483483
</p></td>
484484
</tr>
485485

486-
<tr>
487-
<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>
488-
</tr>
489-
<tr>
490-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
491-
<!--
492-
CIDRs opened in GCE firewall for L7 LB traffic proxy &amp; health checks
493-
-->
494-
GCE 防火墙中为 L7 负载均衡流量代理和健康检查开放的 CIDR。
495-
</p></td>
496-
</tr>
497-
498-
<tr>
499-
<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>
500-
</tr>
501-
<tr>
502-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
503-
<!--
504-
CIDRs opened in GCE firewall for L4 LB traffic proxy &amp; health checks
505-
-->
506-
GCE 防火墙中为 L4 负载均衡流量代理和健康检查开放的 CIDR。
507-
</p></td>
508-
</tr>
509-
510486
<tr>
511487
<td colspan="2">--cluster string</td>
512488
</tr>

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

+9-25
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ no_list: true
1717
<!--
1818
Display one or many resources.
1919
20-
Prints a table of the most important information about the specified resources. You can filter the list using a label selector and the --selector flag. If the desired resource type is namespaced you will only see results in your current namespace unless you pass --all-namespaces.
20+
Prints a table of the most important information about the specified resources. You can filter the list using a label selector and the --selector flag. If the desired resource type is namespaced you will only see results in the current namespace unless you pass --all-namespaces.
2121
-->
2222
显示一个或多个资源。
2323

@@ -55,6 +55,8 @@ kubectl get [(-o|--output=)json|yaml|name|go-template|go-template-file|template|
5555
# List all replication controllers and services together in ps output format
5656
# List one or more resources by their type and names
5757
# List the 'status' subresource for a single pod
58+
# List all deployments in namespace 'backend'
59+
# List all pods existing in all namespaces
5860
```
5961
-->
6062
```shell
@@ -93,6 +95,12 @@ kubectl get rc/web service/frontend pods/web-pod-13je7
9395

9496
# 列举单个 Pod 的 “status” 子资源
9597
kubectl get pod web-pod-13je7 --subresource status
98+
99+
# 列出 “backend” 命名空间中的所有 Deployment
100+
kubectl get deployments.apps --namespace backend
101+
102+
# 列出所有命名空间中存在的所有 Pod
103+
kubectl get pods --all-namespaces
96104
```
97105

98106
## {{% heading "options" %}}
@@ -502,30 +510,6 @@ TLS 客户端密钥文件的路径。
502510
</p></td>
503511
</tr>
504512

505-
<tr>
506-
<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>
507-
</tr>
508-
<tr>
509-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
510-
<!--
511-
CIDRs opened in GCE firewall for L7 LB traffic proxy &amp; health checks
512-
-->
513-
GCE 防火墙中为 L7 负载均衡流量代理和健康检查开放的 CIDR。
514-
</p></td>
515-
</tr>
516-
517-
<tr>
518-
<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>
519-
</tr>
520-
<tr>
521-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
522-
<!--
523-
CIDRs opened in GCE firewall for L4 LB traffic proxy &amp; health checks
524-
-->
525-
GCE 防火墙中为 L4 负载均衡流量代理和健康检查开放的 CIDR。
526-
</p></td>
527-
</tr>
528-
529513
<tr>
530514
<td colspan="2">--cluster string</td>
531515
</tr>

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

+28-26
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,20 @@ a list of environment variables to be used by functions
110110
</td>
111111
</tr>
112112

113+
<tr>
114+
<td colspan="2">--helm-api-versions strings</td>
115+
</tr>
116+
<tr>
117+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
118+
<p>
119+
<!--
120+
Kubernetes api versions used by Helm for Capabilities.APIVersions
121+
-->
122+
Helm 用于 Capabilities.APIVersions 的 Kubernetes API 版本
123+
</p>
124+
</td>
125+
</tr>
126+
113127
<tr>
114128
<td colspan="2">--helm-command string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--Default: "helm"-->默认:"helm"</td>
115129
</tr>
@@ -124,6 +138,20 @@ helm 命令(可执行文件路径)。
124138
</td>
125139
</tr>
126140

141+
<tr>
142+
<td colspan="2">--helm-kube-version string</td>
143+
</tr>
144+
<tr>
145+
<td></td><td style="line-height: 130%; word-wrap: break-word;">
146+
<p>
147+
<!--
148+
Kubernetes version used by Helm for Capabilities.KubeVersion
149+
-->
150+
Helm 用于 Capabilities.KubeVersion 的 Kubernetes 版本。
151+
</p>
152+
</td>
153+
</tr>
154+
127155
<tr>
128156
<td colspan="2">-h, --help</td>
129157
</tr>
@@ -211,8 +239,6 @@ If specified, write output to this path.
211239
</tbody>
212240
</table>
213241

214-
215-
216242
## {{% heading "parentoptions" %}}
217243

218244
<table style="width: 100%; table-layout: fixed;">
@@ -306,30 +332,6 @@ TLS 客户端密钥文件的路径。
306332
</p></td>
307333
</tr>
308334

309-
<tr>
310-
<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>
311-
</tr>
312-
<tr>
313-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
314-
<!--
315-
CIDRs opened in GCE firewall for L7 LB traffic proxy &amp; health checks
316-
-->
317-
GCE 防火墙中为 L7 负载均衡流量代理和健康检查开放的 CIDR。
318-
</p></td>
319-
</tr>
320-
321-
<tr>
322-
<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>
323-
</tr>
324-
<tr>
325-
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
326-
<!--
327-
CIDRs opened in GCE firewall for L4 LB traffic proxy &amp; health checks
328-
-->
329-
GCE 防火墙中为 L4 负载均衡流量代理和健康检查开放的 CIDR。
330-
</p></td>
331-
</tr>
332-
333335
<tr>
334336
<td colspan="2">--cluster string</td>
335337
</tr>

0 commit comments

Comments
 (0)