Helm Tips and Quick Start Guide

Martin Bernaola
Nov 12 · 2 min read
Source: https://boxboat.com/2018/09/19/helm-and-kubernetes-deployments/

Helm is a package manager for Kubernetes. With Helm, you can deploy charts. Is a collection of YAML template files organized into a specific directory structure. Official Site: https://helm.sh/

Wich your chart you can control your Kubernetes deployment without having to configure any settings.

Source: https://www.digitalocean.com/community/tutorials/an-introduction-to-helm-the-package-manager-for-kubernetes-es

The most important files are this:

Charts /: Manually managed chart dependencies can be arranged in this directory.
templates / — This directory contains template files that are combined with configuration settings (from values.yaml ) and rendered in Kubernetes manifests.
Chart.yaml: YAML file with metadata about the chart (Chart Name, Version, etc).
Values.yaml: YAML file with default configuration values ​​for the chart.

Here is a very simple example of how Helm can help us deploy a Kubernetes environment on a server:

First the chart.yaml:

The values.yaml define a 1 services to deploy in the Cluster:

Inside of templates/, We have one service to deploy on the Cluster:

You can see that we use certain syntaxes like IF, RANGE, etc.

If you want to add another service, it is only necessary to add it inside the TAG “services” in the values.yaml, like this:

The next step is to test the chart in our local environment. For this we launch the following command:

helm template -f services/values.yaml services

We can see the result of applying the command. A Deployment with their pods.

Analytics Vidhya is a community of Analytics and Data…

Analytics Vidhya

Analytics Vidhya is a community of Analytics and Data Science professionals. We are building the next-gen data science ecosystem https://www.analyticsvidhya.com

Martin Bernaola

Written by

I am an Information Systems Engineer. Venturing into the DevOps world. Welcome and enjoy the "Post Solutions" to make life easier

Analytics Vidhya

Analytics Vidhya is a community of Analytics and Data Science professionals. We are building the next-gen data science ecosystem https://www.analyticsvidhya.com