Skip to content

Commit 0d9f0d6

Browse files
authored
Merge pull request #31082 from shuaijinchao/zh/sync/kubespray
[zh] synchronization kubespray.md
2 parents 49c8195 + 46b3416 commit 0d9f0d6

File tree

1 file changed

+12
-13
lines changed
  • content/zh/docs/setup/production-environment/tools

1 file changed

+12
-13
lines changed

content/zh/docs/setup/production-environment/tools/kubespray.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,24 +77,23 @@ Provision servers with the following [requirements](https://github.com/kubernete
7777
按以下[要求](https://github.com/kubernetes-sigs/kubespray#requirements)来配置服务器:
7878

7979
<!--
80-
* **Ansible v2.9 and python-netaddr is installed on the machine that will run Ansible commands**
80+
* **Ansible v2.9 and python-netaddr are installed on the machine that will run Ansible commands**
8181
* **Jinja 2.11 (or newer) is required to run the Ansible Playbooks**
8282
* The target servers must have access to the Internet in order to pull docker images. Otherwise, additional configuration is required ([See Offline Environment](https://github.com/kubernetes-sigs/kubespray/blob/master/docs/offline-environment.md))
8383
* The target servers are configured to allow **IPv4 forwarding**
84-
* **Your ssh key must be copied** to all the servers part of your inventory
85-
* The **firewalls are not managed**, you'll need to implement your own rules the way you used to. in order to avoid any issue during deployment you should disable your firewall
86-
* If kubespray is ran from non-root user account, correct privilege escalation method should be configured in the target servers. Then the `ansible_become` flag or command parameters `--become` or `-b` should be specified
84+
* **Your ssh key must be copied** to all the servers in your inventory
85+
* **Firewalls are not managed by kubespray**. You'll need to implement appropriate rules as needed. You should disable your firewall in order to avoid any issues during deployment
86+
* If kubespray is ran from a non-root user account, correct privilege escalation method should be configured in the target servers and the `ansible_become` flag or command parameters `--become` or `-b` should be specified
8787
-->
8888
* 在将运行 Ansible 命令的计算机上安装 Ansible v2.9 和 python-netaddr
8989
* **运行 Ansible Playbook 需要 Jinja 2.11(或更高版本)**
9090
* 目标服务器必须有权访问 Internet 才能拉取 Docker 镜像。否则,
9191
需要其他配置([请参见离线环境](https://github.com/kubernetes-sigs/kubespray/blob/master/docs/offline-environment.md)
9292
* 目标服务器配置为允许 IPv4 转发
93-
* **你的 SSH 密钥必须复制**到清单中的所有服务器部分
94-
* 防火墙不受管理,你将需要按照以前的方式实施自己的规则。
95-
为了避免在部署过程中出现任何问题,你应该禁用防火墙
96-
* 如果从非 root 用户帐户运行 kubespray,则应在目标服务器中配置正确的特权升级方法。
97-
然后应指定“ansible_become” 标志或命令参数 “--become” 或 “-b”
93+
* **你的 SSH 密钥必须复制**到部署集群的所有服务器中
94+
* **防火墙不是由 kubespray 管理的**。你需要根据需求设置适当的规则策略。为了避免部署过程中出现问题,可以禁用防火墙。
95+
* 如果从非 root 用户帐户运行 kubespray,则应在目标服务器中配置正确的特权升级方法
96+
并指定 `ansible_become` 标志或命令参数 `--become``-b`
9897

9998
<!--
10099
Kubespray provides the following utilities to help provision your environment:
@@ -191,16 +190,16 @@ Large deployments (100+ nodes) may require [specific adjustments](https://github
191190
<!--
192191
### (5/5) Verify the deployment
193192
194-
Kubespray provides a way to verify inter-pod connectivity and DNS resolve with [Netchecker](https://github.com/kubernetes-sigs/kubespray/blob/master/docs/netcheck.md). Netchecker ensures the netchecker-agents pods can resolve DNS requests and ping each over within the default namespace. Those pods mimic similar behavior of the rest of the workloads and serve as cluster health indicators.
193+
Kubespray provides a way to verify inter-pod connectivity and DNS resolve with [Netchecker](https://github.com/kubernetes-sigs/kubespray/blob/master/docs/netcheck.md). Netchecker ensures the netchecker-agents pods can resolve DNS requests and ping each over within the default namespace. Those pods mimic similar behavior as the rest of the workloads and serve as cluster health indicators.
195194
-->
196195
### (5/5)验证部署
197196

198197
Kubespray 提供了一种使用
199198
[Netchecker](https://github.com/kubernetes-sigs/kubespray/blob/master/docs/netcheck.md)
200199
验证 Pod 间连接和 DNS 解析的方法。
201-
Netchecker 确保 netchecker-agents pod 可以解析
202-
DNS 请求并在默认名称空间内对每个请求执行 ping 操作。
203-
这些 Pods 模仿其余工作负载的类似行为,并用作集群运行状况指示器。
200+
Netchecker 确保 netchecker-agents Pods 可以解析 DNS 请求,
201+
并在默认命名空间内对每个请求执行 ping 操作。
202+
这些 Pod 模仿其他工作负载类似的行为,并用作集群运行状况指示器。
204203
<!--
205204
## Cluster operations
206205

0 commit comments

Comments
 (0)