HELM CHART

--

Helm charts provide a convenient and standardized way to define,package, and deploy Kubernetes applications. They enhance the portability, manageability, and scalability of applications in a Kubernetes environment.

  1. Create the sample-value.yaml file that containers key values to be used inside kubernetes resources YAML File.
# Default values for the Helm chart
image:
repository: my-app-image
tag: latest
replicas: 3
ephemeralStorageLimit: "1Gi"

2. Create the Kubernetes Resource -Deployment YAML file.

templates/web-deployment.yaml

In this web-deployment.yaml template, we are using the Helm templating syntax to access the values defined in the sample-values.yaml file.

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-web-app
spec:
replicas: {{ .Values.replicas }}
selector:
matchLabels:
app: web-app
template:
metadata:
labels:
app: web-app
spec:
containers:
- name: web-container
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
resources:
limits:
ephemeral-storage: {{ .Values.ephemeralStorageLimit }}

--

--