Helm (part-2): How to Install a Manifest File Through Helm

To install your deploy.yaml file through Helm, you will need to first package it into a Helm chart. Here are the steps you can follow:
mkdir my-chart
cd my-chart
- Create a directory for your Helm chart and navigate into it:
mkdir my-chart
cd my-chart
2. Create a Chart.yaml file in the directory with the following contents, replacing the placeholders with your chart’s information. This file describes your Helm chart and is required for Helm to install it.
apiVersion: v2
name: my-chart
version: 0.1.0
description: A Helm chart for deploying my application
3. Create a templates directory in the chart directory:
mkdir templates
4. Copy your deploy.yaml file into the templates directory:
cp /path/to/deploy.yaml templates/
5. Create a values.yaml file in the chart directory with any configuration values you want to use in your deployment. For example, if your deploy.yaml file contains a container image name, you could create the following values.yaml file. This file will be used to override default values in your templates.
image:
repository: my-image
tag: latest
6. Package the chart. This will create a .tgz file in the current directory containing your chart.
helm package .
8. Install the chart:
helm install my-release my-chart-0.1.0.tgz -f values.yaml
This will install your chart and create a release named “my-release” using the values specified in values.yaml.Note that these are general steps and may need to be adjusted based on your specific use case. You may also need to modify your deploy.yaml file to use Helm-specific syntax, such as using {{ .Values.image.repository }}
instead of hard-coding the image name.