• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

securitywing

How to Create a Helm Chart in Windows for Minikube

by wing

Helm package manager is used to deploy applications in the Kubernetes cluster. By packaging your app using helm allows to deploy it with one command instead of using “kubectl create/apply” command. Another benefit of using helm is that you can easily upgrade and rollback your apps when required because helm uses version control.

 

Follow the three simple steps creating the helm chart

  1. Create a skeleton chart using the helm command.
  2. Update the values.yaml and the templates/ files to meet your deployment requirements
  3. Package the chart and upload it a helm repository.

To create the files necessary for a new chart, you need to use helm create command as shown below:

# helm create mychart

The above command will create the following directory and files.

To expose the NodePort of the chart, go to the location where you created the chart and open the values.yaml file and change the service type to nodeport:

service:

  type: NodePort

  port: 80

you can access the app at   http://192.168.99.103:32513/

After creating the chart you can dry run it

helm install –dry-run  –debug c://sixchart/ –generate-name

To install the chart in minikube:

# helm install mychart/    –generate-name

Or run:

# helm install mychart -name mychart

# helm list

Note: if you have installed minikube and helm in the windows then run the helm chart create and helm install mychart command from the Windows command prompt. When you use KOPs to create the cluster and running helm in Ubuntu box then run it from Ubuntu.

To see the pod name that has been created by the helm chart run the following kubectl command.

# kubectl get pods

#kubectl describe pods

# kubectl describe pod <specific pod name>

To see list of deployed pods

#kubectl get deployment

#To delete the pod:

Take a note of the pod name using “helm ls” and then delete the pod as shown below.

# helm delete mychart-1559383021

Note: after running the ‘helm delete’ command if you check the Kubernetes deployment and  the replica set, you will see the pod is no longer in there.

 

Helm chart repository server(open source)

There are a number of open-source solution that you can use to host your helm chats. A few of them are:

  • Nexus repository
  • ChartMuseum

What is ChartMuseum?

ChartMuseum is an open-source Helm Chart Repository written in Go (Golang), with support for cloud storage backends, including Google Cloud Storage, Amazon S3, Microsoft Azure Blob Storage, Alibaba Cloud OSS Storage and Openstack Object Storage.ChartMuseum is a child project under the Helm umbrella, maintained primarily by Codefresh.

https://chartmuseum.com/

 

Jenkin X

https://www.youtube.com/watch?v=gWam6HY3o1g

To install Jenkins x in windows, you have to install Choco package manager and then run the command below:

choco install jenkins-x

To uninstall Jenkin X, run the command below.

choco uninstall jenkins-x

References:

  • https://jenkins-x.io/docs/getting-started/setup/install/
  • https://www.youtube.com/watch?v=uHe7R_iZSLU

Jenkins X is a integrated solution of a couple of open-source projects such as Chartmuseum, Nexus, Mongo, Monocular, etc.

Related posts:

  1. 3 Steps to Install Minikube on Windows 10
  2. 5 Steps to Auto-Create Helm  Charts and upload to S3 Using Jenkins
  3. 5 Steps to Setup a Nexus3 repository using Docker on Virtual Box.
  4. Steps to Check Windows Server Vulnerability with Nexpose Community Edition

Filed Under: Containers, Off Track Tagged With: container, kubernetes

Primary Sidebar

Please help us sharing

Categories

  • AWS
  • Basics
  • Containers
  • Cryptocurrency
  • Cyber
  • Internet Security and Safety
  • IS Audit
  • IT Security Exams
  • Law & Human Rights
  • Network Security Tips
  • Off Track
  • Social Media Governance
  • Tech Comparisons
  • Tech Stack Suitability
  • Telecom
  • Tutorial

CISSP Sample Test

Take a CISSP Sample Test

CISA Sample Test

CISA IT governance Sample test

Please Follow Us

Contact us for Ads

Go to Contact Form

Search

Footer

Copyrights

Protected by Copyscape Duplicate Content Detection Software

Securitywing.com reserves the copyrights of all of its published articles.No contents of this site is permitted to be published to anywhere else in the Internet.If any contents are found in any other websites, securitywing reserves the rights to file a DMCA complaint. But you have the right to use the link of any relevant article of this site to point from your website if you consider that it might improve the quality of your article.

Tags

audit AWS backup basics browser check cisco cloud computer configuration cyber data database email gmail hsrp ids iis informaiton internet kubernetes linux load balancing malware microsoft network protection redundancy risk router security security tips server social media SSL switch test tools vpn vrrp web webserver website windows wordpress

Copyright © 2010-2025 ·All Rights Reserved · SecurityWing.com