官术网_书友最值得收藏!

A note on Kubernetes

Docker Swarm is a very popular container orchestrator, but it isn't the only one. Kubernetes is one alternative that has seen huge growth, with most public clouds now offering a managed Kubernetes service. At the time of writing this book, Kubernetes is a Linux-only orchestrator, with Windows support still in beta. You are likely to hear a lot about Kubernetes on your container journey, so it's worth understanding how it compares to Docker Swarm.

First, the similarities – they are both container orchestrators, which means they are clusters of machines that take care of running containers in production at scale. They both run Docker containers, and you can use the same Docker images with Docker Swarm and Kubernetes. They are both built on open source projects and conform to the Open Container Initiative (OCI), so there's no concern about vendor lock-in. You can start with Docker Swarm and then move to Kubernetes, and vice versa, without changing your apps.

Now, the differences. Docker Swarm is very simple; you can describe a distributed application to run in containers on swarm in just a few lines of markup. To run the same app on Kubernetes, your application description would be four times as much markup, or even more. Kubernetes has many more abstractions and configuration options than swarm, so there are some things you can do with Kubernetes that you can't do with swarm. The cost of that flexibility is complexity, and the learning curve for Kubernetes is very much steeper than for swarm.

Kubernetes will support Windows soon, but it's not likely to offer full feature compatibility between Linux servers and Windows servers for some time. Until then, it's fine to use Docker Swarm – Docker has hundreds of enterprise customers running their production clusters on Docker Swarm. And if you do find Kubernetes has some extra features that you need, it will be much easier to learn Kubernetes once you have a good understanding of swarm.

主站蜘蛛池模板: 孙吴县| 云阳县| 繁昌县| 荆门市| 中方县| 梁河县| 银川市| 城固县| 昂仁县| 芜湖市| 大同县| 庆安县| 山阴县| 玉田县| 乌什县| 聂荣县| 新建县| 吉林市| 延川县| 岳阳市| 阿巴嘎旗| 锡林浩特市| 望都县| 丁青县| 福鼎市| 黄骅市| 彭山县| 诸暨市| 镇原县| 嘉定区| 桃源县| 云南省| 晋中市| 绥芬河市| 南郑县| 盖州市| 潜山县| 奉节县| 翼城县| 长治县| 资溪县|