Kubernetes, an open-source platform for managing containerized workloads, has revolutionized the way we deploy and scale applications. Helm, the package manager for Kubernetes, streamlines the process further by making it easy to find, share, and use software built for Kubernetes. Let's delve into the world of Kubernetes Helm with some practical examples.
![[Kubernetes] Package Manager - Helm 簡介](https://i.pinimg.com/originals/78/15/0e/78150eab0af219181d8513e8f04ee82f.png)
Before we dive into Helm examples, it's crucial to understand the basics. Helm packages are called charts, which are composed of a description file (values.yaml) that contains the metadata and the templates that generate Kubernetes manifests. Now, let's explore some Helm examples.

Installing and Managing Charts
Helm simplifies the process of installing charts. Here's how you can install and manage charts.

First, ensure you have both Helm and a Kubernetes cluster set up. Then, use the following command to add the stable repository, which contains a wealth of Helm charts:
```bash helm repo add stable https://charts.helm.sh/stable ```
Installing a Chart

To install a chart, simply run:
```bash
helm install Replace
Listing and Uninstalling Charts

To list all installed charts, use:
```bash helm list ```
To uninstall a chart:
```bash
helm uninstall Now, let's look at customizing chart values.

Customizing Chart Values
Helm allows you to customize charts using a values file. Here's an example:








Providing Values at Install Time
You can provide values at install time using the --set flag. For instance:
```bash helm install my-release stable/mydatabase --set user=myuser,password=mypassword ```
Using a Values File
For more complex customizations, use a values file:
```bash helm install my-release -f my-values.yaml stable/mydatabase ```
In my-values.yaml, specify the custom values:
```yaml user: myuser password: mypassword ```
Helm's flexibility and simplicity make it an invaluable tool for Kubernetes deployments. Now that you've seen some Helm examples, you're ready to streamline your Kubernetes workflows. Happy charting!
As you continue your Kubernetes Helm journey, consider exploring Helm 3's improved security and simplified血崩 cache for a better experience. Also, delve into advanced topics like Helm file locking and chart testing for enhanced control and reliability.