Book Image

Learn Helm

By : Andrew Block, Austin Dewey
Book Image

Learn Helm

By: Andrew Block, Austin Dewey

Overview of this book

Containerization is currently known to be one of the best ways to implement DevOps. While Docker introduced containers and changed the DevOps era, Google developed an extensive container orchestration system, Kubernetes, which is now considered the frontrunner in container orchestration. With the help of this book, you’ll explore the efficiency of managing applications running on Kubernetes using Helm. Starting with a short introduction to Helm and how it can benefit the entire container environment, you’ll then delve into the architectural aspects, in addition to learning about Helm charts and its use cases. You’ll understand how to write Helm charts in order to automate application deployment on Kubernetes. Focused on providing enterprise-ready patterns relating to Helm and automation, the book covers best practices for application development, delivery, and lifecycle management with Helm. By the end of this Kubernetes book, you will have learned how to leverage Helm to develop an enterprise pattern for application delivery.
Table of Contents (15 chapters)
1
Section 1: Introduction and Setup
5
Section 2: Helm Chart Development
9
Section 3: Adanced Deployment Patterns
14
Other Books You May Enjoy

Chapter 8: Using Helm with the Operator Framework

One of the advantages of using Helm is the ability to synchronize the local and the live states. With Helm, the local state is managed with values files that, when provided using the install or upgrade command, apply the values to synchronize the live state in a Kubernetes cluster. In previous chapters, this was performed by invoking these commands when a change to the application was desired.

Another way these changes can be synchronized is to create an application inside the cluster that checks periodically that the desired state matches the current configurations within an environment. If the state does not match, the application can automatically modify the environment to match the desired state. This application is referred to as a Kubernetes operator. In this chapter, we will create a Helm-based operator that helps ensure the locally defined state always matches the live state of the cluster. If it does not, the operator will...