Install a Custom Helm Chart
Learn how to configure and install a custom Helm chart.
We'll cover the following...
Configure front-end and back-end services
To make use of the Helm chart that has been just built we need to provide some values, e.g., a Docker image name and a tag. So, let’s define YAML files for the frontend and backend.
First, let’s do it for a front-end application by creating a separate /kanban-frontend.yaml
file, as follows:
app:name: kanban-frontendgroup: frontendcontainer:image: wkrzywiec/kanban-ui:helm-courseport: 80
As we can see, we’re keeping an initial structure of properties from values.yaml
and overriding only those values that are needed, like the most important one—Docker image— which is wkrzywiec/kanban-ui
.
For a back-end application we need an analogous thing, so we create a /kanban-backend.yaml
file, as below:
app:name: kanban-backendgroup: backendcontainer:image: wkrzywiec/kanban-app:helm-courseenv:- key: DB_SERVERvalue: postgres- key: POSTGRES_DBvalue: kanban- key: POSTGRES_USERvalue: kanban- key: POSTGRES_PASSWORDvalue: kanban
This is very similar, but this time we also want to inject environment variables that are necessary for back-end applications to make a connection with a PostgreSQL database.
Having both files defined we can now move on to the next step, which is installing both Helm releases.
Install and verify a custom Helm chart
To run a back-end service of a Kanban application, first we would need to have a Postgres database in which we can store data about boards and a list of tasks. We can either try to find cheap hosting for that or manually install it locally, but luckily for us, we know Helm and we know that ...