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

  • Containers in OpenStack
  • Pradeep Kumar Singh Madhuri Kumari
  • 315字
  • 2021-07-02 21:17:26

Introduction to COE

Containers provide users with an easy way to package and run their applications. Packaging involves defining the library and tools that are necessary for a user's application to run. These packages, once converted to images, can be used to create and run containers. These containers can be run anywhere, whether it's on developer laptops, QA systems, or production machines, without any change in environment. Docker and other container runtime tools provide the facility to manage the life cycle of such containers.

Using these tools, users can build and manage images, run containers, delete containers, and perform other container life cycle operations. But these tools can only manage one container on a single host. When we deploy our application on multiple containers and multiple hosts, we need some kind of automation tool. This type of automation is generally called orchestration. Orchestration tools provide a number of features, including:

  • Provisioning and managing hosts on which containers will run
  • Pulling the images from the repository and instantiating the containers
  • Managing the life cycle of containers
  • Scheduling containers on hosts based on the host's resource availability
  • Starting a new container when one dies
  • Scaling the containers to match the application's demand
  • Providing networking between containers so that they can access each other on different hosts
  • Exposing these containers as services so that they can be accessed from outside
  • Health monitoring of the containers
  • Upgrading the containers

Generally, these kinds of orchestration tools provide declarative configuration in YAML or JSON format. These definitions carry all of the information related to containers including image, networking, storage, scaling, and other things. Orchestration tools use these definitions to apply the same setting to provide the same environment every time.

There are many container orchestration tools available, such as Docker Machine, Docker Compose, Kuberenetes, Docker Swarm, and Apache Mesos, but this chapter focuses only on Docker Swarm, Apache Mesos, and Kubernetes.

主站蜘蛛池模板: 巧家县| 将乐县| 宿松县| 潜山县| 融水| 铜梁县| 晋城| 镇康县| 扎鲁特旗| 措美县| 霍林郭勒市| 龙南县| 娱乐| 罗江县| 五原县| 东方市| 高邑县| 吉木萨尔县| 松溪县| 常德市| 桐梓县| 陇南市| 临海市| 博爱县| 民勤县| 大庆市| 东宁县| 娱乐| 西贡区| 错那县| 上蔡县| 通许县| 铁力市| 南投市| 道孚县| 漳平市| 蛟河市| 陈巴尔虎旗| 隆化县| 庆城县| 洪湖市|