diff --git a/content/zh-cn/docs/tutorials/_index.md b/content/zh-cn/docs/tutorials/_index.md index 2feb4bd56d..0c77f56652 100644 --- a/content/zh-cn/docs/tutorials/_index.md +++ b/content/zh-cn/docs/tutorials/_index.md @@ -24,9 +24,9 @@ Before walking through each tutorial, you may want to bookmark the [Standardized Glossary](/docs/reference/glossary/) page for later references. --> Kubernetes 文档的这一部分包含教程。 -每个教程展示了如何完成一个比单个[任务](/zh/docs/tasks/)更大的目标。 +每个教程展示了如何完成一个比单个[任务](/zh-cn/docs/tasks/)更大的目标。 通常一个教程有几个部分,每个部分都有一系列步骤。在浏览每个教程之前, -你可能希望将[标准化术语表](/zh/docs/reference/glossary/)页面添加到书签,供以后参考。 +你可能希望将[标准化术语表](/zh-cn/docs/reference/glossary/)页面添加到书签,供以后参考。 ## 基础知识 {#basics} -* [Kubernetes 基础知识](/zh/docs/tutorials/Kubernetes-Basics/) +* [Kubernetes 基础知识](/zh-cn/docs/tutorials/Kubernetes-Basics/) 是一个深入的交互式教程,帮助你理解 Kubernetes 系统,并尝试一些基本的 Kubernetes 特性。 * [Kubernetes 介绍 (edX)](https://www.edx.org/course/introduction-kubernetes-linuxfoundationx-lfs158x#) -* [你好 Minikube](/zh/docs/tutorials/hello-minikube/) +* [你好 Minikube](/zh-cn/docs/tutorials/hello-minikube/) ## 配置 {#configuration} -* [示例:配置 Java 微服务](/zh/docs/tutorials/configuration/configure-java-microservice/) -* [使用 ConfigMap 配置 Redis](/zh/docs/tutorials/configuration/configure-redis-using-configmap/) +* [示例:配置 Java 微服务](/zh-cn/docs/tutorials/configuration/configure-java-microservice/) +* [使用 ConfigMap 配置 Redis](/zh-cn/docs/tutorials/configuration/configure-redis-using-configmap/) ## 无状态应用程序 {#stateless-applications} -* [公开外部 IP 地址访问集群中的应用程序](/zh/docs/tutorials/stateless-application/expose-external-ip-address/) -* [示例:使用 Redis 部署 PHP 留言板应用程序](/zh/docs/tutorials/stateless-application/guestbook/) +* [公开外部 IP 地址访问集群中的应用程序](/zh-cn/docs/tutorials/stateless-application/expose-external-ip-address/) +* [示例:使用 Redis 部署 PHP 留言板应用程序](/zh-cn/docs/tutorials/stateless-application/guestbook/) ## 有状态应用程序 {#stateful-applications} -* [StatefulSet 基础](/zh/docs/tutorials/stateful-application/basic-stateful-set/) -* [示例:WordPress 和 MySQL 使用持久卷](/zh/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/) -* [示例:使用有状态集部署 Cassandra](/zh/docs/tutorials/stateful-application/cassandra/) -* [运行 ZooKeeper,CP 分布式系统](/zh/docs/tutorials/stateful-application/zookeeper/) +* [StatefulSet 基础](/zh-cn/docs/tutorials/stateful-application/basic-stateful-set/) +* [示例:WordPress 和 MySQL 使用持久卷](/zh-cn/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/) +* [示例:使用有状态集部署 Cassandra](/zh-cn/docs/tutorials/stateful-application/cassandra/) +* [运行 ZooKeeper,CP 分布式系统](/zh-cn/docs/tutorials/stateful-application/zookeeper/) ## 服务 {#services} -* [使用源 IP](/zh/docs/tutorials/services/source-ip/) +* [使用源 IP](/zh-cn/docs/tutorials/services/source-ip/) ## 安全 {#security} -* [在集群级别应用 Pod 安全标准](/zh/docs/tutorials/security/cluster-level-pss/) -* [在名字空间级别应用 Pod 安全标准](/zh/docs/tutorials/security/ns-level-pss/) -* [AppArmor](/zh/docs/tutorials/security/apparmor/) -* [seccomp](/zh/docs/tutorials/security/seccomp/) +* [在集群级别应用 Pod 安全标准](/zh-cn/docs/tutorials/security/cluster-level-pss/) +* [在名字空间级别应用 Pod 安全标准](/zh-cn/docs/tutorials/security/ns-level-pss/) +* [AppArmor](/zh-cn/docs/tutorials/security/apparmor/) +* [seccomp](/zh-cn/docs/tutorials/security/seccomp/) ## {{% heading "whatsnext" %}} @@ -118,6 +118,6 @@ If you would like to write a tutorial, see [Content Page Types](/docs/contribute/style/page-content-types/) for information about the tutorial page. --> -如果你要编写教程,请参阅[内容页面类型](/zh/docs/contribute/style/page-content-types/) +如果你要编写教程,请参阅[内容页面类型](/zh-cn/docs/contribute/style/page-content-types/) 以获取有关教程页面类型的信息。 diff --git a/content/zh-cn/docs/tutorials/configuration/configure-java-microservice/configure-java-microservice.md b/content/zh-cn/docs/tutorials/configuration/configure-java-microservice/configure-java-microservice.md index b7c99d0e8e..b46c61ebd3 100644 --- a/content/zh-cn/docs/tutorials/configuration/configure-java-microservice/configure-java-microservice.md +++ b/content/zh-cn/docs/tutorials/configuration/configure-java-microservice/configure-java-microservice.md @@ -40,11 +40,11 @@ Although Secrets are also used to store key-value pairs, they differ from Config --> ConfigMaps 是存储非机密键值对的 API 对象。 在互动教程中,你会学到如何用 ConfigMap 来保存应用名字。 -ConfigMap 的更多信息,你可以在[这里](/zh/docs/tasks/configure-pod-container/configure-pod-configmap/)找到文档。 +ConfigMap 的更多信息,你可以在[这里](/zh-cn/docs/tasks/configure-pod-container/configure-pod-configmap/)找到文档。 Secrets 尽管也用来存储键值对,但区别于 ConfigMaps 的是:它针对机密/敏感数据,且存储格式为 Base64 编码。 secrets 的这种特性使得它适合于存储证书、密钥、令牌,上述内容你将在交互教程中实现。 -Secrets 的更多信息,你可以在[这里](/zh/docs/concepts/configuration/secret/)找到文档。 +Secrets 的更多信息,你可以在[这里](/zh-cn/docs/concepts/configuration/secret/)找到文档。 ## 示例:使用 MicroProfile、ConfigMaps、Secrets 实现外部化应用配置 -### [启动互动教程](/zh/docs/tutorials/configuration/configure-java-microservice/configure-java-microservice-interactive/) +### [启动互动教程](/zh-cn/docs/tutorials/configuration/configure-java-microservice/configure-java-microservice-interactive/) diff --git a/content/zh-cn/docs/tutorials/configuration/configure-redis-using-configmap.md b/content/zh-cn/docs/tutorials/configuration/configure-redis-using-configmap.md index 51abf7c180..6814327d59 100644 --- a/content/zh-cn/docs/tutorials/configuration/configure-redis-using-configmap.md +++ b/content/zh-cn/docs/tutorials/configuration/configure-redis-using-configmap.md @@ -15,7 +15,7 @@ content_type: tutorial -这篇文档基于[配置 Pod 以使用 ConfigMap](/zh/docs/tasks/configure-pod-container/configure-pod-configmap/) +这篇文档基于[配置 Pod 以使用 ConfigMap](/zh-cn/docs/tasks/configure-pod-container/configure-pod-configmap/) 这个任务,提供了一个使用 ConfigMap 来配置 Redis 的真实案例。 @@ -47,7 +47,7 @@ This page provides a real world example of how to configure Redis using a Config * Understand [Configure a Pod to Use a ConfigMap](/docs/tasks/configure-pod-container/configure-pod-configmap/). --> * 此页面上显示的示例适用于 `kubectl` 1.14 及以上的版本。 -* 理解[配置 Pod 以使用 ConfigMap](/zh/docs/tasks/configure-pod-container/configure-pod-configmap/)。 +* 理解[配置 Pod 以使用 ConfigMap](/zh-cn/docs/tasks/configure-pod-container/configure-pod-configmap/)。 @@ -370,7 +370,7 @@ kubectl delete pod/redis configmap/example-redis-config -* 了解有关 [ConfigMaps](/zh/docs/tasks/configure-pod-container/configure-pod-configmap/) 的更多信息。 +* 了解有关 [ConfigMaps](/zh-cn/docs/tasks/configure-pod-container/configure-pod-configmap/) 的更多信息。 diff --git a/content/zh-cn/docs/tutorials/hello-minikube.md b/content/zh-cn/docs/tutorials/hello-minikube.md index f9c15568c9..09c04dcb23 100644 --- a/content/zh-cn/docs/tutorials/hello-minikube.md +++ b/content/zh-cn/docs/tutorials/hello-minikube.md @@ -166,9 +166,9 @@ recommended way to manage the creation and scaling of Pods. ## 创建 Deployment -Kubernetes [*Pod*](/zh/docs/concepts/workloads/pods/) 是由一个或多个 +Kubernetes [*Pod*](/zh-cn/docs/concepts/workloads/pods/) 是由一个或多个 为了管理和联网而绑定在一起的容器构成的组。 本教程中的 Pod 只有一个容器。 -Kubernetes [*Deployment*](/zh/docs/concepts/workloads/controllers/deployment/) +Kubernetes [*Deployment*](/zh-cn/docs/concepts/workloads/controllers/deployment/) 检查 Pod 的健康状况,并在 Pod 中的容器终止的情况下重新启动新的容器。 Deployment 是管理 Pod 创建和扩展的推荐方法。 @@ -247,7 +247,7 @@ For more information about `kubectl`commands, see the [kubectl overview](/docs/reference/kubectl/). --> {{< note >}} -有关 `kubectl` 命令的更多信息,请参阅 [kubectl 概述](/zh/docs/reference/kubectl/)。 +有关 `kubectl` 命令的更多信息,请参阅 [kubectl 概述](/zh-cn/docs/reference/kubectl/)。 {{< /note >}} -* 进一步了解 [Deployment 对象](/zh/docs/concepts/workloads/controllers/deployment/)。 -* 进一步了解[部署应用](/zh/docs/tasks/run-application/run-stateless-application-deployment/)。 -* 进一步了解 [Service 对象](/zh/docs/concepts/services-networking/service/)。 +* 进一步了解 [Deployment 对象](/zh-cn/docs/concepts/workloads/controllers/deployment/)。 +* 进一步了解[部署应用](/zh-cn/docs/tasks/run-application/run-stateless-application-deployment/)。 +* 进一步了解 [Service 对象](/zh-cn/docs/concepts/services-networking/service/)。 diff --git a/content/zh-cn/docs/tutorials/kubernetes-basics/_index.html b/content/zh-cn/docs/tutorials/kubernetes-basics/_index.html index 35801b73fa..7054cf6e3c 100644 --- a/content/zh-cn/docs/tutorials/kubernetes-basics/_index.html +++ b/content/zh-cn/docs/tutorials/kubernetes-basics/_index.html @@ -55,25 +55,25 @@ card:
@@ -83,25 +83,25 @@ card:
diff --git a/content/zh-cn/docs/tutorials/kubernetes-basics/create-cluster/cluster-interactive.html b/content/zh-cn/docs/tutorials/kubernetes-basics/create-cluster/cluster-interactive.html index 87e0659ef8..c472facc82 100644 --- a/content/zh-cn/docs/tutorials/kubernetes-basics/create-cluster/cluster-interactive.html +++ b/content/zh-cn/docs/tutorials/kubernetes-basics/create-cluster/cluster-interactive.html @@ -40,7 +40,7 @@ weight: 20 - 继续阅读第二单元 + 继续阅读第二单元
diff --git a/content/zh-cn/docs/tutorials/kubernetes-basics/create-cluster/cluster-intro.html b/content/zh-cn/docs/tutorials/kubernetes-basics/create-cluster/cluster-intro.html index 77d83c4121..0e3f606500 100644 --- a/content/zh-cn/docs/tutorials/kubernetes-basics/create-cluster/cluster-intro.html +++ b/content/zh-cn/docs/tutorials/kubernetes-basics/create-cluster/cluster-intro.html @@ -96,7 +96,7 @@ weight: 10
- 启动交互教程 + 启动交互教程
diff --git a/content/zh-cn/docs/tutorials/kubernetes-basics/deploy-app/deploy-interactive.html b/content/zh-cn/docs/tutorials/kubernetes-basics/deploy-app/deploy-interactive.html index fbb85aeb4c..de3512a5ba 100644 --- a/content/zh-cn/docs/tutorials/kubernetes-basics/deploy-app/deploy-interactive.html +++ b/content/zh-cn/docs/tutorials/kubernetes-basics/deploy-app/deploy-interactive.html @@ -33,7 +33,7 @@ weight: 20
- 继续阅读第3单元 + 继续阅读第3单元
diff --git a/content/zh-cn/docs/tutorials/kubernetes-basics/deploy-app/deploy-intro.html b/content/zh-cn/docs/tutorials/kubernetes-basics/deploy-app/deploy-intro.html index 72485e445a..348deda8c9 100644 --- a/content/zh-cn/docs/tutorials/kubernetes-basics/deploy-app/deploy-intro.html +++ b/content/zh-cn/docs/tutorials/kubernetes-basics/deploy-app/deploy-intro.html @@ -94,7 +94,7 @@ weight: 10

你可以使用 Kubernetes 命令行界面 Kubectl 创建和管理 Deployment。Kubectl 使用 Kubernetes API 与集群进行交互。在本单元中,你将学习创建在 Kubernetes 集群上运行应用程序的 Deployment 所需的最常见的 Kubectl 命令。

-

创建 Deployment 时,你需要指定应用程序的容器映像以及要运行的副本数。你可以稍后通过更新 Deployment 来更改该信息; 模块 56 讨论了如何扩展和更新 Deployments。

+

创建 Deployment 时,你需要指定应用程序的容器映像以及要运行的副本数。你可以稍后通过更新 Deployment 来更改该信息; 模块 56 讨论了如何扩展和更新 Deployments。

@@ -115,7 +115,7 @@ weight: 10

Now that you know what Deployments are, let's go to the online tutorial and deploy our first app!

-->

对于我们的第一次部署,我们将使用打包在 Docker 容器中的 Node.js 应用程序。 要创建 Node.js 应用程序并部署 Docker 容器,请按照 - 你好 Minikube 教程.

+ 你好 Minikube 教程.

现在你已经了解了 Deployment 的内容,让我们转到在线教程并部署我们的第一个应用程序!

@@ -124,7 +124,7 @@ weight: 10
- 开始交互式教程 + 开始交互式教程
diff --git a/content/zh-cn/docs/tutorials/kubernetes-basics/explore/explore-interactive.html b/content/zh-cn/docs/tutorials/kubernetes-basics/explore/explore-interactive.html index 5e469b8a5a..c4ce2e4baa 100644 --- a/content/zh-cn/docs/tutorials/kubernetes-basics/explore/explore-interactive.html +++ b/content/zh-cn/docs/tutorials/kubernetes-basics/explore/explore-interactive.html @@ -42,7 +42,7 @@ weight: 20
- 继续阅读第4单元 + 继续阅读第4单元
diff --git a/content/zh-cn/docs/tutorials/kubernetes-basics/explore/explore-intro.html b/content/zh-cn/docs/tutorials/kubernetes-basics/explore/explore-intro.html index 682807697b..d7d507f2d2 100644 --- a/content/zh-cn/docs/tutorials/kubernetes-basics/explore/explore-intro.html +++ b/content/zh-cn/docs/tutorials/kubernetes-basics/explore/explore-intro.html @@ -43,7 +43,7 @@ weight: 10 -

在模块 2创建 Deployment 时, Kubernetes 添加了一个 Pod 来托管你的应用实例。Pod 是 Kubernetes 抽象出来的,表示一组一个或多个应用程序容器(如 Docker),以及这些容器的一些共享资源。这些资源包括:

+

在模块 2创建 Deployment 时, Kubernetes 添加了一个 Pod 来托管你的应用实例。Pod 是 Kubernetes 抽象出来的,表示一组一个或多个应用程序容器(如 Docker),以及这些容器的一些共享资源。这些资源包括:

-

在模块 2,你使用了 Kubectl 命令行界面。 你将继续在第3单元中使用它来获取有关已部署的应用程序及其环境的信息。 最常见的操作可以使用以下 kubectl 命令完成:

+

在模块 2,你使用了 Kubectl 命令行界面。 你将继续在第3单元中使用它来获取有关已部署的应用程序及其环境的信息。 最常见的操作可以使用以下 kubectl 命令完成:

- 开始交互式教程 + 开始交互式教程 diff --git a/content/zh-cn/docs/tutorials/kubernetes-basics/expose/expose-interactive.html b/content/zh-cn/docs/tutorials/kubernetes-basics/expose/expose-interactive.html index 6e3f84b6cf..f222991cca 100644 --- a/content/zh-cn/docs/tutorials/kubernetes-basics/expose/expose-interactive.html +++ b/content/zh-cn/docs/tutorials/kubernetes-basics/expose/expose-interactive.html @@ -38,7 +38,7 @@ weight: 20
- 继续阅读第5单元 + 继续阅读第5单元
diff --git a/content/zh-cn/docs/tutorials/kubernetes-basics/expose/expose-intro.html b/content/zh-cn/docs/tutorials/kubernetes-basics/expose/expose-intro.html index 0bf2d8293c..a4484c6139 100644 --- a/content/zh-cn/docs/tutorials/kubernetes-basics/expose/expose-intro.html +++ b/content/zh-cn/docs/tutorials/kubernetes-basics/expose/expose-intro.html @@ -35,10 +35,10 @@ weight: 10

Kubernetes Service 总览

-

Kubernetes Pod 是转瞬即逝的。 Pod 实际上拥有 生命周期。 当一个工作 Node 挂掉后, 在 Node 上运行的 Pod 也会消亡。 ReplicaSet 会自动地通过创建新的 Pod 驱动集群回到目标状态,以保证应用程序正常运行。 换一个例子,考虑一个具有3个副本数的用作图像处理的后端程序。这些副本是可替换的; 前端系统不应该关心后端副本,即使 Pod 丢失或重新创建。也就是说,Kubernetes 集群中的每个 Pod (即使是在同一个 Node 上的 Pod )都有一个唯一的 IP 地址,因此需要一种方法自动协调 Pod 之间的变更,以便应用程序保持运行。

+

Kubernetes Pod 是转瞬即逝的。 Pod 实际上拥有 生命周期。 当一个工作 Node 挂掉后, 在 Node 上运行的 Pod 也会消亡。 ReplicaSet 会自动地通过创建新的 Pod 驱动集群回到目标状态,以保证应用程序正常运行。 换一个例子,考虑一个具有3个副本数的用作图像处理的后端程序。这些副本是可替换的; 前端系统不应该关心后端副本,即使 Pod 丢失或重新创建。也就是说,Kubernetes 集群中的每个 Pod (即使是在同一个 Node 上的 Pod )都有一个唯一的 IP 地址,因此需要一种方法自动协调 Pod 之间的变更,以便应用程序保持运行。

-

Kubernetes 中的服务(Service)是一种抽象概念,它定义了 Pod 的逻辑集和访问 Pod 的协议。Service 使从属 Pod 之间的松耦合成为可能。 和其他 Kubernetes 对象一样, Service 用 YAML (更推荐) 或者 JSON 来定义. Service 下的一组 Pod 通常由 LabelSelector (请参阅下面的说明为什么你可能想要一个 spec 中不包含selector的服务)来标记。

+

Kubernetes 中的服务(Service)是一种抽象概念,它定义了 Pod 的逻辑集和访问 Pod 的协议。Service 使从属 Pod 之间的松耦合成为可能。 和其他 Kubernetes 对象一样, Service 用 YAML (更推荐) 或者 JSON 来定义. Service 下的一组 Pod 通常由 LabelSelector (请参阅下面的说明为什么你可能想要一个 spec 中不包含selector的服务)来标记。

尽管每个 Pod 都有一个唯一的 IP 地址,但是如果没有 Service ,这些 IP 不会暴露在集群外部。Service 允许你的应用程序接收流量。Service 也可以用在 ServiceSpec 标记type的方式暴露

@@ -53,7 +53,7 @@ weight: 10
  • ExternalName - 通过返回带有该名称的 CNAME 记录,使用任意名称(由 spec 中的externalName指定)公开 Service。不使用代理。这种类型需要kube-dns的v1.7或更高版本。
  • -

    更多关于不同 Service 类型的信息可以在使用源 IP 教程。 也请参阅 连接应用程序和 Service

    +

    更多关于不同 Service 类型的信息可以在使用源 IP 教程。 也请参阅 连接应用程序和 Service

    另外,需要注意的是有一些 Service 的用例没有在 spec 中定义selector。 一个没有selector创建的 Service 也不会创建相应的端点对象。这允许用户手动将服务映射到特定的端点。没有 selector 的另一种可能是你严格使用type: ExternalName来标记。

    @@ -95,7 +95,7 @@ weight: 10

    Service 通过一组 Pod 路由通信。Service 是一种抽象,它允许 Pod 死亡并在 Kubernetes 中复制,而不会影响应用程序。在依赖的 Pod (如应用程序中的前端和后端组件)之间进行发现和路由是由Kubernetes Service 处理的。

    -

    Service 匹配一组 Pod 是使用 标签(Label)和选择器(Selector), 它们是允许对 Kubernetes 中的对象进行逻辑操作的一种分组原语。标签(Label)是附加在对象上的键/值对,可以以多种方式使用:

    +

    Service 匹配一组 Pod 是使用 标签(Label)和选择器(Selector), 它们是允许对 Kubernetes 中的对象进行逻辑操作的一种分组原语。标签(Label)是附加在对象上的键/值对,可以以多种方式使用: