Skip to content

Commit 05f0980

Browse files
committed
[zh-cn] Sync dns-horizontal-autoscaling.md
with en page
1 parent 4761ec4 commit 05f0980

File tree

5 files changed

+20
-10
lines changed

5 files changed

+20
-10
lines changed

content/zh-cn/docs/tasks/administer-cluster/controller-manager-leader-migration.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: 迁移多副本的控制面以使用云控制器管理器
33
linkTitle: 迁移多副本的控制面以使用云控制器管理器
44
content_type: task
5+
weight: 250
56
---
67

78
<!--
@@ -11,6 +12,7 @@ reviewers:
1112
title: "Migrate Replicated Control Plane To Use Cloud Controller Manager"
1213
linkTitle: "Migrate Replicated Control Plane To Use Cloud Controller Manager"
1314
content_type: task
15+
weight: 250
1416
-->
1517

1618
<!-- overview -->
@@ -22,7 +24,7 @@ content_type: task
2224
<!--
2325
## Background
2426
25-
As part of the [cloud provider extraction effort](http://kubernetes.io/blog/2019/04/17/the-future-of-cloud-providers-in-kubernetes/),
27+
As part of the [cloud provider extraction effort](/blog/2019/04/17/the-future-of-cloud-providers-in-kubernetes/),
2628
all cloud specific controllers must be moved out of the `kube-controller-manager`.
2729
All existing clusters that run cloud controllers in the `kube-controller-manager` must migrate to instead run the controllers in a cloud provider specific `cloud-controller-manager`.
2830
@@ -32,7 +34,7 @@ For a single-node control plane, or if unavailability of controller managers can
3234
-->
3335
## 背景
3436

35-
作为[云驱动提取工作](http://kubernetes.io/blog/2019/04/17/the-future-of-cloud-providers-in-kubernetes/)
37+
作为[云驱动提取工作](/blog/2019/04/17/the-future-of-cloud-providers-in-kubernetes/)
3638
的一部分,所有特定于云的控制器都必须移出 `kube-controller-manager`
3739
所有在 `kube-controller-manager` 中运行云控制器的现有集群必须迁移到特定于云厂商的
3840
`cloud-controller-manager` 中运行这些控制器。

content/zh-cn/docs/tasks/administer-cluster/coredns.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: 使用 CoreDNS 进行服务发现
33
min-kubernetes-server-version: v1.9
44
content_type: task
5+
weight: 380
56
---
67

78
<!--
@@ -10,6 +11,7 @@ reviewers:
1011
title: Using CoreDNS for Service Discovery
1112
min-kubernetes-server-version: v1.9
1213
content_type: task
14+
weight: 380
1315
-->
1416

1517
<!-- overview -->
@@ -119,9 +121,9 @@ can take care of retaining the existing CoreDNS configuration automatically.
119121
<!--
120122
## Tuning CoreDNS
121123
122-
When resource utilisation is a concern, it may be useful to tune
123-
the configuration of CoreDNS. For more details, check out the
124-
[documentation on scaling CoreDNS]((http://github.com/coredns/deployment/blob/master/kubernetes/Scaling_CoreDNS.md)).
124+
When resource utilisation is a concern, it may be useful to tune the
125+
configuration of CoreDNS. For more details, check out the
126+
[documentation on scaling CoreDNS](http://github.com/coredns/deployment/blob/master/kubernetes/Scaling_CoreDNS.md).
125127
-->
126128
## CoreDNS 调优
127129

content/zh-cn/docs/tasks/administer-cluster/cpu-management-policies.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: 控制节点上的 CPU 管理策略
33
content_type: task
44
min-kubernetes-server-version: v1.26
5+
weight: 140
56
---
67
<!--
78
title: Control CPU Management Policies on the Node
@@ -12,6 +13,7 @@ reviewers:
1213
1314
content_type: task
1415
min-kubernetes-server-version: v1.26
16+
weight: 140
1517
-->
1618

1719
<!-- overview -->

content/zh-cn/docs/tasks/administer-cluster/developing-cloud-controller-manager.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: 开发云控制器管理器
33
content_type: task
4+
weight: 190
45
---
56

67
<!--
@@ -10,6 +11,7 @@ reviewers:
1011
- wlan0
1112
title: Developing Cloud Controller Manager
1213
content_type: concept
14+
weight: 190
1315
-->
1416

1517
<!-- overview -->
@@ -48,19 +50,19 @@ Kubernetes 核心代码导入软件包来实现一个 cloud-controller-manager
4850
### 树外(Out of Tree)
4951

5052
<!--
51-
To build an out-of-tree cloud-controller-manager for your cloud, follow these steps:
53+
To build an out-of-tree cloud-controller-manager for your cloud:
5254
-->
5355
要为你的云环境构建一个树外(Out-of-Tree)云控制器管理器:
5456

5557
<!--
5658
1. Create a go package with an implementation that satisfies [cloudprovider.Interface](http://github.com/kubernetes/cloud-provider/blob/master/cloud.go).
57-
2. Use [main.go in cloud-controller-manager](http://github.com/kubernetes/kubernetes/blob/master/cmd/cloud-controller-manager/main.go) from Kubernetes core as a template for your main.go. As mentioned above, the only difference should be the cloud package that will be imported.
58-
3. Import your cloud package in `main.go`, ensure your package has an `init` block to run [cloudprovider.RegisterCloudProvider](http://github.com/kubernetes/cloud-provider/blob/master/plugins.go).
59+
2. Use [`main.go` in cloud-controller-manager](http://github.com/kubernetes/kubernetes/blob/master/cmd/cloud-controller-manager/main.go) from Kubernetes core as a template for your `main.go`. As mentioned above, the only difference should be the cloud package that will be imported.
60+
3. Import your cloud package in `main.go`, ensure your package has an `init` block to run [`cloudprovider.RegisterCloudProvider`](http://github.com/kubernetes/cloud-provider/blob/master/plugins.go).
5961
-->
6062
1. 使用满足 [`cloudprovider.Interface`](http://github.com/kubernetes/cloud-provider/blob/master/cloud.go)
6163
接口的实现来创建一个 Go 语言包。
6264
2. 使用来自 Kubernetes 核心代码库的
63-
[cloud-controller-manager 中的 main.go](http://github.com/kubernetes/kubernetes/blob/master/cmd/cloud-controller-manager/main.go)
65+
[cloud-controller-manager 中的 `main.go`](http://github.com/kubernetes/kubernetes/blob/master/cmd/cloud-controller-manager/main.go)
6466
作为 `main.go` 的模板。如上所述,唯一的区别应该是将导入的云包不同。
6567
3.`main.go` 中导入你的云包,确保你的包有一个 `init` 块来运行
6668
[`cloudprovider.RegisterCloudProvider`](http://github.com/kubernetes/cloud-provider/blob/master/plugins.go)

content/zh-cn/docs/tasks/administer-cluster/dns-custom-nameservers.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: 自定义 DNS 服务
33
content_type: task
44
min-kubernetes-server-version: v1.12
5+
weight: 160
56
---
67
<!--
78
reviewers:
@@ -10,6 +11,7 @@ reviewers:
1011
title: Customizing DNS Service
1112
content_type: task
1213
min-kubernetes-server-version: v1.12
14+
weight: 160
1315
-->
1416

1517
<!-- overview -->
@@ -169,7 +171,7 @@ Corefile 配置包括以下 CoreDNS [插件](http://coredns.io/plugins/):
169171
<!--
170172
* [errors](http://coredns.io/plugins/errors/): Errors are logged to stdout.
171173
* [health](http://coredns.io/plugins/health/): Health of CoreDNS is reported to
172-
`http://localhost:8080/health`. In this extended syntax `lameduck` will make theuprocess
174+
`http://localhost:8080/health`. In this extended syntax `lameduck` will make the process
173175
unhealthy then wait for 5 seconds before the process is shut down.
174176
* [ready](http://coredns.io/plugins/ready/): An HTTP endpoint on port 8181 will return 200 OK,
175177
when all plugins that are able to signal readiness have done so.

0 commit comments

Comments
 (0)