编辑
2023-09-24
英语学习
00
请注意,本文编写于 594 天前,最后修改于 594 天前,其中某些信息可能已经过时。

目录

How is Kubernetes (k8s) different from Docker?

How is Kubernetes (k8s) different from Docker?

The question “Kubernetes vs. Docker?” in itself is rather absurd, like comparing apples to oranges. One isn’t an alternative to the other. Quite the contrary, Kubernetes can run without Docker and Docker can function without Kubernetes. But Kubernetes can (and does) benefit greatly from Docker and vice versa.

中文翻译

"“Kubernetes vs. Docker?”这个问题本身相当荒谬,就像比较苹果和橙子一样。它们不是相互替代的。恰恰相反,Kubernetes 可以在没有 Docker 的情况下运行,而 Docker 也可以在没有 Kubernetes 的情况下工作。但 Kubernetes 可以(并且确实)从 Docker 获得很大的好处,反之亦然。"

  • question:问题
  • rather:相当
  • absurd:荒谬的
  • like:像
  • comparing:比较
  • apples:苹果
  • oranges:橙子
  • alternative:替代品
  • one:一个
  • isn't:不是
  • another:另一个
  • quite:相当
  • contrary:相反的
  • can:可以
  • run:运行
  • without:没有
  • function:工作
  • benefit:获益
  • greatly:极大地
  • from:从...中
  • vice versa:反之亦然

Docker is a standalone application which can be installed on any computer to run containerized applications. Containerization is an approach of running applications on an OS such that the application is isolated from the rest of the system. You create an illusion for your application that it is getting its very own OS instance, although there may be other containers running on the same system. Docker is what enables us to run, create and manage containers on a single operating system.

中文翻译

Docker 是一个独立的应用程序,可以安装在任何计算机上,用于运行容器化应用程序。容器化是一种在操作系统上运行应用程序的方法,使应用程序与系统的其余部分隔离开来。您为您的应用程序创建了一个假象,让它认为它有自己的操作系统实例,尽管可能在同一系统上运行其他容器。Docker 是让我们能够在单个操作系统上运行、创建和管理容器的工具。

  • Docker:Docker(容器化平台的名称)。
  • standalone:独立的。
  • application:应用程序。
  • installed:安装。
  • computer:计算机。
  • run:运行。
  • containerized:容器化的。
  • applications:应用程序。
  • Containerization:容器化。
  • approach:方法。
  • running:运行。
  • isolated:隔离的。
  • rest:其余部分。
  • system:系统。
  • create:创建。
  • illusion:假象。
  • getting:得到。
  • very own:自己的。
  • OS instance:操作系统实例。
  • other:其他。
  • containers:容器。
  • enables:使能够。
  • us:我们。
  • manage:管理。
  • single:单个。
  • operating system:操作系统。

Kubernetes turns it up to eleven. If you have Docker installed on a bunch of hosts (different operating systems), you can leverage Kubernetes. These nodes or Docker hosts can be bare metal servers or virtual machines. Kubernetes can then allow you to automate container provisioning, networking, load-balancing, security and scaling across all these nodes from a single command-line or dashboard. A collection of nodes that are managed by a single Kubernetes instance is referred to as a Kubernetes cluster.

中文翻译

Kubernetes 把它推向了更高级别。如果您在一堆主机上安装了 Docker(不同的操作系统),您可以利用 Kubernetes。这些节点或 Docker 主机可以是裸机服务器或虚拟机。然后,Kubernetes 可以允许您从单个命令行或仪表板自动化容器的配置、网络、负载均衡、安全性和扩展,跨所有这些节点。由单个 Kubernetes 实例管理的一组节点被称为 Kubernetes 集群。

  • Kubernetes:Kubernetes(容器编排平台的名称)。
  • turns it up to eleven:将其提升到更高级别(表示 Kubernetes 是高级的容器编排工具)。
  • installed:安装。
  • bunch:一堆。
  • hosts:主机。
  • different:不同的。
  • operating systems:操作系统。
  • leverage:利用。
  • nodes:节点。
  • Docker hosts:Docker 主机。
  • bare metal:裸机(指裸机服务器,没有虚拟化层的服务器)。
  • servers:服务器。
  • virtual machines:虚拟机。
  • allow:允许。
  • automate:自动化。
  • container provisioning:容器配置。
  • networking:网络。
  • load-balancing:负载均衡。
  • security:安全性。
  • scaling:扩展。
  • across:跨越。
  • single:单个。
  • command-line:命令行。
  • dashboard:仪表板。
  • collection:集合。
  • managed by:由...管理。
  • instance:实例。
  • referred to as:称为。
  • cluster:集群。

Now, why would you need to have multiple nodes in the first place? The two main motivations behind it are:

中文翻译

那么,为什么首先需要多个节点呢?背后的两个主要动机是

  • need:需要。
  • multiple:多个。
  • nodes:节点。
  • first place:首先。
  • two:两个。
  • main:主要的。
  • motivations:动机。
  • behind:背后的。

To make the infrastructure more robust — Your application will be online, even if some of the nodes go offline, i.e, High Availability. To make your application more scalable — If workload increases simply spawn more containers and/or add more nodes to your Kubernetes cluster. “Kubernetes automates the process of scaling, managing, updating and removing containers. In other words, it is a container orchestration platform. While Docker is at the heart of the containerization, it enables us to have containers in the first place.

中文翻译

为了使基础设施更加健壮 — 即使一些节点下线,您的应用程序也将在线运行,即实现高可用性。为了使您的应用程序更加可扩展 — 如果工作负载增加,只需生成更多容器和/或添加更多节点到您的 Kubernetes 集群。 "Kubernetes 自动化了扩展、管理、更新和删除容器的过程。换句话说,它是一个容器编排平台。虽然 Docker 是容器化的核心,它使我们能够首次使用容器。

  • To make:为了使。
  • infrastructure:基础设施。
  • more robust:更加健壮。
  • Your application:您的应用程序。
  • online:在线。
  • even if:即使。
  • some:一些。
  • go offline:下线。
  • i.e.:即,即是(拉丁语缩写,表示 "that is",即 "也就是说")。
  • High Availability:高可用性。
  • scalable:可扩展。
  • workload:工作负载。
  • increases:增加。
  • simply:简单地。
  • spawn:生成。
  • containers:容器。
  • and/or:和/或(用于表示 "和" 或 "或" 的组合)。
  • add:添加。
  • nodes:节点。
  • Kubernetes cluster:Kubernetes 集群。
  • automates:自动化。
  • process:过程。
  • scaling:扩展。
  • managing:管理。
  • updating:更新。
  • removing:删除。
  • container orchestration platform:容器编排平台。
  • While:虽然。
  • Docker:Docker(容器化平台的名称)。
  • at the heart of:在...的核心。
  • containerization:容器化。
  • enables:使能够。
  • have:拥有。
  • containers:容器。

In principle, Kubernetes can work with any containerization technology. Two of the most popular options that Kubernetes can integrate with are rkt and Docker. However, Docker has won the greatest market segment and that has led to a lot of effort in perfecting the integration between Docker and Kubernetes, more than any other containerization technology.

中文翻译

原则上,Kubernetes 可以与任何容器化技术一起使用。Kubernetes 可以与最流行的两种选项集成,分别是 rkt 和 Docker。然而,Docker 赢得了最大的市场份额,这导致了在 Docker 和 Kubernetes 之间完善集成的许多努力,超过了任何其他容器化技术。

  • In principle:原则上。
  • Kubernetes:Kubernetes(容器编排平台的名称)。
  • can work with:可以与...一起使用。
  • any:任何。
  • containerization technology:容器化技术。
  • Two of the most popular options:最流行的两种选项。
  • integrate with:与...集成。
  • are:是。
  • rkt:rkt(一种容器运行时)。
  • Docker:Docker(容器化平台的名称)。
  • However:然而。
  • has won:赢得。
  • the greatest:最大的。
  • market segment:市场份额。
  • that has led to:导致了。
  • a lot of:许多。
  • effort:努力。
  • perfecting:完善。
  • the integration between:在...之间的集成。
  • more than:超过。
  • any other:任何其他。

Similarly, Docker Inc., the company behind Docker, offers their own container orchestration engine, named Docker Swarm. But even they realized the fact that Kubernetes has risen to the point that even Docker for Desktop (MacOS and Windows) comes with its own Kubernetes distribution.

中文翻译

同样地,Docker Inc.,即 Docker 背后的公司,提供了他们自己的容器编排引擎,名为 Docker Swarm。但即使他们也意识到 Kubernetes 已经崭露头角,以至于即使是 Docker for Desktop(适用于 MacOS 和 Windows)也附带了自己的 Kubernetes 发行版。

  • Similarly:同样地。
  • Docker Inc.:Docker 公司(Docker 背后的公司)。
  • the company behind:背后的公司。
  • offers:提供。
  • their own:他们自己的。
  • container orchestration engine:容器编排引擎。
  • named:命名为。
  • Docker Swarm:Docker Swarm(Docker 提供的容器编排工具)。
  • But even:但即使。
  • they realized:他们意识到。
  • the fact that:事实是。
  • has risen to the point:已经崭露头角。
  • that even:以至于即使。
  • Docker for Desktop:Docker for Desktop(用于 MacOS 和 Windows 的 Docker 版本)。
  • comes with:附带。
  • its own:自己的。
  • Kubernetes distribution:Kubernetes 发行版。

If anyone was nervous about adopting Kubernetes for their Docker-based product, that last point would get rid of all of the doubts. Both projects have wholeheartedly embraced each other and have benefited tremendously from this symbiosis.

中文翻译

如果有人对于在其基于 Docker 的产品中采用 Kubernetes 感到紧张,那么最后一点将消除所有疑虑。这两个项目都全力拥抱了彼此,并从这种共生关系中获得了巨大的好处。

  • If anyone:如果有人。
  • was nervous about:对...感到紧张。
  • adopting:采用。
  • Kubernetes:Kubernetes(容器编排平台的名称)。
  • for their:为他们的。
  • Docker-based product:基于 Docker 的产品。
  • that last point:最后一点。
  • would get rid of:将消除。
  • all of the:所有的。
  • doubts:疑虑。
  • Both:两者都。
  • projects:项目。
  • have wholeheartedly embraced:全力拥抱。
  • each other:彼此。
  • and have benefited tremendously from:并从中获得了巨大的好处。
  • this symbiosis:这种共生关系。

These projects are more than technologies, they are a community of people, who, despite their differences, are is composed of some of the brightest minds in the industry. When like-minded individuals collaborate, they exchange bright ideas and learn best practices from one another.

These are some of such ideas that both, Kubernetes and Docker, share:

中文翻译

这些项目不仅仅是技术,它们是一群人的社区,尽管他们之间存在差异,但组成这些社区的人才是该行业中最杰出的一些人。当志同道合的个体合作时,他们交流睿智的思想,并从彼此那里学习最佳实践。

以下是该段话中的关键单词的中文意思:

  • These projects:这些项目。
  • are more than:不仅仅是。
  • technologies:技术。
  • they are:它们是。
  • a community of people:一群人的社区。
  • who:谁。
  • despite their differences:尽管他们之间存在差异。
  • is composed of:由...组成。
  • some of the brightest minds:一些最杰出的思想。
  • in the industry:在该行业中。
  • When:当。
  • like-minded:志同道合的。
  • individuals:个体。
  • collaborate:合作。
  • they exchange:他们交流。
  • bright ideas:睿智的思想。
  • and learn:并从中学习。
  • best practices:最佳实践。
  • from one another:从彼此那里学习。

Their love for microservice based architecture (more on this later). Their love for open source community. Both are largely open source projects. They are largely written in Go which allows them to be shipped as small lightweight binaries. They use human-readable YAML files to specify application stacks and their deployments. In theory, you can learn about one without having a clue about the other. But keep in mind that in practice you will benefit a lot more if you start with the simple case of Docker running on a single machine, and then gradually understand how Kubernetes comes into play.

中文翻译

他们对微服务架构的热爱(稍后会详细介绍)。 他们对开源社区的热爱。它们都是大规模的开源项目。 它们主要是用 Go 语言编写的,这使它们能够作为小型轻量级二进制文件进行发布。 它们使用人类可读的 YAML 文件来指定应用程序堆栈及其部署。 从理论上讲,您可以了解其中一个而对另一个一无所知。但请记住,在实践中,如果您从单台机器上运行 Docker 的简单情况开始,然后逐渐了解 Kubernetes 如何运作,您将受益良多。

  • Their love for:他们对...的热爱。
  • microservice based architecture:微服务架构。
  • more on this later:稍后详细介绍。
  • open source community:开源社区。
  • Both are largely:它们都是大规模的。
  • largely written in:主要用...编写。
  • Go:Go 语言(一种编程语言)。
  • allows them to be:使它们能够。
  • shipped as:作为...进行发布。
  • small lightweight binaries:小型轻量级二进制文件。
  • use:使用。
  • human-readable:人类可读的。
  • YAML files:YAML 文件。
  • specify:指定。
  • application stacks:应用程序堆栈。
  • deployments:部署。
  • In theory:从理论上讲。
  • you can learn about:您可以了解有关...的信息。
  • one without:一个而没有。
  • having a clue about:一无所知。
  • But keep in mind that:但请记住。
  • in practice:在实践中。
  • you will benefit a lot more:您将获益更多。
  • if you start with:如果您从...开始。
  • the simple case of:简单情况。
  • Docker running on:在...上运行 Docker。
  • a single machine:单台机器。
  • gradually understand:逐渐了解。
  • comes into play:起作用。

Containers are amazing! They allow us to think about services and systems in a completely new and digital way. Both Docker and Kubernetes are here to stay. They are continuously changing to transform themselves into something better in the future. Keep your company involved in the Technology era and implement the containers that your infrastructure needs the most.

中文翻译

容器是令人惊奇的!它们使我们能够以全新的数字方式思考服务和系统。Docker 和 Kubernetes 都将继续存在。它们正在不断变化,以将自己转变为未来更好的东西。让您的公司参与科技时代,并实施您的基础设施最需要的容器。

  • Containers:容器。
  • are amazing:令人惊奇。
  • They allow us to:它们使我们能够。
  • think about:思考。
  • services and systems:服务和系统。
  • in a completely new and digital way:以全新的数字方式。
  • Both:两者都。
  • here to stay:将继续存在。
  • They are continuously changing:它们正在不断变化。
  • to transform themselves into:将自己转变为。
  • something better in the future:未来更好的东西。
  • Keep your company involved in:让您的公司参与。
  • the Technology era:科技时代。
  • implement:实施。
  • the containers:容器。
  • that your infrastructure needs:您的基础设施最需要的。

Designing newer software for a container-centric platform would not only make your apps more scalable but also more future-proof. Sticking to the old VMs might work for now, but a few years down the line you will eventually have to either bear the heavy cost of migrating everything into containers or abandon your projects altogether. Hopefully, now if someone brings up the topic of “Kubernetes vs Docker” you won’t get swept away by jargons.

中文翻译

为容器为中心的平台设计新的软件不仅会使您的应用程序更具可扩展性,而且更具未来可塑性。坚持使用旧的虚拟机可能暂时有效,但几年后,您最终将不得不承担将所有内容迁移到容器中的巨大成本,或者完全放弃您的项目。希望现在如果有人提出“Kubernetes vs Docker”的话题,您不会被术语所迷惑。

  • Designing newer software for:为...设计新的软件。
  • a container-centric platform:一个以容器为中心的平台。
  • would not only:不仅仅会。
  • make your apps more scalable:使您的应用程序更具可扩展性。
  • but also:而且。
  • more future-proof:更具未来可塑性。
  • Sticking to:坚持使用。
  • insight: 理解
  • the old VMs:旧的虚拟机。
  • might work for now:可能暂时有效。
  • but a few years down the line:但几年后。
  • you will eventually have to:最终将不得不。
  • either bear the heavy cost of:承担巨大的成本。
  • migrating everything into containers:将所有内容迁移到容器中。
  • or abandon your projects altogether:或者完全放弃您的项目。
  • Hopefully:希望。
  • now if someone brings up:现在如果有人提出。
  • the topic of:...的话题。
  • won't get swept away by jargons:不会被术语所迷惑。

Visit the Original source for better insight: Kubernetes vs. Docker

本文作者:yowayimono

本文链接:

版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!