Sample Helm chart for an application with one HTTP interface (e.g., a website).
Copy chart and change:
- In Chart.yaml, edit metadata such as
name,description,keywords,sources, andmaintainers. - In values.yaml, edit at least
image.repositoryandimage.tag. - Optionally, if the image is listening on a port other than 80, edit the container port.
All defined template names start with app. which
should be changed to a unique name (app name) with:
find chart/templates/ -type f -exec sed -i s/\"app\\./\"UNIQUE_NAME./g {} +Features:
- Templating with
toYaml, always. Prevents confusion of variable types. - Alphabetical order of keys, but
namealways comes first.
Setup Helm repository:
helm repo add czetech https://charts.cze.tech/Install Helm chart:
helm install example-chart czetech/example-chart \
--set ingress.enabled=true \
--set ingress.hosts[0]=HOSTsee the chart for more options.
Professional support by Czetech is available at [email protected].
The source code is available at https://github.com/czetech/example-chart.