Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

Helm Lab – 7: Managing Dependencies of Helm Charts

Managing dependencies is an essential aspect of creating and maintaining Helm charts, especially when building complex applications composed of multiple services or components. Here’s how you can manage dependencies of Helm charts effectively:

How to Define Helm Chart Dependencies?

In your Helm chart, specify the dependencies in either the requirements.yaml file (for Helm 2) or the Chart.yaml file (for Helm 3).

  1. Chart.yaml
  2. requirements.yaml

$ helm repo update
$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm repo add stable https://charts.helm.sh/stable

Example of Chart.yaml


apiVersion: v1
name: mychart
version: 1.0.0
dependencies:
- name: mysql
  version: 9.12.1
  repository: https://charts.bitnami.com/bitnami
- name: jenkins
  version: 2.5.4
  repository: https://charts.helm.sh/stable
- name: my-third-chart
  version: 0.1.0
  repository: "file:///home/ubuntu/charts/chart-dep/ourchart"Code language: JavaScript (javascript)

Example of a Chart.yaml file that defines dependencies:


apiVersion: v1
name: mychart
version: 1.0.0
dependencies:
- name: my-first-chart
  version: 1.0.0
  repository: file://../my-first-chart
- name: my-second-chart
  version: 1.0.0
  repository: https://artifacthub.io/
- name: my-third-chart
  version: 1.0.0
  repository: file://../my-third-chartCode language: JavaScript (javascript)

Example of requirements.yaml

$ helm repo update
$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm repo add stable https://charts.helm.sh/stable

dependencies:
- name: mysql
  version: 9.12.1
  repository: https://charts.bitnami.com/bitnami
- name: jenkins
  version: 2.5.4
  repository: https://charts.helm.sh/stable
- name: my-third-chart
  version: 0.1.0
  repository: "file:///home/ubuntu/charts/chart-dep/ourchart"Code language: JavaScript (javascript)

$ helm dependency update
$ helm dependency list

Update Dependencies:

$ helm dependency update
$ helm dependency list

Run the helm dependency update command in the directory containing your Helm chart. This command downloads the specified dependencies and stores them in the charts/ directory within your chart’s directory.

helm dependency update: 
This command updates the dependencies for a chart. For example, the following command will update the dependencies for the chart mychart:
$ helm dependency update mychart

helm dependency list: 
This command lists the dependencies for a chart. For example, the following command will list the dependencies for the chart mychart:
$ helm dependency list mychart

helm dependency build: 
This command builds the dependencies for a chart. This is useful if you are developing a chart and want to test it with the latest versions of its dependencies. For example, the following command will build the dependencies for the chart mychart:
$ helm dependency build mychart

helm dependency pull: 
This command pulls the dependencies for a chart. This is useful if you want to download the dependencies for a chart without installing them. For example, the following command will pull the dependencies for the chart mychart:
$ helm dependency pull mychart

helm dependency upgrade: 
This command upgrades the dependencies for a chart to the latest version. For example, the following command will upgrade the dependencies for the chart mychart to the latest version:
$ helm dependency upgrade mychart

helm dependency list-all: 
This command lists all the dependencies for all the charts in a directory. For example, the following command will list all the dependencies for all the charts in the current directory:
$ helm dependency list-all

helm dependency remove: 
This command removes a dependency from a chart. For example, the following command will remove the dependency my-chart from the chart my-app:
$ helm dependency remove my-app my-chartCode language: PHP (php)

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at <a href="https://www.cotocus.com/">Cotocus</a>. I share tech blog at <a href="https://www.devopsschool.com/">DevOps School</a>, travel stories at <a href="https://www.holidaylandmark.com/">Holiday Landmark</a>, stock market tips at <a href="https://www.stocksmantra.in/">Stocks Mantra</a>, health and fitness guidance at <a href="https://www.mymedicplus.com/">My Medic Plus</a>, product reviews at <a href="https://www.truereviewnow.com/">TrueReviewNow</a> , and SEO strategies at <a href="https://www.wizbrand.com/">Wizbrand.</a> Do you want to learn <a href="https://www.quantumuting.com/">Quantum Computing</a>? <strong>Please find my social handles as below;</strong> <a href="https://www.rajeshkumar.xyz/">Rajesh Kumar Personal Website</a> <a href="https://www.youtube.com/TheDevOpsSchool">Rajesh Kumar at YOUTUBE</a> <a href="https://www.instagram.com/rajeshkumarin">Rajesh Kumar at INSTAGRAM</a> <a href="https://x.com/RajeshKumarIn">Rajesh Kumar at X</a> <a href="https://www.facebook.com/RajeshKumarLog">Rajesh Kumar at FACEBOOK</a> <a href="https://www.linkedin.com/in/rajeshkumarin/">Rajesh Kumar at LINKEDIN</a> <a href="https://www.wizbrand.com/rajeshkumar">Rajesh Kumar at WIZBRAND</a> <a href="https://www.rajeshkumar.xyz/dailylogs">Rajesh Kumar DailyLogs</a>

Related Posts

Top 10 Subscription Management Software Tools in 2026: Features, Pros, Cons & Comparison

Introduction Subscription management software is designed to streamline and optimize the process of managing recurring billing, customer subscriptions, and related business operations. In 2026, with the rapid…

Read More

Top 10 AI Data Integration Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, AI data integration tools are pivotal for businesses navigating the complexities of modern data ecosystems. These tools combine artificial intelligence with data integration processes…

Read More

Top 10 Fleet Management Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, the logistics and transportation industries are evolving rapidly, and managing a fleet of vehicles has never been more complex. Fleet management software has become…

Read More

Top 10 AI Academic Plagiarism Checkers Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, AI academic plagiarism checkers have become indispensable tools for students, educators, researchers, and institutions striving to uphold academic integrity. With the rise of AI-generated…

Read More

Top 10 Travel Management Software Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, travel management software (TMS) has become a crucial tool for businesses, travel agencies, and frequent travelers. These tools automate the booking, tracking, and management…

Read More

Top 10 No-Code Platforms Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, no-code platforms have become essential for businesses and individuals looking to build powerful applications, websites, and automations without the need for programming knowledge. These…

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
0
Would love your thoughts, please comment.x
()
x