Book Image

End-to-End Automation with Kubernetes and Crossplane

By : Arun Ramakani
Book Image

End-to-End Automation with Kubernetes and Crossplane

By: Arun Ramakani

Overview of this book

In the last few years, countless organizations have taken advantage of the disruptive application deployment operating model provided by Kubernetes. With Crossplane, the same benefits are coming to the world of infrastructure provisioning and management. The limitations of Infrastructure as Code with respect to drift management, role-based access control, team collaboration, and weak contract make people move towards a control-plane-based infrastructure automation, but setting it up requires a lot of know-how and effort. This book will cover a detailed journey to building a control-plane-based infrastructure automation platform with Kubernetes and Crossplane. The cloud-native landscape has an overwhelming list of configuration management tools that can make it difficult to analyze and choose. This book will guide cloud-native practitioners to select the right tools for Kubernetes configuration management that best suit the use case. You'll learn about configuration management with hands-on modules built on popular configuration management tools such as Helm, Kustomize, Argo, and KubeVela. The hands-on examples will be patterns that one can directly use in their work. By the end of this book, you'll be well-versed with building a modern infrastructure automation platform to unify application and infrastructure automation.
Table of Contents (16 chapters)
1
Part 1: The Kubernetes Disruption
4
Part 2: Building a Modern Infrastructure Platform
10
Part 3:Configuration Management Tools and Recipes

Hands-on chart development

Helm charts are nothing but a set of configuration templates with variable placeholders in the templates. These placeholders can be replaced with values when templates are rendered for installation. Helm has a powerful domain-specific language (DSL) providing a wide range of constructs for variable replacement. We will look at some frequently used constructs to learn chart development in the upcoming sections.

Chart generation

A Helm chart bundle has a set of organized files and folders. Either we need to understand the structure to develop it from scratch or we can use the generator. In the hands-on example, we will use the generator to create a chart named hello-world (helm create <chart-name>), as illustrated in the following screenshot:

Figure 9.1 – Creating a chart

Let’s look at the use of each file, as follows:

  • Chart.yaml: This is a file that holds a description for the chart. It contains information...