add zh pages

This commit is contained in:
Karen Bradshaw
2020-06-01 09:23:39 -04:00
parent 21fd0a12f9
commit 4b35d4d401
303 changed files with 2764 additions and 2439 deletions
@@ -1,15 +1,15 @@
---
title: 联邦 ConfigMap
content_template: templates/task
content_type: task
---
<!--
---
title: Federated ConfigMap
content_template: templates/task
content_type: task
---
-->
{{% capture overview %}}
<!-- overview -->
{{< deprecationfilewarning >}}
{{< include "federation-deprecation-warning-note.md" >}}
@@ -28,9 +28,10 @@ across all the clusters in federation.
ConfigMap](/docs/tasks/configure-pod-container/configure-pod-configmap/) 非常相似且提供相同的功能。
在联邦控制平面中创建它们可以确保它们在联邦的所有集群中同步。
{{% /capture %}}
{{% capture prerequisites %}}
## {{% heading "prerequisites" %}}
* {{< include "federated-task-tutorial-prereqs.md" >}}
<!--
@@ -40,9 +41,9 @@ general and [ConfigMaps](/docs/tasks/configure-pod-container/configure-pod-confi
-->
* 通常我们还期望您拥有基本的 [Kubernetes 应用知识](/docs/tutorials/kubernetes-basics/)
特别是 [ConfigMap](/docs/tasks/configure-pod-container/configure-pod-configmap/) 相关的应用知识。
{{% /capture %}}
{{% capture steps %}}
<!-- steps -->
<!--
## Creating a Federated ConfigMap
@@ -142,6 +143,6 @@ Deleting a Federated ConfigMap does not delete the corresponding ConfigMaps from
要注意的是这时删除联邦 ConfigMap 并不会删除底层集群中对应的 ConfigMap。您必须自己手动删除底层集群中的 ConfigMap。
{{< /note >}}
{{% /capture %}}
@@ -1,15 +1,15 @@
---
title: 联邦 DaemonSet
content_template: templates/task
content_type: task
---
<!--
---
title: Federated DaemonSet
content_template: templates/task
content_type: task
---
-->
{{% capture overview %}}
<!-- overview -->
{{< deprecationfilewarning >}}
{{< include "federation-deprecation-warning-note.md" >}}
@@ -28,9 +28,10 @@ across all the clusters in federation.
联邦控制平面中的 DaemonSet(在本指南中称为 “联邦 DaemonSet”)与传统的 Kubernetes [DaemonSet](/docs/concepts/workloads/controllers/daemonset/) 非常类似,并提供相同的功能。在联邦控制平面中创建联邦 DaemonSet 可以确保它们同步到联邦的所有集群中。
{{% /capture %}}
{{% capture prerequisites %}}
## {{% heading "prerequisites" %}}
* {{< include "federated-task-tutorial-prereqs.md" >}}
<!--
@@ -40,9 +41,9 @@ general and [DaemonSets](/docs/concepts/workloads/controllers/daemonset/) in par
-->
* 你还应该具备基本的 [Kubernetes 应用知识](/docs/tutorials/kubernetes-basics/),特别是 [DaemonSet](/docs/concepts/workloads/controllers/daemonset/) 相关的应用知识。
{{% /capture %}}
{{% capture steps %}}
<!-- steps -->
<!--
## Creating a Federated Daemonset
@@ -130,6 +131,6 @@ kubectl --context=federation-cluster delete daemonset mydaemonset
kubectl --context=federation-cluster delete daemonset mydaemonset
```
{{% /capture %}}
@@ -1,15 +1,15 @@
---
title: 联邦 Deployment
content_template: templates/task
content_type: task
---
<!--
---
title: Federated Deployment
content_template: templates/task
content_type: task
---
-->
{{% capture overview %}}
<!-- overview -->
{{< deprecationfilewarning >}}
{{< include "federation-deprecation-warning-note.md" >}}
@@ -36,9 +36,10 @@ Some features
(such as full rollout compatibility) are still in development.
-->
一些特性(例如完整的 rollout 兼容性)仍在开发中。
{{% /capture %}}
{{% capture prerequisites %}}
## {{% heading "prerequisites" %}}
* {{< include "federated-task-tutorial-prereqs.md" >}}
<!--
@@ -48,9 +49,9 @@ general and [Deployments](/docs/concepts/workloads/controllers/deployment/) in p
-->
* 您还应当拥有基本的 [Kubernetes 应用知识](/docs/tutorials/kubernetes-basics/),特别是在 [Deployments](/docs/concepts/workloads/controllers/deployment/) 方面。
{{% /capture %}}
{{% capture steps %}}
<!-- steps -->
<!--
## Creating a Federated Deployment
@@ -171,6 +172,6 @@ kubectl --context=federation-cluster delete deployment mydep
kubectl --context=federation-cluster delete deployment mydep
```
{{% /capture %}}
@@ -1,16 +1,16 @@
---
title: 联邦事件
content_template: templates/concept
content_type: concept
---
<!--
---
title: Federated Events
content_template: templates/concept
content_type: concept
---
-->
{{% capture overview %}}
<!-- overview -->
{{< deprecationfilewarning >}}
{{< include "federation-deprecation-warning-note.md" >}}
@@ -21,10 +21,10 @@ This guide explains how to use events in federation control plane to help in deb
-->
本指南介绍如何在联邦控制平面中使用事件来帮助调试。
{{% /capture %}}
{{% capture body %}}
<!-- body -->
<!--
## Prerequisites
@@ -84,4 +84,4 @@ The standard kubectl get, update, delete commands will all work.
-->
标准的 kubectl getupdatedelete 命令都可以正常工作。
{{% /capture %}}
@@ -1,16 +1,16 @@
---
title: 联邦 Job
content_template: templates/task
content_type: task
---
<!--
---
title: Federated Jobs
content_template: templates/task
content_type: task
---
-->
{{% capture overview %}}
<!-- overview -->
{{< deprecationfilewarning >}}
{{< include "federation-deprecation-warning-note.md" >}}
@@ -30,9 +30,10 @@ parallelism and completions exist across the registered clusters.
联邦控制平面中的一次性任务(在本指南中称为“联邦一次性任务”)类似于传统的 [Kubernetes 一次性任务](/docs/concepts/workloads/controllers/job/),并且提供相同的功能。
在联邦控制平面中创建 job 可以确保在已注册的集群中存在所需的并行性和完成数。
{{% /capture %}}
{{% capture prerequisites %}}
## {{% heading "prerequisites" %}}
* {{< include "federated-task-tutorial-prereqs.md" >}}
* 你需要具备基本的 [Kubernetes 的工作知识](/docs/tutorials/kubernetes-basics/),特别是 [job](/docs/concepts/workloads/controllers/jobs-run-to-completion/)。
@@ -43,9 +44,9 @@ parallelism and completions exist across the registered clusters.
general and [jobs](/docs/concepts/workloads/controllers/jobs-run-to-completion/) in particular.
-->
{{% /capture %}}
{{% capture steps %}}
<!-- steps -->
<!--
## Creating a federated job
@@ -185,6 +186,6 @@ You must delete the underlying jobs manually.
{{< /note >}}
{{% /capture %}}
@@ -1,16 +1,16 @@
---
title: 联邦命名空间
content_template: templates/task
content_type: task
---
<!--
---
title: Federated Namespaces
content_template: templates/task
content_type: task
---
-->
{{% capture overview %}}
<!-- overview -->
{{< deprecationfilewarning >}}
{{< include "federation-deprecation-warning-note.md" >}}
@@ -31,9 +31,10 @@ across all the clusters in federation.
联邦控制平面中的命名空间(本指南中称为“联邦命名空间”)与提供相同功能的传统 Kubernetes 命名空间非常相似。
在联邦控制平面中创建它们可确保它们在联邦中的所有集群之间同步
{{% /capture %}}
{{% capture prerequisites %}}
## {{% heading "prerequisites" %}}
* {{< include "federated-task-tutorial-prereqs.md" >}}
* 您还需要具备基本的 [Kubernetes 工作知识](/docs/tutorials/Kubernetes-basics/)
@@ -45,9 +46,9 @@ You are also expected to have a basic
general and [Namespaces](/docs/concepts/overview/working-with-objects/namespaces/) in particular.
-->
{{% /capture %}}
{{% capture steps %}}
<!-- steps -->
<!--
## Creating a Federated Namespace
@@ -152,6 +153,6 @@ At this point, deleting a federated Namespace will not delete the corresponding
{{< /note >}}
{{% /capture %}}
@@ -1,15 +1,15 @@
---
title: 联邦 ReplicaSet
content_template: templates/task
content_type: task
---
<!--
---
title: Federated ReplicaSets
content_template: templates/task
content_type: task
---
-->
{{% capture overview %}}
<!-- overview -->
{{< deprecationfilewarning >}}
{{< include "federation-deprecation-warning-note.md" >}}
@@ -27,9 +27,10 @@ replicas exist across the registered clusters.
本指南阐述了如何在联邦控制平面中使用 ReplicaSet。
在联邦控制平面中的 ReplicaSet (在本指南中称为”联邦 ReplicaSet”) 和传统的 [Kubernetes
ReplicaSet](/docs/concepts/workloads/controllers/replicaset/) 很相似,提供了一样的功能。在联邦控制平面中创建联邦 ReplicaSet 可以确保在联邦的所有集群中都有预期数量的副本。
{{% /capture %}}
{{% capture prerequisites %}}
## {{% heading "prerequisites" %}}
* {{< include "federated-task-tutorial-prereqs.md" >}}
<!--
@@ -39,9 +40,9 @@ general and [ReplicaSets](/docs/concepts/workloads/controllers/replicaset/) in p
-->
* 你还应该具备基本的 [Kubernetes 应用知识](/docs/tutorials/kubernetes-basics/),特别是 [ReplicaSets](/docs/concepts/workloads/controllers/replicaset/) 相关的应用知识。
{{% /capture %}}
{{% capture steps %}}
<!-- steps -->
<!--
## Creating a Federated ReplicaSet
@@ -214,6 +215,6 @@ At this point, deleting a federated ReplicaSet will not delete the corresponding
要注意的是这时删除联邦 ReplicaSet 并不会删除底层集群中对应的 ReplicaSet。您必须自己手动删除底层集群中的 ReplicaSet。我们打算在将来修复这个问题。
{{< /note >}}
{{% /capture %}}
@@ -1,16 +1,16 @@
---
title: 联邦 Secret
content_template: templates/concept
content_type: concept
---
<!--
---
title: Federated Secrets
content_template: templates/concept
content_type: concept
---
-->
{{% capture overview %}}
<!-- overview -->
{{< deprecationfilewarning >}}
{{< include "federation-deprecation-warning-note.md" >}}
@@ -30,10 +30,10 @@ across all the clusters in federation.
联邦控制平面中的 Secret(在本指南中称为“联邦 secret”)与提供相同功能的传统 [Kubernetes Secret](/docs/concepts/configuration/secret/) 非常相似。
在联邦控制平面中创建它们可以确保它们跨联邦中的所有集群同步。
{{% /capture %}}
{{% capture body %}}
<!-- body -->
<!--
## Prerequisites
@@ -161,4 +161,4 @@ At this point, deleting a federated secret will not delete the corresponding sec
{{< /note >}}
{{% /capture %}}
@@ -1,6 +1,6 @@
---
title: 使用联合服务来实现跨集群的服务发现
content_template: templates/task
content_type: task
weight: 140
---
<!-- ---
@@ -8,11 +8,11 @@ title: Cross-cluster Service Discovery using Federated Services
reviewers:
- bprashanth
- quinton-hoole
content_template: templates/task
content_type: task
weight: 140
--- -->
{{% capture overview %}}
<!-- overview -->
{{< deprecationfilewarning >}}
{{< include "federation-deprecation-warning-note.md" >}}
@@ -52,17 +52,18 @@ cluster if it exists and is healthy, or the closest healthy shard in a
different cluster if it does not. -->
如果存在健康的分片,联合 Kubernetes 集群(即 Pods )中的客户端将自动在其中找到联合服务的本地分片集群或者集群中最接近的健康分片;如果不存在,则使用最接近的其他集群的健康分片。
{{% /capture %}}
{{< toc >}}
{{% capture prerequisites %}}
## {{% heading "prerequisites" %}}
{{< include "task-tutorial-prereqs.md" >}} {{< version-check >}}
{{% /capture %}}
{{% capture steps %}}
<!-- steps -->
<!-- ## Prerequisites -->
## 前提
@@ -432,9 +433,9 @@ many clients will fail over automatically to one of the alternative
IP's in less time than that given appropriate configuration. -->
标准的 Kubernetes 服务集群 IP 已确保无响应的单个 Pod 端点以低延迟(几秒钟)自动退出服务。此外,如上所述,Kubernetes 联邦集群系统会自动监视集群的状态以及联合服务的所有分片后面的端点,并根据需要使分片进入和退出服务(例如,当服务后面的所有端点或者整个集群或可用性区域出现故障时,或者相反地从中断中恢复时)。由于 DNS 缓存固有的延迟(默认情况下,缓存超时或联合服务 DNS 记录的 TTL 配置为3分钟,可以调整),在灾难性故障的情况下,所有客户端可能要花费很长时间才能完全故障转移到备用集群。但是,鉴于每个区域服务端点可以返回的离散 IP 地址数量(例如上面的 us-central1,它有三个替代方案),与给定的合适配置相比,许多客户端将在更少的时间内自动故障转移到其他 IP。
{{% /capture %}}
{{% capture discussion %}}
<!-- discussion -->
<!-- ## Troubleshooting -->
## 故障排除
@@ -505,4 +506,4 @@ Check that: -->
<!-- * [Federation proposal](https://git.k8s.io/community/contributors/design-proposals/multicluster/federation.md) details use cases that motivated this work. -->
* [联合提议](https://git.k8s.io/community/contributors/design-proposals/multicluster/federation.md) 详细介绍了促进这项工作的用例。
{{% /capture %}}
@@ -1,18 +1,18 @@
---
title: 将 CoreDNS 设置为联邦集群的 DNS 提供者
content_template: templates/tutorial
content_type: tutorial
weight: 130
---
<!--
---
title: Set up CoreDNS as DNS provider for Cluster Federation
content_template: templates/tutorial
content_type: tutorial
weight: 130
---
-->
{{% capture overview %}}
<!-- overview -->
{{< deprecationfilewarning >}}
{{< include "federation-deprecation-warning-note.md" >}}
@@ -24,10 +24,11 @@ DNS provider for Cluster Federation.
-->
此页面显示如何配置和部署 CoreDNS,将其用作联邦集群的 DNS 提供者
{{% /capture %}}
{{% capture objectives %}}
## {{% heading "objectives" %}}
<!--
* Configure and deploy CoreDNS server
@@ -39,10 +40,11 @@ DNS provider for Cluster Federation.
* 使用 CoreDNS 作为 dns 提供者设置联邦
* 在 nameserver 查找链中设置 CoreDNS 服务器
{{% /capture %}}
{{% capture prerequisites %}}
## {{% heading "prerequisites" %}}
<!--
* You need to have a running Kubernetes cluster (which is
@@ -56,10 +58,10 @@ mandatory to enable `CoreDNS` for service discovery across federated clusters.
* 你需要有一个正在运行的 Kubernetes 集群(作为主机集群引用)。请参阅[入门指南](/docs/setup/),了解平台的安装说明。
* 必须在联邦的集群成员中支持 `LoadBalancer` 服务,用来支持跨联邦集群的 `CoreDNS` 服务发现。
{{% /capture %}}
{{% capture lessoncontent %}}
<!-- lessoncontent -->
<!--
## Deploying CoreDNS and etcd charts
@@ -247,6 +249,6 @@ Now the federated cluster is ready for cross-cluster service discovery!
-->
现在联邦集群已经为跨集群服务发现做好了准备!
{{% /capture %}}
@@ -1,14 +1,14 @@
---
title: 在联邦中设置放置策略
content_template: templates/task
content_type: task
---
<!--
title: Set up placement policies in Federation
content_template: templates/task
content_type: task
-->
{{% capture overview %}}
<!-- overview -->
{{< deprecationfilewarning >}}
{{< include "federation-deprecation-warning-note.md" >}}
@@ -20,9 +20,10 @@ resources using an external policy engine.
-->
此页面显示如何使用外部策略引擎对联邦资源强制执行基于策略的放置决策。
{{% /capture %}}
{{% capture prerequisites %}}
## {{% heading "prerequisites" %}}
<!--
You need to have a running Kubernetes cluster (which is referenced as host
@@ -31,9 +32,9 @@ guides for installation instructions for your platform.
-->
您需要一个正在运行的 Kubernetes 集群(它被引用为主机集群)。有关您的平台的安装说明,请参阅[入门](/docs/setup/)指南。
{{% /capture %}}
{{% capture steps %}}
<!-- steps -->
<!--
## Deploying Federation and configuring an external policy engine
@@ -325,6 +326,6 @@ Inspect the ReplicaSet to confirm the appropriate annotations have been applied:
kubectl --context=federation get rs nginx-pci -o jsonpath='{.metadata.annotations}'
{{% /capture %}}