1. Home
  2. /
  3. Helm
  4. /
  5. Simple Helm Chart Structure

Simple Helm Chart Structure - Helm Typing CST Test

Loading…

Simple Helm Chart Structure — Helm Code

A simple Helm Chart structure with Deployment and Service templates.

# helm/demo/Chart.yaml
apiVersion: v2
name: demo-chart
version: 0.1.0

# helm/demo/values.yaml
replicaCount: 2
image:
	repository: nginx
	tag: 1.21
service:
	type: ClusterIP
	port: 80

# helm/demo/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
	name: {{ .Chart.Name }}-deployment
spec:
	replicas: {{ .Values.replicaCount }}
	selector:
		matchLabels:
		app: {{ .Chart.Name }}
	template:
		metadata:
		labels:
		app: {{ .Chart.Name }}
		spec:
		containers:
		- name: {{ .Chart.Name }}
		image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
		ports:
		- containerPort: {{ .Values.service.port }}

# helm/demo/templates/service.yaml
apiVersion: v1
kind: Service
metadata:
	name: {{ .Chart.Name }}-service
spec:
	type: {{ .Values.service.type }}
	selector:
		app: {{ .Chart.Name }}
	ports:
	- port: {{ .Values.service.port }}
		targetPort: {{ .Values.service.port }}

Helm Language Guide

Helm is an open-source package manager for Kubernetes that allows developers and operators to define, install, and manage Kubernetes applications using reusable Helm charts.

Primary Use Cases

  • ▸Deploying Kubernetes applications via Helm charts
  • ▸Managing complex application dependencies
  • ▸Application version control and rollback
  • ▸Parameterizing deployments for multiple environments
  • ▸Automating CI/CD deployment workflows

Notable Features

  • ▸Reusable Helm charts for applications
  • ▸Templating engine for Kubernetes manifests
  • ▸Release management (install, upgrade, rollback)
  • ▸Dependency management between charts
  • ▸Support for both public and private chart repositories

Origin & Creator

Created by Deis (later acquired by Microsoft) in 2015 and now maintained by the CNCF.

Industrial Note

Helm is heavily used in cloud-native, microservices-oriented industrial applications, enabling reproducible and versioned deployment of Kubernetes workloads, including IoT, edge computing, and hybrid cloud deployments.

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher