loading...
Cover image for How to deploy applications using Helm in Kubernetes?

How to deploy applications using Helm in Kubernetes?

sagarjadhv23 profile image Sagar Jadhav Originally published at developersthought.in ・1 min read

Kubernetes Primer (5 Part Series)

1) What is Deployment, Service, Secret and ConfigMap in Kubernetes? 2) What is Persistent Volume (PV) & Persistent Volume Claim (PVC) in Kubernetes? 3) What is Ingress Controller in Kubernetes? 4) What is Readiness & Liveness Probes in Kubernetes? 5) How to deploy applications using Helm in Kubernetes?

Let's learn How to deploy PHPMyAdmin application using helm chart? Learn more about helm here.

Prerequisites:

Create NFS share

Reference:

Install Helm

Refer installation guide here

Clone github repository

git clone https://github.com/sagar-jadhav/kubernetes-essentials.git

Go to session_5 directory

cd ./kubernetes-essentials/session_5/

Enable Nginx ingress controller

minikube addons enable ingress
kubectl get pods --watch -n kube-system

Exit once controller pod goes into running state

Step 1: Create PHPMyAdmin helm chart

helm create phpmyadmin

Step 2: Add all application YAML files to templates directory

Remove unwanted files from template directory

rm -rf ./phpmyadmin/templates/*

Copy YAML files

cp configmap.yaml db-deployment.yaml db-pv.yaml db-pvc.yaml db-service.yaml secret.yaml phpmyadmin-deployment.yaml phpmyadmin-ingress.yaml phpmyadmin-service.yaml ./phpmyadmin/templates/

Step 3: Package helm chart

helm package phpmyadmin

Step 4: Deploy PHPMyAdmin application

helm install phpmyadmin ./phpmyadmin-0.1.0.tgz

Step 5: List helm release

helm ls

Step 6: List pods

kubectl get pods

Demo

Kubernetes Primer (5 Part Series)

1) What is Deployment, Service, Secret and ConfigMap in Kubernetes? 2) What is Persistent Volume (PV) & Persistent Volume Claim (PVC) in Kubernetes? 3) What is Ingress Controller in Kubernetes? 4) What is Readiness & Liveness Probes in Kubernetes? 5) How to deploy applications using Helm in Kubernetes?

Posted on Jun 28 by:

sagarjadhv23 profile

Sagar Jadhav

@sagarjadhv23

Backend Developer (Cloud ☁️) | Cloud Technology Enthusiast (🐳 ☸) Redhat Certified OpenShift Administrator

Discussion

markdown guide