Creating and Publishing Helm Chart For Jenkins
Aditi Singh
Java|| Python||Linux and Networking||Hadoop ||Ansible || Kubernetes|| Jenkins|| AWS ||Docker||DSA
This article is on how to create a Helm Chart for deploying Jenkins on Kubernetes Cluster and publish its artifact on artifact.io
What are Helm charts?
Helm Charts are simply Kubernetes YAML manifests combined into a single package that can be advertised to your Kubernetes clusters. Once packaged, installing a Helm Chart into your cluster is as easy as running a single?helm install, which simplifies the deployment of containerized applications.
Prerequisites for doing this activity -
What is Jenkins?
Jenkins is a free and open source automation server.?It helps automate the parts of software development related to?building, testing, and deploying, facilitating continuous integration and continuous delivery.?It is a server-based system that runs in servlet containers such as Apache Tomcat.
To create a new Helm Chart from the scratch. Helm has created bunch of files, that are usually important for a production-ready service in Kubernetes.?
Steps to Create Helm Chart For Jenkins -
mkdir jenkin
cd jenkins
Now, we need a project file that is called as Chart.yaml, that contains all the metadata information about the?chart, such as chart name and version, maintainer information, a relevant website, and search keywords.
Create a templates folder inside jenkins. It's a directory of templates that, when combined with values, will generate valid Kubernetes manifest files.
mkdir template
cd templates
Create a YAML file for launching the deployment for Jenkins inside the templates folder.?
领英推荐
Create YAML file for exposing the services of Jenkins inside the templates folder.
Installing Created Helm Chart
Now use the following commands to check whether the deployment of your Jenkins pod is done successfully or not.
Helm chart got successfully created and is now ready to publish.
Publish Helm Chart on Artifacts.io
We had successfully published our Helm chart to the ArtifactHub.
Thanks for reading!!!