Skip to content

Commit e5913a7

Browse files
committed
[zh]Update reference pages(part-4) for links with '/zh/' prefix, using new prefix '/zh-cn/'
1 parent e0d6f94 commit e5913a7

File tree

16 files changed

+113
-113
lines changed

16 files changed

+113
-113
lines changed

content/zh-cn/docs/reference/issues-security/issues.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Kubernetes 问题追踪
33
weight: 10
4-
aliases: [/zh/cve/, /zh/cves/]
4+
aliases: [/zh-cn/cve/, /zh-cn/cves/]
55
---
66

77
<!--
@@ -14,7 +14,7 @@ aliases: [/cve/,/cves/]
1414
To report a security issue, please follow the [Kubernetes security disclosure process](/docs/reference/issues-security/security/#report-a-vulnerability).
1515
-->
1616
要报告安全问题,请遵循
17-
[Kubernetes 安全问题公开流程](/zh/docs/reference/issues-security/security/#report-a-vulnerability)
17+
[Kubernetes 安全问题公开流程](/zh-cn/docs/reference/issues-security/security/#report-a-vulnerability)
1818

1919
<!--
2020
Work on Kubernetes code and public issues are tracked using [GitHub Issues](https://github.com/kubernetes/kubernetes/issues/).

content/zh-cn/docs/reference/issues-security/security.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Kubernetes 安全和信息披露
3-
aliases: [/zh/security/]
3+
aliases: [/zh-cn/security/]
44
content_type: concept
55
weight: 20
66
---

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ files by setting the `KUBECONFIG` environment variable or by setting the
3535
-->
3636
`针对配置信息,`kubectl``$HOME/.kube` 目录中查找一个名为 `config` 的配置文件。
3737
你可以通过设置 `KUBECONFIG` 环境变量或设置
38-
[`--kubeconfig`](/zh/docs/concepts/configuration/organize-cluster-access-kubeconfig/)
39-
参数来指定其它 [kubeconfig](/zh/docs/concepts/configuration/organize-cluster-access-kubeconfig/) 文件。
38+
[`--kubeconfig`](/zh-cn/docs/concepts/configuration/organize-cluster-access-kubeconfig/)
39+
参数来指定其它 [kubeconfig](/zh-cn/docs/concepts/configuration/organize-cluster-access-kubeconfig/) 文件。
4040

4141
<!--
4242
This overview covers `kubectl` syntax, describes the command operations, and provides common examples.
@@ -53,10 +53,10 @@ for a quick guide, see the [cheat sheet](/docs/reference/kubectl/cheatsheet/).
5353
If you're used to using the `docker` command-line tool, [`kubectl` for Docker Users](/docs/reference/kubectl/docker-cli-to-kubectl/)
5454
explains some equivalent commands for Kubernetes.
5555
-->
56-
有关安装说明,请参见[安装 kubectl](/zh/docs/tasks/tools/#kubectl)
57-
如需快速指南,请参见[备忘单](/zh/docs/reference/kubectl/cheatsheet/)
56+
有关安装说明,请参见[安装 kubectl](/zh-cn/docs/tasks/tools/#kubectl)
57+
如需快速指南,请参见[备忘单](/zh-cn/docs/reference/kubectl/cheatsheet/)
5858
如果你更习惯使用 `docker` 命令行工具,
59-
[Docker 用户的 `kubectl`](/zh/docs/reference/kubectl/docker-cli-to-kubectl/)
59+
[Docker 用户的 `kubectl`](/zh-cn/docs/reference/kubectl/docker-cli-to-kubectl/)
6060
介绍了一些 Kubernetes 的等价命令。
6161

6262
<!-- body -->
@@ -131,7 +131,7 @@ for example `create`, `get`, `describe`, `delete`.
131131

132132
* 用一个或多个文件指定资源:`-f file1 -f file2 -f file<#>`
133133

134-
* [使用 YAML 而不是 JSON](/zh/docs/concepts/configuration/overview/#general-configuration-tips)
134+
* [使用 YAML 而不是 JSON](/zh-cn/docs/concepts/configuration/overview/#general-configuration-tips)
135135
因为 YAML 对用户更友好, 特别是对于配置文件。<br/>
136136
例子:`kubectl get -f ./pod.yaml`
137137

@@ -341,7 +341,7 @@ Operation | Syntax | Description
341341
To learn more about command operations, see the [kubectl](/docs/reference/kubectl/kubectl/) reference documentation.
342342
-->
343343
了解更多有关命令操作的信息,
344-
请参阅 [kubectl](/zh/docs/reference/kubectl/kubectl/) 参考文档。
344+
请参阅 [kubectl](/zh-cn/docs/reference/kubectl/kubectl/) 参考文档。
345345

346346
<!--
347347
## Resource types
@@ -431,7 +431,7 @@ The following table includes a list of all the supported resource types and thei
431431
Use the following sections for information about how you can format or sort the output of certain commands. For details about which commands support the various output options, see the [kubectl](/docs/reference/kubectl/kubectl/) reference documentation.
432432
-->
433433
有关如何格式化或排序某些命令的输出的信息,请参阅以下章节。有关哪些命令支持不同输出选项的详细信息,
434-
请参阅 [kubectl](/zh/docs/reference/kubectl/kubectl/) 参考文档。
434+
请参阅 [kubectl](/zh-cn/docs/reference/kubectl/kubectl/) 参考文档。
435435

436436
<!--
437437
### Formatting output
@@ -475,8 +475,8 @@ Output format | Description
475475
`-o custom-columns=<spec>` | 使用逗号分隔的[自定义列](#custom-columns)列表打印表。
476476
`-o custom-columns-file=<filename>` | 使用 `<filename>` 文件中的[自定义列](#custom-columns)模板打印表。
477477
`-o json` | 输出 JSON 格式的 API 对象
478-
`-o jsonpath=<template>` | 打印 [jsonpath](/zh/docs/reference/kubectl/jsonpath/) 表达式定义的字段
479-
`-o jsonpath-file=<filename>` | 打印 `<filename>` 文件中 [jsonpath](/zh/docs/reference/kubectl/jsonpath/) 表达式定义的字段。
478+
`-o jsonpath=<template>` | 打印 [jsonpath](/zh-cn/docs/reference/kubectl/jsonpath/) 表达式定义的字段
479+
`-o jsonpath-file=<filename>` | 打印 `<filename>` 文件中 [jsonpath](/zh-cn/docs/reference/kubectl/jsonpath/) 表达式定义的字段。
480480
`-o name` | 仅打印资源名称而不打印任何其他内容。
481481
`-o wide` | 以纯文本格式输出,包含所有附加信息。对于 Pod 包含节点名。
482482
`-o yaml` | 输出 YAML 格式的 API 对象。
@@ -500,7 +500,7 @@ Remember: See the [kubectl](/docs/reference/kubectl/kubectl/) reference document
500500
for details about which output format is supported by each command.
501501
-->
502502
请记住:有关每个命令支持哪种输出格式的详细信息,
503-
请参阅 [kubectl](/zh/docs/reference/kubectl/kubectl/) 参考文档。
503+
请参阅 [kubectl](/zh-cn/docs/reference/kubectl/kubectl/) 参考文档。
504504

505505
<!--
506506
#### Custom columns
@@ -611,7 +611,7 @@ To output objects to a sorted list in your terminal window, you can add the `--s
611611
-->
612612
要将对象排序后输出到终端窗口,可以将 `--sort-by` 参数添加到支持的 `kubectl` 命令。
613613
通过使用 `--sort-by` 参数指定任何数字或字符串字段来对对象进行排序。
614-
要指定字段,请使用 [jsonpath](/zh/docs/reference/kubectl/jsonpath/) 表达式。
614+
要指定字段,请使用 [jsonpath](/zh-cn/docs/reference/kubectl/jsonpath/) 表达式。
615615

616616
<!--
617617
#### Syntax
@@ -1077,9 +1077,9 @@ Current user: plugins-user
10771077
* To find out more about plugins, take a look at the [example CLI plugin](https://github.com/kubernetes/sample-cli-plugin).
10781078
-->
10791079
* 阅读 `kubectl` 参考文档:
1080-
* kubectl [命令参考](/zh/docs/reference/kubectl/kubectl/)
1080+
* kubectl [命令参考](/zh-cn/docs/reference/kubectl/kubectl/)
10811081
* 参考[命令行参数](/docs/reference/generated/kubectl/kubectl-commands/)
1082-
* 学习关于 [`kubectl` 使用约定](/zh/docs/reference/kubectl/conventions/)
1083-
* 阅读 kubectl 中的 [JSONPath 支持](/zh/docs/reference/kubectl/jsonpath/)
1084-
* 了解如何[使用插件扩展 kubectl](/zh/docs/tasks/extend-kubectl/kubectl-plugins)
1082+
* 学习关于 [`kubectl` 使用约定](/zh-cn/docs/reference/kubectl/conventions/)
1083+
* 阅读 kubectl 中的 [JSONPath 支持](/zh-cn/docs/reference/kubectl/jsonpath/)
1084+
* 了解如何[使用插件扩展 kubectl](/zh-cn/docs/tasks/extend-kubectl/kubectl-plugins)
10851085
* 查看更多[示例 cli 插件](https://github.com/kubernetes/sample-cli-plugin)

content/zh-cn/docs/reference/kubectl/cheatsheet.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ detailed config file information.
9494
## Kubectl 上下文和配置
9595

9696
设置 `kubectl` 与哪个 Kubernetes 集群进行通信并修改配置信息。
97-
查看[使用 kubeconfig 跨集群授权访问](/zh/docs/tasks/access-application-cluster/configure-access-multiple-clusters/)
97+
查看[使用 kubeconfig 跨集群授权访问](/zh-cn/docs/tasks/access-application-cluster/configure-access-multiple-clusters/)
9898
文档获取配置文件详细信息。
9999

100100
<!--
@@ -790,7 +790,7 @@ kubectl taint nodes foo dedicated=special-user:NoSchedule
790790
<!--
791791
List all supported resource types along with their shortnames, [API group](/docs/concepts/overview/kubernetes-api/#api-groups-and-versioning), whether they are [namespaced](/docs/concepts/overview/working-with-objects/namespaces), and [Kind](/docs/concepts/overview/working-with-objects/kubernetes-objects):
792792
-->
793-
列出所支持的全部资源类型和它们的简称、[API 组](/zh/docs/concepts/overview/kubernetes-api/#api-groups-and-versioning), 是否是[名字空间作用域](/zh/docs/concepts/overview/working-with-objects/namespaces)[Kind](/zh/docs/concepts/overview/working-with-objects/kubernetes-objects)
793+
列出所支持的全部资源类型和它们的简称、[API 组](/zh-cn/docs/concepts/overview/kubernetes-api/#api-groups-and-versioning), 是否是[名字空间作用域](/zh-cn/docs/concepts/overview/working-with-objects/namespaces)[Kind](/zh-cn/docs/concepts/overview/working-with-objects/kubernetes-objects)
794794

795795
```bash
796796
kubectl api-resources
@@ -846,8 +846,8 @@ Output format | Description
846846
`-o=custom-columns=<spec>` | 使用逗号分隔的自定义列来打印表格
847847
`-o=custom-columns-file=<filename>` | 使用 `<filename>` 文件中的自定义列模板打印表格
848848
`-o=json` | 输出 JSON 格式的 API 对象
849-
`-o=jsonpath=<template>` | 打印 [jsonpath](/zh/docs/reference/kubectl/jsonpath) 表达式中定义的字段
850-
`-o=jsonpath-file=<filename>` | 打印在 `<filename>` 文件中定义的 [jsonpath](/zh/docs/reference/kubectl/jsonpath) 表达式所指定的字段。
849+
`-o=jsonpath=<template>` | 打印 [jsonpath](/zh-cn/docs/reference/kubectl/jsonpath) 表达式中定义的字段
850+
`-o=jsonpath-file=<filename>` | 打印在 `<filename>` 文件中定义的 [jsonpath](/zh-cn/docs/reference/kubectl/jsonpath) 表达式所指定的字段。
851851
`-o=name` | 仅打印资源名称而不打印其他内容
852852
`-o=wide` | 以纯文本格式输出额外信息,对于 Pod 来说,输出中包含了节点名称
853853
`-o=yaml` | 输出 YAML 格式的 API 对象
@@ -887,7 +887,7 @@ kubectl get pods -A -o=custom-columns='DATA:spec.containers[?(@.image!="k8s.gcr.
887887
kubectl get pods -A -o=custom-columns='DATA:metadata.*'
888888
```
889889

890-
有关更多示例,请参看 kubectl [参考文档](/zh/docs/reference/kubectl/#custom-columns)
890+
有关更多示例,请参看 kubectl [参考文档](/zh-cn/docs/reference/kubectl/#custom-columns)
891891

892892
<!--
893893
### Kubectl output verbosity and debugging
@@ -939,7 +939,7 @@ Verbosity | Description
939939
940940
* See more community [kubectl cheatsheets](https://github.com/dennyzhang/cheatsheet-kubernetes-A4).
941941
-->
942-
* 参阅 [kubectl 概述](/zh/docs/reference/kubectl/),进一步了解 [JsonPath](/zh/docs/reference/kubectl/jsonpath)
943-
* 参阅 [kubectl](/zh/docs/reference/kubectl/kubectl/) 选项。
944-
* 参阅 [kubectl 使用约定](/zh/docs/reference/kubectl/conventions/)来理解如何在可复用的脚本中使用它。
942+
* 参阅 [kubectl 概述](/zh-cn/docs/reference/kubectl/),进一步了解 [JsonPath](/zh-cn/docs/reference/kubectl/jsonpath)
943+
* 参阅 [kubectl](/zh-cn/docs/reference/kubectl/kubectl/) 选项。
944+
* 参阅 [kubectl 使用约定](/zh-cn/docs/reference/kubectl/conventions/)来理解如何在可复用的脚本中使用它。
945945
* 查看社区中其他的 [kubectl 备忘单](https://github.com/dennyzhang/cheatsheet-kubernetes-A4)

content/zh-cn/docs/reference/kubectl/conventions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ For `kubectl run` to satisfy infrastructure as code:
7676
-->
7777

7878
* 使用特定版本的标签标记镜像,不要将该标签改为新版本。例如使用 `:v1234``v1.2.3``r03062016-1-4`
79-
而不是 `:latest`(有关详细信息,请参阅[配置的最佳实践](/zh/docs/concepts/configuration/overview/#container-images))。
79+
而不是 `:latest`(有关详细信息,请参阅[配置的最佳实践](/zh-cn/docs/concepts/configuration/overview/#container-images))。
8080
* 使用基于版本控制的脚本来运行包含大量参数的镜像。
8181
* 对于无法通过 `kubectl run` 参数来表示的功能特性,使用基于源码控制的配置文件,以记录要使用的功能特性。
8282

content/zh-cn/docs/reference/kubectl/docker-cli-to-kubectl.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ service "nginx-http" exposed
9898
<!--
9999
By using kubectl, you can create a [Deployment](/docs/concepts/workloads/controllers/deployment/) to ensure that N pods are running nginx, where N is the number of replicas stated in the spec and defaults to 1. You can also create a [service](/docs/concepts/services-networking/service/) with a selector that matches the pod labels. For more information, see [Use a Service to Access an Application in a Cluster](/docs/tasks/access-application-cluster/service-access-application-cluster).
100100
-->
101-
在 kubectl 命令中,我们创建了一个 [Deployment](/zh/docs/concepts/workloads/controllers/deployment/)
101+
在 kubectl 命令中,我们创建了一个 [Deployment](/zh-cn/docs/concepts/workloads/controllers/deployment/)
102102
这将保证有 N 个运行 nginx 的 Pod(N 代表 spec 中声明的 replica 数,默认为 1)。
103-
我们还创建了一个 [service](/zh/docs/concepts/services-networking/service/),其选择器与容器标签匹配。
104-
查看[使用服务访问集群中的应用程序](/zh/docs/tasks/access-application-cluster/service-access-application-cluster) 获取更多信息。
103+
我们还创建了一个 [service](/zh-cn/docs/concepts/services-networking/service/),其选择器与容器标签匹配。
104+
查看[使用服务访问集群中的应用程序](/zh-cn/docs/tasks/access-application-cluster/service-access-application-cluster) 获取更多信息。
105105

106106
<!--
107107
By default images run in the background, similar to `docker run -d ...`. To run things in the foreground, use [`kubectl run`](/docs/reference/generated/kubectl/kubectl-commands/#run) to create pod:
@@ -280,7 +280,7 @@ kubectl exec -ti nginx-app-5jyvm -- /bin/sh
280280
<!--
281281
For more information, see [Get a Shell to a Running Container](/docs/tasks/debug/debug-application/get-shell-running-container/).
282282
-->
283-
更多信息请查看[获取运行中容器的 Shell 环境](/zh/docs/tasks/debug/debug-application/get-shell-running-container/)
283+
更多信息请查看[获取运行中容器的 Shell 环境](/zh-cn/docs/tasks/debug/debug-application/get-shell-running-container/)
284284

285285
## docker logs
286286

@@ -335,7 +335,7 @@ kubectl logs --previous nginx-app-zibvs
335335
<!--
336336
For more information, see [Logging Architecture](/docs/concepts/cluster-administration/logging/).
337337
-->
338-
查看[日志架构](/zh/docs/concepts/cluster-administration/logging/)获取更多信息。
338+
查看[日志架构](/zh-cn/docs/concepts/cluster-administration/logging/)获取更多信息。
339339

340340
## docker stop and docker rm
341341

@@ -417,7 +417,7 @@ When you use kubectl, you don't delete the pod directly. You have to first delet
417417
There is no direct analog of `docker login` in kubectl. If you are interested in using Kubernetes with a private registry, see [Using a Private Registry](/docs/concepts/containers/images/#using-a-private-registry).
418418
-->
419419
在 kubectl 中没有对 `docker login` 的直接模拟。如果你有兴趣在私有镜像仓库中使用 Kubernetes,
420-
请参阅[使用私有镜像仓库](/zh/docs/concepts/containers/images/#using-a-private-registry)
420+
请参阅[使用私有镜像仓库](/zh-cn/docs/concepts/containers/images/#using-a-private-registry)
421421

422422
## docker version
423423

content/zh-cn/docs/reference/kubectl/kubectl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ kubectl 管理控制 Kubernetes 集群。
2424
<!--
2525
Find more information at: https://kubernetes.io/docs/reference/kubectl/overview/
2626
-->
27-
获取更多信息,请访问 [kubectl 概述](/zh/docs/reference/kubectl/overview/)
27+
获取更多信息,请访问 [kubectl 概述](/zh-cn/docs/reference/kubectl/overview/)
2828

2929
```
3030
kubectl [flags]

content/zh-cn/docs/reference/kubernetes-api/authentication-resources/service-account-v1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ ServiceAccount 将以下内容绑定在一起:
7878
-->
7979
imagePullSecrets 是对同一命名空间中 Secret 的引用列表,用于拉取引用此 ServiceAccount 的 Pod 中的任何镜像。
8080
imagePullSecrets 与 Secrets 不同,因为 Secrets 可以挂载在 Pod 中,但 imagePullSecrets 只能由 kubelet 访问。
81-
更多信息: https://kubernetes.io/zh/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
81+
更多信息: https://kubernetes.io/zh-cn/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
8282

8383
- **secrets** ([]<a href="{{< ref "../common-definitions/object-reference#ObjectReference" >}}">ObjectReference</a>)
8484

@@ -130,7 +130,7 @@ ServiceAccountList 是 ServiceAccount 对象的列表
130130
<!--
131131
List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
132132
-->
133-
ServiceAccount 列表,更多信息: https://kubernetes.io/zh/docs/tasks/configure-pod-container/configure-service-account/
133+
ServiceAccount 列表,更多信息: https://kubernetes.io/zh-cn/docs/tasks/configure-pod-container/configure-service-account/
134134

135135
<!--
136136
## Operations {#Operations}

content/zh-cn/docs/reference/kubernetes-api/common-definitions/local-object-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ LocalObjectReference 包含足够的信息,可以让你在同一命名空间
3939
- **name** (string)
4040

4141
被引用者的名称。
42-
更多信息: https://kubernetes.io/zh/docs/concepts/overview/working-with-objects/names/#names。
42+
更多信息: https://kubernetes.io/zh-cn/docs/concepts/overview/working-with-objects/names/#names。
4343

4444

4545

content/zh-cn/docs/reference/kubernetes-api/config-and-storage-resources/secret-v1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ data 字段值的总字节必须小于 MaxSecretSize 字节。
8383

8484
用于满足程序化方式处理秘密数据。
8585
更多信息:
86-
https://kubernetes.io/zh/docs/concepts/configuration/secret/#secret-types
86+
https://kubernetes.io/zh-cn/docs/concepts/configuration/secret/#secret-types
8787

8888
## SecretList {#SecretList}
8989

@@ -117,7 +117,7 @@ SecretList 是 Secret 的列表。
117117

118118
items 是 Secret 对象的列表。
119119
更多信息:
120-
https://kubernetes.io/zh/docs/concepts/configuration/secret
120+
https://kubernetes.io/zh-cn/docs/concepts/configuration/secret
121121

122122
<!--
123123
## Operations {#Operations}

0 commit comments

Comments
 (0)