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)

Chapter 9. Best Practices for the Real World

We have really covered a lot of ground in this book so far. We are now on our final chapter. Here, we are going to look at how to combine all the skills you have learned and create a production-ready module. Just to go out with a bang, we will create a module that configures and deploys Kubernetes as the frontend (note that running Kuberbetes as frontend has limitations and would not be the best idea for production. The UCP component of the module will be production ready). Since there will be a lot of sensitive data, we will take advantage of Hiera. We will create a custom fact to automate the retrieval of the UCP fingerprint, and we will split out all the kubernetes components and use interlock to proxy our API service. We will also take UCP further and look at how to repoint the Docker daemon to use the UCP cluster. The server architecture will follow the same design as we discussed in the scheduler chapter. We will use three nodes, all running...