Helm Package Manager
Helm is the package manager for Kubernetes. It helps you define, install, and upgrade even the most complex Kubernetes application.Why Helm?
Kubernetes YAML files can get repetitive and hard to manage. Helm solves this with Charts.Package Management
Find, share, and use software built for Kubernetes (like
apt or npm).Templating
Use a single template for Dev, Staging, and Prod environments.
Release Management
Easy upgrades and rollbacks with revision history.
Dependency Management
Manage dependencies (e.g., your app needs Redis).
Core Concepts
- Chart: A bundle of information necessary to create an instance of a Kubernetes application.
- Config: The configuration information that can be merged into a packaged chart to create a releasable object.
- Release: A running instance of a chart, combined with a specific config.
- Repository: A place where charts can be collected and shared.
Using Helm
1. Installation
2. Installing a Chart
Install Redis using the Bitnami chart.3. Customizing Installation (values.yaml)
You can override default settings using avalues.yaml file or CLI flags.
Creating Your Own Chart
Structure
Templating Example
values.yaml:Managing Releases
Key Takeaways
- Use Helm to manage complex apps.
- Use Repositories (Artifact Hub) to find existing software.
- Use values.yaml to configure charts for different environments.
- Use
helm upgradeandhelm rollbackfor safe deployments.
Next: Kubernetes Architecture →