Skip to content

Commit bb9d297

Browse files
authored
Merge pull request #34062 from LeeLin2602/main
[zh] translate what-is-kubernetes.md to improve zh localization
2 parents f1d36aa + 0e32902 commit bb9d297

File tree

1 file changed

+30
-28
lines changed

1 file changed

+30
-28
lines changed

content/zh/docs/concepts/overview/what-is-kubernetes.md

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Google 在 2014 年开源了 Kubernetes 项目。Kubernetes 建立在
4545
## Going back in time
4646
Let's take a look at why Kubernetes is so useful by going back in time.
4747
-->
48-
## 时光回溯
48+
## 时光回溯 {#going-back-in-time}
4949

5050
让我们回顾一下为何 Kubernetes 能够裨益四方。
5151

@@ -61,28 +61,28 @@ Early on, organizations ran applications on physical servers. There was no way t
6161
-->
6262
**传统部署时代:**
6363

64-
早期,各个组织机构在物理服务器上运行应用程序。无法为物理服务器中的应用程序定义资源边界,这会导致资源分配问题。
64+
早期,各个组织机构在物理服务器上运行应用程序。无法为物理服务器中的应用程序定义资源限制,这会导致资源分配问题。
6565
例如,如果在物理服务器上运行多个应用程序,则可能会出现一个应用程序占用大部分资源的情况,
6666
结果可能导致其他应用程序的性能下降。
67-
一种解决方案是在不同的物理服务器上运行每个应用程序,但是由于资源利用不足而无法扩展
68-
并且维护许多物理服务器的成本很高
67+
一种解决方案是在不同的物理服务器上运行每个应用程序,但是当资源利用率不高时,这种方法可扩展性较差
68+
而且维护许多物理服务器的成本很高
6969

7070
<!--
7171
**Virtualized deployment era:**
7272
As a solution, virtualization was introduced. It allows you to run multiple Virtual Machines (VMs) on a single physical server's CPU. Virtualization allows applications to be isolated between VMs and provides a level of security as the information of one application cannot be freely accessed by another application.
7373
-->
7474
**虚拟化部署时代:**
7575

76-
作为解决方案,引入了虚拟化。虚拟化技术允许你在单个物理服务器的 CPU 上运行多个虚拟机(VM)。
77-
虚拟化允许应用程序在 VM 之间隔离,并提供一定程度的安全,因为一个应用程序的信息
78-
不能被另一应用程序随意访问
76+
因此,虚拟化技术被引入了。虚拟化技术允许你在单个物理服务器的 CPU 上运行多个虚拟机(VM)。
77+
虚拟化允许应用程序在 VM 之间隔离,并提供一定程度的安全性,
78+
因为一个应用程序的信息不能被另一应用程序随意访问
7979

8080
<!--
8181
Virtualization allows better utilization of resources in a physical server and allows better scalability because an application can be added or updated easily, reduces hardware costs, and much more.
8282
8383
Each VM is a full machine running all the components, including its own operating system, on top of the virtualized hardware.
8484
-->
85-
虚拟化技术能够更好地利用物理服务器上的资源,并且因为可轻松地添加或更新应用程序
85+
虚拟化技术能够更好地利用物理服务器上的资源,并且因为可轻松地添加或更新应用程序
8686
而可以实现更好的可伸缩性,降低硬件成本等等。
8787

8888
每个 VM 是一台完整的计算机,在虚拟化硬件之上运行所有组件,包括其自己的操作系统。
@@ -93,7 +93,7 @@ Containers are similar to VMs, but they have relaxed isolation properties to sha
9393
-->
9494
**容器部署时代:**
9595

96-
容器类似于 VM,但是它们具有被放宽的隔离属性,可以在应用程序之间共享操作系统(OS)。
96+
容器类似于 VM,但是它们具有更宽松的隔离属性,可以在应用程序之间共享操作系统(OS)。
9797
因此,容器被认为是轻量级的。容器与 VM 类似,具有自己的文件系统、CPU、内存、进程空间等。
9898
由于它们与基础架构分离,因此可以跨云和 OS 发行版本进行移植。
9999

@@ -115,8 +115,8 @@ Containers are becoming popular because they have many benefits. Some of the con
115115
* Resource utilization: high efficiency and density.
116116
-->
117117
* 敏捷应用程序的创建和部署:与使用 VM 镜像相比,提高了容器镜像创建的简便性和效率。
118-
* 持续开发、集成和部署:通过快速简单的回滚(由于镜像不可变性),支持可靠且频繁的
119-
容器镜像构建和部署
118+
* 持续开发、集成和部署:通过快速简单的回滚(由于镜像不可变性),
119+
支持可靠且频繁的容器镜像构建和部署
120120
* 关注开发与运维的分离:在构建/发布时而不是在部署时创建应用程序容器镜像,
121121
从而将应用程序与基础架构分离。
122122
* 可观察性:不仅可以显示操作系统级别的信息和指标,还可以显示应用程序的运行状况和其他指标信号。
@@ -133,18 +133,18 @@ Containers are becoming popular because they have many benefits. Some of the con
133133
<!--
134134
## Why you need Kubernetes and what can it do
135135
-->
136-
## 为什么需要 Kubernetes,它能做什么?
136+
## 为什么需要 Kubernetes,它能做什么? {#why-you-need-kubernetes-and-what-can-it-do}
137137

138138
<!--
139139
Containers are a good way to bundle and run your applications. In a production environment, you need to manage the containers that run the applications and ensure that there is no downtime. For example, if a container goes down, another container needs to start. Wouldn't it be easier if this behavior was handled by a system?
140140
-->
141-
容器是打包和运行应用程序的好方式。在生产环境中,你需要管理运行应用程序的容器,并确保不会停机。
142-
例如,如果一个容器发生故障,则需要启动另一个容器。如果系统处理此行为,会不会更容易
141+
容器是打包和运行应用程序的好方式。在生产环境中,你需要管理运行着应用程序的容器,并确保不会停机。
142+
例如,如果一个容器发生故障,则需要启动另一个容器。如果此行为交由给系统处理,是不是会更容易一些
143143

144144
<!--
145145
That's how Kubernetes comes to the rescue! Kubernetes provides you with a framework to run distributed systems resiliently. It takes care of your scaling requirements, failover, deployment patterns, and more. For example, Kubernetes can easily manage a canary deployment for your system.
146146
-->
147-
这就是 Kubernetes 来解决这些问题的方法
147+
这就是 Kubernetes 要来做的事情
148148
Kubernetes 为你提供了一个可弹性运行分布式系统的框架。
149149
Kubernetes 会满足你的扩展要求、故障转移、部署模式等。
150150
例如,Kubernetes 可以轻松管理系统的 Canary 部署。
@@ -160,7 +160,8 @@ Kubernetes can expose a container using the DNS name or using their own IP addre
160160
-->
161161
* **服务发现和负载均衡**
162162

163-
Kubernetes 可以使用 DNS 名称或自己的 IP 地址公开容器,如果进入容器的流量很大,
163+
Kubernetes 可以使用 DNS 名称或自己的 IP 地址来公开容器。
164+
如果进入容器的流量很大,
164165
Kubernetes 可以负载均衡并分配网络流量,从而使部署稳定。
165166

166167
<!--
@@ -177,8 +178,9 @@ You can describe the desired state for your deployed containers using Kubernetes
177178
-->
178179
* **自动部署和回滚**
179180

180-
你可以使用 Kubernetes 描述已部署容器的所需状态,它可以以受控的速率将实际状态
181-
更改为期望状态。例如,你可以自动化 Kubernetes 来为你的部署创建新容器,
181+
你可以使用 Kubernetes 描述已部署容器的所需状态,
182+
它可以以受控的速率将实际状态更改为期望状态。
183+
例如,你可以自动化 Kubernetes 来为你的部署创建新容器,
182184
删除现有容器并将它们的所有资源用于新容器。
183185

184186
<!--
@@ -188,16 +190,16 @@ Kubernetes allows you to specify how much CPU and memory (RAM) each container ne
188190
* **自动完成装箱计算**
189191

190192
Kubernetes 允许你指定每个容器所需 CPU 和内存(RAM)。
191-
当容器指定了资源请求时,Kubernetes 可以做出更好的决策来管理容器的资源
193+
当容器指定了资源请求时,Kubernetes 可以做出更好的决策来为容器分配资源
192194

193195
<!--
194196
* **Self-healing**
195197
Kubernetes restarts containers that fail, replaces containers, kills containers that don’t respond to your user-defined health check, and doesn’t advertise them to clients until they are ready to serve.
196198
-->
197199
* **自我修复**
198200

199-
Kubernetes 重新启动失败的容器、替换容器、杀死不响应用户定义的
200-
运行状况检查的容器,并且在准备好服务之前不将其通告给客户端。
201+
Kubernetes 将重新启动失败的容器、替换容器、杀死不响应用户定义的运行状况检查的容器,
202+
并且在准备好服务之前不将其通告给客户端。
201203

202204
<!--
203205
* **Secret and configuration management**
@@ -211,7 +213,7 @@ Kubernetes lets you store and manage sensitive information, such as passwords, O
211213
<!--
212214
## What Kubernetes is not
213215
-->
214-
## Kubernetes 不是什么
216+
## Kubernetes 不是什么 {#what-kubernetes-is-not}
215217

216218
<!--
217219
Kubernetes is not a traditional, all-inclusive PaaS (Platform as a Service) system. Since Kubernetes operates at the container level rather than at the hardware level, it provides some generally applicable features common to PaaS offerings, such as deployment, scaling, load balancing, logging, and monitoring. However, Kubernetes is not monolithic, and these default solutions are optional and pluggable. Kubernetes provides the building blocks for building developer platforms, but preserves user choice and flexibility where it is important.
@@ -220,7 +222,7 @@ Kubernetes 不是传统的、包罗万象的 PaaS(平台即服务)系统。
220222
由于 Kubernetes 在容器级别而不是在硬件级别运行,它提供了 PaaS 产品共有的一些普遍适用的功能,
221223
例如部署、扩展、负载均衡、日志记录和监视。
222224
但是,Kubernetes 不是单体系统,默认解决方案都是可选和可插拔的。
223-
Kubernetes 提供了构建开发人员平台的基础,但是在重要的地方保留了用户的选择和灵活性。
225+
Kubernetes 为构建开发人员平台提供了基础,但是在重要的地方保留了用户的选择和灵活性。
224226

225227
<!--
226228
Kubernetes:
@@ -237,9 +239,9 @@ Kubernetes:
237239
如果应用程序可以在容器中运行,那么它应该可以在 Kubernetes 上很好地运行。
238240
* 不部署源代码,也不构建你的应用程序。
239241
持续集成(CI)、交付和部署(CI/CD)工作流取决于组织的文化和偏好以及技术要求。
240-
* 不提供应用程序级别的服务作为内置服务,例如中间件(例如消息中间件)、
241-
数据处理框架(例如Spark)、数据库(例如MySQL)、缓存、集群存储系统
242-
(例如Ceph)。这样的组件可以在 Kubernetes 上运行,并且/或者可以由运行在
242+
* 不提供应用程序级别的服务作为内置服务,例如中间件(例如 消息中间件)、
243+
数据处理框架(例如 Spark)、数据库(例如 MySQL)、缓存、集群存储系统
244+
(例如 Ceph)。这样的组件可以在 Kubernetes 上运行,并且/或者可以由运行在
243245
Kubernetes 上的应用程序通过可移植机制(例如,
244246
[开放服务代理](https://openservicebrokerapi.org/))来访问。
245247
<!--
@@ -250,7 +252,7 @@ Kubernetes:
250252
-->
251253
* 不要求日志记录、监视或警报解决方案。
252254
它提供了一些集成作为概念证明,并提供了收集和导出指标的机制。
253-
* 不提供或不要求配置语言/系统(例如 jsonnet),它提供了声明性 API,
255+
* 不提供也不要求配置语言、系统(例如 jsonnet),它提供了声明性 API,
254256
该声明性 API 可以由任意形式的声明性规范所构成。
255257
* 不提供也不采用任何全面的机器配置、维护、管理或自我修复系统。
256258
* 此外,Kubernetes 不仅仅是一个编排系统,实际上它消除了编排的需要。
@@ -267,4 +269,4 @@ Kubernetes:
267269
* Ready to [Get Started](/docs/setup/)?
268270
-->
269271
* 查阅 [Kubernetes 组件](/zh/docs/concepts/overview/components/)
270-
* 开始 [Kubernetes 入门](/zh/docs/setup/)
272+
* 开始 [Kubernetes 的建置](/zh/docs/setup/) 吧!

0 commit comments

Comments
 (0)