Book Image

Puppet for Containerization

By : Scott Coulton
Book Image

Puppet for Containerization

By: Scott Coulton

Overview of this book

This book teaches you how to take advantage of the new benefits of containerization systems such as Docker, Kubernetes, Docker Swarm, and Docker UCP, without losing the panoptical power of proper configuration management. You will learn how to integrate your containerized applications and modules with your Puppet workflow. You will also understand how to manage, monitor, and orchestrate hosts to keep deployed containers running seamlessly. With the help of this book, you can efficiently automate and document with containers, as a part of your system. The book will also cover use cases of deploying Puppet within a containerized environment.
Table of Contents (16 chapters)

Docker UCP


In this topic, we will be looking at Docker's new offering, UCP. This product is not open sourced, so there is a licensing cost. You can get a trial license for 30 days (https://www.docker.com/products/docker-universal-control-plane), and that is what we will be using. Docker UCP takes out the complexity of managing all the moving parts of a scheduler. This could be a massive plus pending your use case. Docker UCP also brings with it a web UI for administration. So, if container schedulers seem daunting, this could be a perfect solution for you.

The Docker UCP architecture

So, in this example, we are going to build three nodes. The first will be our UCP controller and the other two nodes will be UCP HA replicas that give the design some fault tolerance. As UCP is a wrapped product, I am not going to go into all the moving parts.

Refer to the following diagram to get a visualization of the main components:

Coding

We are going to do something different in this module, just to show you...