Feedback

Chat Icon

Helm in Practice

Designing, Deploying, and Operating Kubernetes Applications at Scale

A Practical Guide to Building Multi-Service Applications with Helm
74%

Managing Dependencies

Updating Dependencies

When developing your chart, you may need to introduce updates to dependencies. For example, to update the PostgreSQL version from 16.4.3 to 16.5.0, follow these steps:

  1. Edit Chart.yaml and change the version:
dependencies:
  - name: postgresql
    version: "16.5.0"  # New version
    repository: "https://charts.bitnami.com/bitnami"
  1. Update the lock file and download:
helm dependency update $HOME/todowithdb-chart

ℹ️ helm dependency update is different from helm dependency build. The former updates the Chart.lock file to reflect changes in Chart.yaml, while the latter simply downloads dependencies based on the existing Chart.lock.

  1. Repackage and deploy:
# Increment your chart version in Chart.yaml (e.g., 0.1.1)
helm package $HOME/todowithdb-chart -d $HOME/todowithdb-chart-dist

helm push $HOME/todowithdb-chart-dist/todowithdb-chart-0.1.1.tgz \
  oci://$MASTER_PUBLIC_IP:30003/todo-app

Any change introduced to either Chart.yaml or values.yaml

Helm in Practice

Designing, Deploying, and Operating Kubernetes Applications at Scale

Enroll now to unlock current content and receive all future updates for free. Your purchase supports the author and fuels the creation of more exciting content. Act fast, as the price will rise as the course nears completion!

Unlock now  $15.99$11.99

Hurry! This limited time offer ends in:

To redeem this offer, copy the coupon code below and apply it at checkout:

Learn More