This content originally appeared on DEV Community and was authored by Pavan Belagatti
With the ever-increasing popularity of Kubernetes, the cloud-native landscape is gaining attention in developer communities. Helm, on the other hand, came as a saviour to help developers with Kubernetes-related deployments by making them super simple with the so-called 'Helm Charts'.
A Helm chart consists of all the necessary YAML manifests and templates that are needed to describe Kubernetes resources (Deployments, Secrets, CRDs, etc.) and other configurations needed for the Kubernetes application. Every application can now be packaged as a Helm chart and deployed wherever you want.
Today, in this tutorial, I'll show you how you can deploy any publicly available Helm chart in minutes using Harness CD.
Prerequisites
- Free Harness CD account with free builds to deploy our helm chart.
- A Kubernetes cluster access from any cloud provider.
Tutorial
Login to your Harness CD module and start your free plan where you get free builds.
In this tutorial, we will take Grafana Helm chart as an example to deploy. The Grafana chart is available here - https://github.com/bitnami/charts/tree/main/bitnami/grafana
Create a project to start with and name it.
Invite collaborators to your project if you want
Select 'Continuous Delivery' from the modules available.
For this deployment pipeline, we need Harness Delegate to be up and running. Let's create the Harness Delegate.
So, what is Harness Delegate?
Delegate is a service that runs on your infrastructure to execute tasks on behalf of the Harness platform.
Now, you need to install this Harness Delegate on your Kubernetes cluster.
Make sure you have a cluster access from any cloud provider.
You can also use Minikube or Kind.
Follow the step-by-step guide as shown and install the Delegate.
Once done, verify if the Delegate has been installed successfully.
Once the Harness Delegate is installed, go back to the pipeline dashboard and create a pipeline.
Name the pipeline and make sure to select 'Inline' setup for your pipeline.
Next, select the 'Deploy' stage and continue.
Name the stage and deployment type as 'Native Helm'.
Continue to create a service and add the manifest details.
Add manifest type as 'Helm Chart'
Specify Helm chart store as 'HTTP Helm'
Create a new HTTP Helm repo connector.
Finally connect your manifest details with the Delegate running.
Make sure the connection to the Delegate is successful.
Add the final manifest details
Save everything and you can see the manifest details added for the service.
Next, specify the environment and the infrastructure.
Create a pre-prod environment and select 'Kubernetes' as the infrastructure.
Select the execution strategy as 'Rolling'
Finally, this is how your pipeline should look like.
Save everything and run the pipeline. You should see a successful Grafana Helm chart deployment.
You can access the service from the logs shared in the console.
Open the http://localhost:8080/ on your machine and you should see the Grafana login page.
Login with the credentials and you should see the Grafana dashboard.
This way, we can easily deploy any publicly available Helm chart using Harness CD.
This way, you can easily deploy any Helm charts from this public repo - https://github.com/bitnami/charts/tree/main/bitnami in just minutes.
Try Harness CD, the most advanced and trusted continuous delivery platform.
This content originally appeared on DEV Community and was authored by Pavan Belagatti
Pavan Belagatti | Sciencx (2023-05-11T04:38:02+00:00) Deploy Kubernetes Helm Charts in Minutes. Retrieved from https://www.scien.cx/2023/05/11/deploy-kubernetes-helm-charts-in-minutes/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.