Create helm chart

Running the command:

bash

helm create newone

will generate a new Helm chart scaffold named newone in your current directory. Helm is a package manager for Kubernetes, and a "chart" is a package of pre-configured Kubernetes resources.

Here's what happens when you run that command:

It creates a directory called newone/, and inside you'll find a full chart structure like:

pgsql

newone/ ├── .helmignore # Patterns to ignore when packaging ├── Chart.yaml # Chart metadata ├── values.yaml # Default configuration values ├── charts/ # Subcharts go here ├── templates/ # Kubernetes manifests go here │ ├── deployment.yaml │ ├── _helpers.tpl │ ├── hpa.yaml │ ├── ingress.yaml │ ├── service.yaml │ ├── serviceaccount.yaml │ └── tests/ │ └── test-connection.yaml

 What you can do with it:

  • Customize the templates/ files to define your Kubernetes resources.

  • Adjust values.yaml to set default values for those templates.

  • Run helm install to deploy your chart to a Kubernetes cluster.

It's basically a starting point for building your own deployable Helm chart.

Want to break down any of those files or see how to tweak them?

Comments

Popular posts from this blog

Helm- How to add Repositories and Install charts

Helm Commands

Helm Chart Directory structure