Skip to content

Sample Helm chart for an application with one HTTP interface (e.g., a website).

License

Notifications You must be signed in to change notification settings

czetech/example-chart

Repository files navigation

example-chart

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, and maintainers.
  • In values.yaml, edit at least image.repository and image.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 name always comes first.

Installing

Install to Kubernetes using Helm

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]=HOST

see the chart for more options.

Support

Professional support by Czetech is available at hello@cze.tech.

Source code

The source code is available at https://github.com/czetech/example-chart.

About

Sample Helm chart for an application with one HTTP interface (e.g., a website).

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Languages