Merge pull request #34102 from LeeLin2602/main

[zh] improve zh translation to make it more fluent
pull/34112/head
Kubernetes Prow Robot 2022-06-02 02:27:47 -07:00 committed by GitHub
commit bec0b6b91c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 43 additions and 38 deletions

View File

@ -32,14 +32,15 @@ This page is an overview of Kubernetes.
Kubernetes is a portable, extensible, open source platform for managing containerized workloads and services, that facilitates both declarative configuration and automation. It has a large, rapidly growing ecosystem. Kubernetes services, support, and tools are widely available.
-->
Kubernetes 是一个可移植、可扩展的开源平台,用于管理容器化的工作负载和服务,可促进声明式配置和自动化。
Kubernetes 拥有一个庞大且快速增长的生态系统,其服务、支持和工具的使用范围广泛。
Kubernetes 拥有一个庞大且快速增长的生态,其服务、支持和工具的使用范围相当广泛。
<!--
The name Kubernetes originates from Greek, meaning helmsman or pilot. K8s as an abbreviation results from counting the eight letters between the "K" and the "s". Google open-sourced the Kubernetes project in 2014. Kubernetes combines [over 15 years of Google's experience](/blog/2015/04/borg-predecessor-to-kubernetes/) running production workloads at scale with best-of-breed ideas and practices from the community.
-->
**Kubernetes** 这个名字源于希腊语意为“舵手”或“飞行员”。k8s 这个缩写是因为 k 和 s 之间有八个字符的关系。
Google 在 2014 年开源了 Kubernetes 项目。Kubernetes 建立在
[Google 大规模运行生产工作负载十几年经验](https://research.google/pubs/pub43438)的基础上,结合了社区中最优秀的想法和实践。
Google 在 2014 年开源了 Kubernetes 项目。
Kubernetes 建立在[Google 大规模运行生产工作负载十几年经验](https://research.google/pubs/pub43438)的基础上,
结合了社区中最优秀的想法和实践。
<!--
## Going back in time
@ -61,10 +62,12 @@ Early on, organizations ran applications on physical servers. There was no way t
-->
**传统部署时代:**
早期,各个组织机构在物理服务器上运行应用程序。无法为物理服务器中的应用程序定义资源限制,这会导致资源分配问题。
例如,如果在物理服务器上运行多个应用程序,则可能会出现一个应用程序占用大部分资源的情况,
结果可能导致其他应用程序的性能下降。
一种解决方案是在不同的物理服务器上运行每个应用程序,但是当资源利用率不高时,这种方法可扩展性较差,
早期,各机构是在物理服务器上运行应用程序。
由于无法限制在物理服务器中运行的应用程序资源使用,因此会导致资源分配问题。
例如,如果在物理服务器上运行多个应用程序,
则可能会出现一个应用程序占用大部分资源的情况,而导致其他应用程序的性能下降。
一种解决方案是将每个应用程序都运行在不同的物理服务器上,
但是当某个应用程式资源利用率不高时,剩余资源无法被分配给其他应用程式,
而且维护许多物理服务器的成本很高。
<!--
@ -73,8 +76,8 @@ As a solution, virtualization was introduced. It allows you to run multiple Virt
-->
**虚拟化部署时代:**
因此,虚拟化技术被引入了。虚拟化技术允许你在单个物理服务器的 CPU 上运行多虚拟机VM
虚拟化允许应用程序在 VM 之间隔离,并提供一定程度的安全性,
因此,虚拟化技术被引入了。虚拟化技术允许你在单个物理服务器的 CPU 上运行多虚拟机VM
虚拟化能使应用程序在不同 VM 之间被彼此隔离,且能提供一定程度的安全性,
因为一个应用程序的信息不能被另一应用程序随意访问。
<!--
@ -82,10 +85,10 @@ Virtualization allows better utilization of resources in a physical server and a
Each VM is a full machine running all the components, including its own operating system, on top of the virtualized hardware.
-->
虚拟化技术能够更好地利用物理服务器的资源,并且因为可轻松地添加或更新应用程序,
可以实现更好的可伸缩性,降低硬件成本等等
虚拟化技术能够更好地利用物理服务器的资源,并且因为可轻松地添加或更新应用程序,
因此可以具有更高的可伸缩性,以及降低硬件成本等等的好处
每个 VM 是一台完整的计算机,在虚拟化硬件之上运行所有组件,包括其自己的操作系统。
每个 VM 是一台完整的计算机,在虚拟化硬件之上运行所有组件,包括其自己的操作系统OS
<!--
**Container deployment era:**
@ -93,8 +96,8 @@ Containers are similar to VMs, but they have relaxed isolation properties to sha
-->
**容器部署时代:**
容器类似于 VM但是它们具有更宽松的隔离属性,可以在应用程序之间共享操作系统OS
因此,容器被认为是轻量级的。容器与 VM 类似,具有自己的文件系统、CPU、内存、进程空间等。
容器类似于 VM但是更宽松的隔离特性,使容器之间可以共享操作系统OS
因此,容器比起 VM 被认为是更轻量级的。且与 VM 类似,每个容器都具有自己的文件系统、CPU、内存、进程空间等。
由于它们与基础架构分离,因此可以跨云和 OS 发行版本进行移植。
<!--
@ -116,15 +119,14 @@ Containers are becoming popular because they have many benefits. Some of the con
-->
* 敏捷应用程序的创建和部署:与使用 VM 镜像相比,提高了容器镜像创建的简便性和效率。
* 持续开发、集成和部署:通过快速简单的回滚(由于镜像不可变性),
支持可靠且频繁的容器镜像构建和部署。
* 关注开发与运维的分离:在构建/发布时而不是在部署时创建应用程序容器镜像
提供可靠且频繁的容器镜像构建和部署。
* 关注开发与运维的分离:在构建、发布时创建应用程序容器镜像,而不是在部署时
从而将应用程序与基础架构分离。
* 可观察性:不仅可以显示操作系统级别的信息和指标,还可以显示应用程序的运行状况和其他指标信号。
* 跨开发、测试和生产的环境一致性:在便携式计算机上与在云中相同地运行
* 可观察性:不仅可以显示 OS 级别的信息和指标,还可以显示应用程序的运行状况和其他指标信号。
* 跨开发、测试和生产的环境一致性:在笔记本计算机上也可以和在云中运行一样的应用程序
* 跨云和操作系统发行版本的可移植性:可在 Ubuntu、RHEL、CoreOS、本地、
Google Kubernetes Engine 和其他任何地方运行。
* 以应用程序为中心的管理:提高抽象级别,从在虚拟硬件上运行 OS 到使用逻辑资源在
OS 上运行应用程序。
* 以应用程序为中心的管理:提高抽象级别,从在虚拟硬件上运行 OS 到使用逻辑资源在 OS 上运行应用程序。
* 松散耦合、分布式、弹性、解放的微服务:应用程序被分解成较小的独立部分,
并且可以动态部署和管理 - 而不是在一台大型单机上整体运行。
* 资源隔离:可预测的应用程序性能。
@ -138,8 +140,10 @@ Containers are becoming popular because they have many benefits. Some of the con
<!--
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?
-->
容器是打包和运行应用程序的好方式。在生产环境中,你需要管理运行着应用程序的容器,并确保不会停机。
例如,如果一个容器发生故障,则需要启动另一个容器。如果此行为交由给系统处理,是不是会更容易一些?
容器是打包和运行应用程序的好方式。在生产环境中,
你需要管理运行着应用程序的容器,并确保服务不会下线。
例如,如果一个容器发生故障,则你需要启动另一个容器。
如果此行为交由给系统处理,是不是会更容易一些?
<!--
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.
@ -160,7 +164,7 @@ Kubernetes can expose a container using the DNS name or using their own IP addre
-->
* **服务发现和负载均衡**
Kubernetes 可以使用 DNS 名称或自己的 IP 地址来公开容器。
Kubernetes 可以使用 DNS 名称或自己的 IP 地址来曝露容器。
如果进入容器的流量很大,
Kubernetes 可以负载均衡并分配网络流量,从而使部署稳定。
@ -219,10 +223,11 @@ Kubernetes lets you store and manage sensitive information, such as passwords, O
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.
-->
Kubernetes 不是传统的、包罗万象的 PaaS平台即服务系统。
由于 Kubernetes 在容器级别而不是在硬件级别运行,它提供了 PaaS 产品共有的一些普遍适用的功能,
由于 Kubernetes 是在容器级别运行,而非在硬件级别,
它提供了 PaaS 产品共有的一些普遍适用的功能,
例如部署、扩展、负载均衡、日志记录和监视。
但是Kubernetes 不是单体系统,默认解决方案都是可选和可插拔的。
Kubernetes 为构建开发人员平台提供了基础,但是在重要的地方保留了用户的选择和灵活性。
但是Kubernetes 不是单体monolithic系统那些默认解决方案都是可选、可插拔的。
Kubernetes 为构建开发人员平台提供了基础,但是在重要的地方保留了用户选择权,能有更高的灵活性。
<!--
Kubernetes:
@ -239,28 +244,28 @@ Kubernetes
如果应用程序可以在容器中运行,那么它应该可以在 Kubernetes 上很好地运行。
* 不部署源代码,也不构建你的应用程序。
持续集成CI、交付和部署CI/CD工作流取决于组织的文化和偏好以及技术要求。
* 不提供应用程序级别的服务作为内置服务,例如中间件(例如 消息中间件)、
* 不提供应用程序级别的服务作为内置服务,例如中间件(例如消息中间件)、
数据处理框架(例如 Spark、数据库例如 MySQL、缓存、集群存储系统
(例如 Ceph。这样的组件可以在 Kubernetes 上运行,并且/或者可以由运行在
Kubernetes 上的应用程序通过可移植机制(例如,
[开放服务代理](https://openservicebrokerapi.org/))来访问。
Kubernetes 上的应用程序通过可移植机制
(例如[开放服务代理](https://openservicebrokerapi.org/))来访问。
<!--
* Does not dictate logging, monitoring, or alerting solutions. It provides some integrations as proof of concept, and mechanisms to collect and export metrics.
* Does not provide nor mandate a configuration language/system (for example, jsonnet). It provides a declarative API that may be targeted by arbitrary forms of declarative specifications.
* Does not provide nor adopt any comprehensive machine configuration, maintenance, management, or self-healing systems.
* Additionally, Kubernetes is not a mere orchestration system. In fact, it eliminates the need for orchestration. The technical definition of orchestration is execution of a defined workflow: first do A, then B, then C. In contrast, Kubernetes comprises a set of independent, composable control processes that continuously drive the current state towards the provided desired state. It shouldnt matter how you get from A to C. Centralized control is also not required. This results in a system that is easier to use and more powerful, robust, resilient, and extensible.
-->
* 不要求日志记录、监视或警报解决方案。
提供了一些集成作为概念证明,并提供了收集和导出指标的机制。
* 不提供也不要求配置语言、系统(例如 jsonnet它提供了声明性 API
* 不是日志记录、监视或警报的解决方案。
集成了一些功能作为概念证明,并提供了收集和导出指标的机制。
* 不提供也不要求配置用的语言、系统(例如 jsonnet它提供了声明性 API
该声明性 API 可以由任意形式的声明性规范所构成。
* 不提供也不采用任何全面的机器配置、维护、管理或自我修复系统。
* 此外Kubernetes 不仅仅是一个编排系统,实际上它消除了编排的需要。
编排的技术定义是执行已定义的工作流程:首先执行 A然后执行 B再执行 C。
相比之下Kubernetes 包含一组独立的、可组合的控制过程,
这些过程连续地将当前状态驱动到所提供的所需状态。
如何从 A 到 C 的方式无关紧要,也不需要集中控制,这使得系统更易于使用
且功能更强大、系统更健壮更为弹性和可扩展。
而 Kubernetes 包含了一组独立可组合的控制过程,
可以连续地将当前状态驱动到所提供的预期状态。
你不需要在乎如何从 A 移动到 C也不需要集中控制这使得系统更易于使用
且功能更强大、系统更健壮更为弹性和可扩展。
## {{% heading "whatsnext" %}}
@ -268,5 +273,5 @@ Kubernetes
* Take a look at the [Kubernetes Components](/docs/concepts/overview/components/)
* Ready to [Get Started](/docs/setup/)?
-->
* 查阅 [Kubernetes 组件](/zh/docs/concepts/overview/components/)
* 开始 [Kubernetes 的建置](/zh/docs/setup/) 吧!
* 查阅[Kubernetes 组件](/zh/docs/concepts/overview/components/)
* 开始[Kubernetes 的建置](/zh/docs/setup/)吧!