Running Helm with Runme
If you find yourself performing a task repeatedly, it's best to automate it - this is a core principle of DevOps. This mindset has led to numerous initiatives focused on automation. For instance, we package and containerize our applications and write documentation as a guide to understand what needs to be done. With Runme, your documentation can be transformed into an interactive notebook where users can apply and perform the actions outlined in your documentation.
Helm is a package manager for Kubernetes, an open-source orchestration platform. It assists users in defining, installing, and managing applications and their dependencies on a Kubernetes cluster. Conversely, Runme is an IDE that converts Markdown files into executable notebooks. Both platforms aim to simplify users' deployment processes.
Runme is designed to enhance communication between teams and facilitate knowledge sharing. It has the technical capability to execute your code or deploy your application, and it is accompanied by clear documentation that everyone can comprehend.
This guide demonstrates how to integrate Helm with Runme. This integration simplifies and documents your deployments, improves consistency, and enhances collaboration between development and operations teams.
Prerequisite
To follow up on this tutorial, ensure you have the following:
- Runme Extension: Install the Runme extension in your VS Code editor and set it as your default Markdown viewer.
- Clone Repo: We've provided an example repository to help you follow this tutorial. You can clone the repo here.
- Require Packages: Install the required packages (Brew, kind,Docker,kubectl and Helm ) inside your Markdown file. Runme allows you to achieve this! Simply run the command in the prerequisite section in the repo.
Create a cell in your Rume notebook and run the command below to install the necessary packages.
Follow the instructions and commands in the above notebook for this guide.
Creating A Helm Chart Within Your Runme Environment
You can create your helm chart to suit your specific use case but for this guide, We will be using a helm chart from the helm repo
, The repository is a collection that comprises of packaged Helm charts for easy discovery, distribution, and installation. In the Helm Repo
section of this notebook, we guide you on how to add a repo to your local Helm configuration. We also show you how to list the charts in your repo and search through them to select the specific chart you need.
For this guide, The repo adds a Kubernetes Ingress controller called ingress-nginx
it helps manage external access to services within the Kubernetes cluster.
Runme is dynamically set. You can run the entire markdown file using the Run all feature. If you want to run just a particular section, you can also do that, or run just a single cell.
Installing Helm Packages with Runme
The helm install
command installs a Helm chart into your Kubernetes cluster. When you run helm install
, you specify the release name, the chart name (either local or from a repository), and any necessary configuration values or overrides. Helm fetches the specified chart from the repository (if not already locally available) and installs it into your cluster, creating a new release.
The helm install
section of this guide installs the Kubernetes Ingress controller & checks the status of the deployment to make sure everything is installed appropriately.
Successfully installed with your Runme terminal