Skip to content

Commit bef2f7f

Browse files
authored
Merge pull request #37194 from my-git9/zhsync7
[zh-cn]sync access-cluster-api nodelocaldns assign-cpu-resource
2 parents 1ce1427 + 7088045 commit bef2f7f

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

content/zh-cn/docs/tasks/administer-cluster/access-cluster-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Kubernetes command-line tool, `kubectl`.
3939
To access a cluster, you need to know the location of the cluster and have credentials
4040
to access it. Typically, this is automatically set-up when you work through
4141
a [Getting started guide](/docs/setup/),
42-
or someone else setup the cluster and provided you with credentials and a location.
42+
or someone else set up the cluster and provided you with credentials and a location.
4343
-->
4444
要访问集群,你需要知道集群位置并拥有访问它的凭证。
4545
通常,当你完成[入门指南](/zh-cn/docs/setup/)时,这会自动设置完成,或者由其他人设置好集群并将凭证和位置提供给你。
@@ -302,7 +302,7 @@ Pod,请参阅[从 Pod 内访问 API](/zh-cn/docs/tasks/access-application-clus
302302
#### Python 客户端 {#python-client}
303303

304304
<!--
305-
To use [Python client](https://github.com/kubernetes-client/python), run the following command: `pip install kubernetes` See [Python Client Library page](https://github.com/kubernetes-client/python) for more installation options.
305+
To use [Python client](https://github.com/kubernetes-client/python), run the following command: `pip install kubernetes`. See [Python Client Library page](https://github.com/kubernetes-client/python) for more installation options.
306306
-->
307307
要使用 [Python 客户端](https://github.com/kubernetes-client/python),运行下列命令:
308308
`pip install kubernetes`

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ hostnames ("`cluster.local`" suffix by default).
4343
NodeLocal DNSCache 通过在集群节点上作为 DaemonSet 运行 DNS 缓存代理来提高集群 DNS 性能。
4444
在当今的体系结构中,运行在 'ClusterFirst' DNS 模式下的 Pod 可以连接到 kube-dns `serviceIP` 进行 DNS 查询。
4545
通过 kube-proxy 添加的 iptables 规则将其转换为 kube-dns/CoreDNS 端点。
46-
借助这种新架构,Pods 将可以访问在同一节点上运行的 DNS 缓存代理,从而避免 iptables DNAT 规则和连接跟踪。
46+
借助这种新架构,Pod 将可以访问在同一节点上运行的 DNS 缓存代理,从而避免 iptables DNAT 规则和连接跟踪。
4747
本地缓存代理将查询 kube-dns 服务以获取集群主机名的缓存缺失(默认为 "`cluster.local`" 后缀)。
4848

4949
<!--
@@ -185,7 +185,7 @@ This feature can be enabled using the following steps:
185185
* If kube-proxy is running in IPTABLES mode:
186186
187187
``` bash
188-
sed -i "s/__PILLAR__LOCAL__DNS__/$localdns/g; s/__PILLAR__DNS__DOMAIN__/$domain/g; s/__PILLAR__DNS__SERVER__/$kubedns/g" nodelocaldns.yaml
188+
sed -i "s/__PILLAR__LOCAL__DNS__/$localdns/g; s/__PILLAR__DNS__DOMAIN__/$domain/g; s/,__PILLAR__DNS__SERVER__//g; s/__PILLAR__CLUSTER__DNS__/$kubedns/g" nodelocaldns.yaml
189189
```
190190
191191
`__PILLAR__CLUSTER__DNS__` and `__PILLAR__UPSTREAM__SERVERS__` will be populated by
@@ -199,9 +199,9 @@ This feature can be enabled using the following steps:
199199
sed -i "s/__PILLAR__LOCAL__DNS__/$localdns/g; s/__PILLAR__DNS__DOMAIN__/$domain/g; s/__PILLAR__DNS__SERVER__/$kubedns/g" nodelocaldns.yaml
200200
```
201201

202-
node-local-dns Pods 会设置 `__PILLAR__CLUSTER__DNS__``__PILLAR__UPSTREAM__SERVERS__`
203-
在此模式下, node-local-dns Pods 会同时侦听 kube-dns 服务的 IP 地址和
204-
`<node-local-address>` 的地址,以便 Pods 可以使用其中任何一个 IP 地址来查询 DNS 记录。
202+
node-local-dns Pod 会设置 `__PILLAR__CLUSTER__DNS__``__PILLAR__UPSTREAM__SERVERS__`
203+
在此模式下, node-local-dns Pod 会同时侦听 kube-dns 服务的 IP 地址和
204+
`<node-local-address>` 的地址,以便 Pod 可以使用其中任何一个 IP 地址来查询 DNS 记录。
205205

206206
<!--
207207
* If kube-proxy is running in IPVS mode:
@@ -221,7 +221,7 @@ This feature can be enabled using the following steps:
221221
sed -i "s/__PILLAR__LOCAL__DNS__/$localdns/g; s/__PILLAR__DNS__DOMAIN__/$domain/g; s/,__PILLAR__DNS__SERVER__//g; s/__PILLAR__CLUSTER__DNS__/$kubedns/g" nodelocaldns.yaml
222222
```
223223

224-
在此模式下,node-local-dns Pods 只会侦听 `<node-local-address>` 的地址。
224+
在此模式下,node-local-dns Pod 只会侦听 `<node-local-address>` 的地址。
225225
node-local-dns 接口不能绑定 kube-dns 的集群 IP 地址,因为 IPVS 负载均衡使用的接口已经占用了该地址。
226226
node-local-dns Pod 会设置 `__PILLAR__UPSTREAM__SERVERS__`
227227

@@ -250,7 +250,7 @@ be available on a per-node basis.
250250
You can disable this feature by removing the DaemonSet, using `kubectl delete -f <manifest>`.
251251
You should also revert any changes you made to the kubelet configuration.
252252
-->
253-
启用后,`node-local-dns` Pods 将在每个集群节点上的 `kube-system` 名字空间中运行。
253+
启用后,`node-local-dns` Pod 将在每个集群节点上的 `kube-system` 名字空间中运行。
254254
此 Pod 在缓存模式下运行 [CoreDNS](https://github.com/coredns/coredns),
255255
因此每个节点都可以使用不同插件公开的所有 CoreDNS 指标。
256256

content/zh-cn/docs/tasks/configure-pod-container/assign-cpu-resource.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ resources:
156156
```
157157
158158
<!--
159-
Use `kubectl top` to fetch the metrics for the pod:
159+
Use `kubectl top` to fetch the metrics for the Pod:
160160
-->
161161
使用 `kubectl top` 命令来获取该 Pod 的指标:
162162

0 commit comments

Comments
 (0)