|
1 | 1 | ---
|
2 |
| -title: 使用 Kops 安装 Kubernetes |
3 |
| -content_type: concept |
| 2 | +title: 使用 kOps 安装 Kubernetes |
| 3 | +content_type: task |
4 | 4 | weight: 20
|
5 | 5 | ---
|
| 6 | + |
6 | 7 | <!--
|
7 |
| -title: Installing Kubernetes with kops |
8 |
| -content_type: concept |
| 8 | +title: Installing Kubernetes with kOps |
| 9 | +content_type: task |
9 | 10 | weight: 20
|
10 | 11 | -->
|
11 | 12 |
|
12 | 13 | <!-- overview -->
|
13 | 14 |
|
14 | 15 | <!--
|
15 | 16 | This quickstart shows you how to easily install a Kubernetes cluster on AWS.
|
16 |
| -It uses a tool called [`kops`](https://github.com/kubernetes/kops). |
| 17 | +It uses a tool called [`kOps`](https://github.com/kubernetes/kops). |
17 | 18 | -->
|
18 | 19 | 本篇快速入门介绍了如何在 AWS 上轻松安装 Kubernetes 集群。
|
19 |
| -本篇使用了一个名为 [`kops`](https://github.com/kubernetes/kops) 的工具。 |
| 20 | +本篇使用了一个名为 [`kOps`](https://github.com/kubernetes/kops) 的工具。 |
20 | 21 |
|
21 | 22 | <!--
|
22 |
| -kops is an automated provisioning system: |
| 23 | +`kOps` is an automated provisioning system: |
23 | 24 | -->
|
24 |
| -kops 是一个自动化的制备系统: |
| 25 | +`kOps` 是一个自动化的制备系统: |
25 | 26 |
|
26 | 27 | <!--
|
27 | 28 | * Fully automated installation
|
28 | 29 | * Uses DNS to identify clusters
|
29 | 30 | * Self-healing: everything runs in Auto-Scaling Groups
|
30 |
| -* Multiple OS support (Debian, Ubuntu 16.04 supported, CentOS & RHEL, Amazon Linux and CoreOS) - see the [images.md](https://github.com/kubernetes/kops/blob/master/docs/operations/images.md) |
| 31 | +* Multiple OS support (Amazon Linux, Debian, Flatcar, RHEL, Rocky and Ubuntu) - see the [images.md](https://github.com/kubernetes/kops/blob/master/docs/operations/images.md) |
31 | 32 | * High-Availability support - see the [high_availability.md](https://github.com/kubernetes/kops/blob/master/docs/operations/high_availability.md)
|
32 | 33 | * Can directly provision, or generate terraform manifests - see the [terraform.md](https://github.com/kubernetes/kops/blob/master/docs/terraform.md)
|
33 | 34 | -->
|
34 | 35 | * 全自动安装流程
|
35 | 36 | * 使用 DNS 识别集群
|
36 | 37 | * 自我修复:一切都在自动扩缩组中运行
|
37 |
| -* 支持多种操作系统(如 Debian、Ubuntu 16.04、CentOS、RHEL、Amazon Linux 和 CoreOS), |
| 38 | +* 支持多种操作系统(Amazon Linux、Debian、Flatcar、RHEL、Rocky 和 Ubuntu), |
38 | 39 | 参考 [images.md](https://github.com/kubernetes/kops/blob/master/docs/operations/images.md)。
|
39 | 40 | * 支持高可用,参考 [high_availability.md](https://github.com/kubernetes/kops/blob/master/docs/operations/high_availability.md)。
|
40 | 41 | * 可以直接提供或者生成 terraform 清单,参考 [terraform.md](https://github.com/kubernetes/kops/blob/master/docs/terraform.md)。
|
@@ -67,7 +68,7 @@ kops 是一个自动化的制备系统:
|
67 | 68 |
|
68 | 69 | Download kops from the [releases page](https://github.com/kubernetes/kops/releases) (it is also convenient to build from source):
|
69 | 70 | -->
|
70 |
| -## 创建集群 |
| 71 | +## 创建集群 {#creating-a-cluster} |
71 | 72 |
|
72 | 73 | ### (1/5) 安装 kops
|
73 | 74 |
|
@@ -124,6 +125,9 @@ Move the kops binary in to your PATH.
|
124 | 125 | sudo mv kops-darwin-amd64 /usr/local/bin/kops
|
125 | 126 | ```
|
126 | 127 |
|
| 128 | +<!-- |
| 129 | +You can also install kops using [Homebrew](https://brew.sh/). |
| 130 | +--> |
127 | 131 | 你也可以使用 [Homebrew](https://brew.sh/) 安装 kops:
|
128 | 132 |
|
129 | 133 | ```shell
|
@@ -177,8 +181,10 @@ Move the kops binary in to your PATH.
|
177 | 181 | sudo mv kops-linux-amd64 /usr/local/bin/kops
|
178 | 182 | ```
|
179 | 183 |
|
180 |
| -你也可以使用 [Homebrew](https://docs.brew.sh/Homebrew-on-Linux) |
181 |
| -来安装 kops: |
| 184 | +<!-- |
| 185 | +You can also install kops using [Homebrew](https://docs.brew.sh/Homebrew-on-Linux). |
| 186 | +--> |
| 187 | +你也可以使用 [Homebrew](https://docs.brew.sh/Homebrew-on-Linux) 来安装 kops。 |
182 | 188 |
|
183 | 189 | ```shell
|
184 | 190 | brew update && brew install kops
|
@@ -250,9 +256,7 @@ your cluster is configured correctly if you have the dig tool by running:
|
250 | 256 | 检查你的 route53 域已经被正确设置(这是导致问题的最常见原因!)。
|
251 | 257 | 如果你安装了 dig 工具,则可以通过运行以下步骤再次检查集群是否配置正确:
|
252 | 258 |
|
253 |
| -```shell |
254 |
| -dig DNS dev.example.com |
255 |
| -``` |
| 259 | +`dig NS dev.example.com` |
256 | 260 |
|
257 | 261 | <!--
|
258 | 262 | You should see the 4 NS records that Route53 assigned your hosted zone.
|
@@ -356,15 +360,13 @@ GPU and non-GPU instances.
|
356 | 360 | <!--
|
357 | 361 | ### (5/5) Create the cluster in AWS
|
358 | 362 |
|
359 |
| -Run "kops update cluster" to create your cluster in AWS: |
| 363 | +Run `kops update cluster` to create your cluster in AWS: |
360 | 364 | -->
|
361 | 365 | ### (5/5) 在 AWS 中创建集群
|
362 | 366 |
|
363 | 367 | 运行 `kops update cluster` 以在 AWS 中创建集群:
|
364 | 368 |
|
365 |
| -```shell |
366 |
| -kops update cluster useast1.dev.example.com --yes |
367 |
| -``` |
| 369 | +`kops update cluster useast1.dev.example.com --yes` |
368 | 370 |
|
369 | 371 | <!--
|
370 | 372 | That takes a few seconds to run, but then your cluster will likely take a few minutes to actually be ready.
|
@@ -403,24 +405,21 @@ See the [list of add-ons](/docs/concepts/cluster-administration/addons/) to expl
|
403 | 405 |
|
404 | 406 | * To delete your cluster: `kops delete cluster useast1.dev.example.com --yes`
|
405 | 407 | -->
|
406 |
| -## 清理 |
| 408 | +## 清理 {#cleanup} |
407 | 409 |
|
408 | 410 | * 删除集群:`kops delete cluster useast1.dev.example.com --yes`
|
409 | 411 |
|
410 | 412 | ## {{% heading "whatsnext" %}}
|
411 | 413 |
|
412 | 414 | <!--
|
413 | 415 | * Learn more about Kubernetes [concepts](/docs/concepts/) and [`kubectl`](/docs/reference/kubectl/).
|
414 |
| -* Learn more about `kops` [advanced usage](https://kops.sigs.k8s.io/) for tutorials, best practices and advanced configuration options. |
415 |
| -* Follow `kops` community discussions on Slack: [community discussions](https://github.com/kubernetes/kops#other-ways-to-communicate-with-the-contributors) |
| 416 | +* Learn more about `kOps` [advanced usage](https://kops.sigs.k8s.io/) for tutorials, best practices and advanced configuration options. |
| 417 | +* Follow `kOps` community discussions on Slack: [community discussions](https://github.com/kubernetes/kops#other-ways-to-communicate-with-the-contributors). |
| 418 | +* Contribute to `kOps` by addressing or raising an issue [GitHub Issues](https://github.com/kubernetes/kops/issues). |
416 | 419 | -->
|
417 | 420 | * 了解有关 Kubernetes 的[概念](/zh-cn/docs/concepts/)和
|
418 | 421 | [`kubectl`](/zh-cn/docs/reference/kubectl/) 的更多信息。
|
419 |
| -* 参阅 `kops` [进阶用法](https://kops.sigs.k8s.io/)获取教程、最佳实践和进阶配置选项。 |
| 422 | +* 参阅 `kOps` [进阶用法](https://kops.sigs.k8s.io/) 获取教程、最佳实践和进阶配置选项。 |
420 | 423 | * 通过 Slack:[社区讨论](https://github.com/kubernetes/kops#other-ways-to-communicate-with-the-contributors)
|
421 |
| - 参与 `kops` 社区讨论。 |
422 |
| - |
423 |
| -<!-- |
424 |
| -* Contribute to `kops` by addressing or raising an issue [GitHub Issues](https://github.com/kubernetes/kops/issues) |
425 |
| ---> |
426 |
| -* 通过解决或提出一个 [GitHub Issue](https://github.com/kubernetes/kops/issues) 来为 `kops` 做贡献。 |
| 424 | + 参与 `kOps` 社区讨论。 |
| 425 | +* 通过解决或提出一个 [GitHub Issue](https://github.com/kubernetes/kops/issues) 来为 `kOps` 做贡献。 |
0 commit comments