Introduction to Helm
92%
Installing a Chart
As we have seen, the general syntax for installing a chart is:
helm install [RELEASE_NAME] [CHART] [flags]
Let's see different examples:
Installing from a Specific Repository
helm install my-release myrepo/mychart
Using a Chart with a Custom Configuration
helm \
install \
my-release \
myrepo/mychart \
--set service.type=NodePort
Using a Chart with Custom Configurations
helm \
install \
my-release \
myrepo/mychart \
--set service.type=NodePort \
--set service.nodePort=30080
Using a Chart with a Custom Configuration File (values.yaml)
As an alternative to the --set flag, it's simpler to use the --values flag to specify a custom configuration file, especially when you have multiple configurations to set.
helm \
install \
my-release \
myrepo/mychart \
--values values.yaml
Installing a Chart from a Local Directory
The ./chart-directory should exist and contain a valid Helm chart structure.
helm \
install \
my-release \
./chart-directory
Installing a Chart from a Local Repository with a Custom Configuration File (values.yaml)
helm \
install \
my-release \
./chart-directory \
--values values.yaml
Cloud-Native Microservices With Kubernetes - 2nd Edition
A Comprehensive Guide to Building, Scaling, Deploying, Observing, and Managing Highly-Available Microservices in KubernetesEnroll now to unlock all content and receive all future updates for free.
