CHAPTER 30Deploying Applications as Containers with Kubernetes

 

Linux containers separate the applications they contain from the operating systems on which they run. Built properly, a container will hold a discrete set of software that can be transported and run efficiently. But the story doesn't end there. Once you have some containers, the next step is to engage them with a platform like Kubernetes that allows you to do the following:

  • Group sets of containers together to form a larger application. For example, deploy a web server, a database, and monitoring tools together.
  • Scale up your containers as the demand requires. In fact, you want to be able to scale each component of the larger application individually, without having to scale up everything.
  • Set the state of your application and not just run it. What this means is that, instead of just saying to run a container, you want to be able to say something like “run three copies of container X, and if one goes down, be sure to start another one to replace it.”
  • Recover from host computers going down or becoming overloaded. If the host running a container fails, you want the container to recover quickly and start up on another host computer.
  • Not be concerned about the infrastructure. You want your application to connect to the services that it needs without having to know ...

Get Linux Bible, 10th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.