A Practical Guide to Building Multi-Service Applications with Helm
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:
- Edit
Chart.yamland change the version:
dependencies:
- name: postgresql
version: "16.5.0" # New version
repository: "https://charts.bitnami.com/bitnami"
- Update the lock file and download:
helm dependency update $HOME/todowithdb-chart
ℹ️
helm dependency updateis different fromhelm dependency build. The former updates theChart.lockfile to reflect changes inChart.yaml, while the latter simply downloads dependencies based on the existingChart.lock.
- 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 ScaleEnroll 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!
Hurry! This limited time offer ends in:
To redeem this offer, copy the coupon code below and apply it at checkout:
