Kubernetes and Helm (Part-2)

Shiwani Biradar
2 min readMar 27, 2020
K8s & helm

In previous article we saw the helm architecture, components and installation in kubernetes cluster with example .

https://medium.com/@shiwanibiradar/kubernetes-helm-9e7828510f63

In this post we’ll see another example of helm.

In last post we installed kubernetes dashboard using helm. so now we we’ll run apache server using helm.

To run httpd using helm charts, firstly we’ll search apache charts:

$ helm search bitnami/apache

It will show you all the possible outputs.

now we have to install that helm chart , so for that we will use:

$ helm install bitnami/apache — name httpd

when you hit the above command then you’ll see the namespace and state of pod as a output . it will also show the deployment, pod and service information .

here you don’t need to create service manually as we do in kubernetes . when you install helm chart that time it will automatically create service for this application.

To check the service of newly created pod use:

$ kubectl get svc

In above output you’ll see external Ip is in pending state due to Load Balancer type. so to assign external ip you have to edit service

$ kubectl edit svc apache

For assign externalIP, use ip of your master node in yaml file of svc. so after that external ip will be assign to your application

By using public ip of your node instance you can curl this website.

To check running application using helm:

$ helm list

To remove the application we can use:

$ helm rm apache

In this way we conclude helm with apache example. you can also search for other helm charts and explore .

HAPPY HELM !!

--

--