Deploy Using Helmfile
Set up Local Governance modules using HelmFile
Overview
This guide walks you through the steps required to set up the local governance application suite using Helmfile.
Pre-requisites
git
Kubernetes Cluster
Helmfile is a declarative spec for deploying Helm charts. It lets you…
Keep a directory of chart value files and maintain changes in version control.
Apply CI/CD to configuration changes.
Periodically sync to avoid skew in environments.
To avoid upgrades for each iteration of helm
, the helmfile
executable delegates to helm
- as a result, helm
must be installed.
Why Helmfile
Standardisation of Helm templates (Override specific parameters such as namespace)
To improve the utilisation of Helm capabilities (Rollback)
Easy to add any open-source Helm chart to your DIGIT stack
Installation Steps
Download one of the releases
Run as a container
Archlinux: install via
pacman -S helmfile
open SUSE: install via
zypper in helmfile
assuming you are on Tumbleweed; if you are on Leap you must add the kubic repo for your distribution version once before that command, e.g.zypper ar https://download.opensuse.org/repositories/devel:/kubic/openSUSE_Leap_\$releasever kubic
Windows (using scoop):
scoop install helmfile
macOS (using homebrew):
brew install helmfile
Run as a container
The Helmfile Docker images are available in GHCR. There is no latest
tag, since the 0.x
versions can contain breaking changes, so pick the right tag. Example using helmfile 0.156.0
:
You can also use a shim to make calling the binary easier:
Deploy Local Governance Using Helmfile
Update the domain name in the env.yaml
Update db password, flywaypassword, loginusername, loginpassword and git-sync private key in env-secrets.yaml
Run the below command to install DIGIT successfully.
Deploy Local Governance Using Managed Database
This guide outlines a deployment strategy for running containerised applications on Kubernetes, focusing on seamless database integration. It's suitable for teams looking to simplify their database setup using in-cluster PostgreSQL or externally managed database services.
Transitioning to Managed Database Services
By updating the Kubernetes deployment configuration, teams can easily switch from an in-cluster PostgreSQL database to a managed service. This move enhances scalability and reliability while reducing the operational overhead of database management.
Key Benefits:
Scalability and Reliability: Managed services offer superior scalability and reliability compared to in-cluster databases.
Reduced Operational Overhead: Outsourcing database management allows teams to concentrate on application development.
Integration Steps
To integrate a managed PostgreSQL service, modify the following parameters in the
deploy-as-code/charts/environments/env.yaml configuration file:
db-host
: Update with the database service host address.db-name
: Update with the specific database name.db-url
: Update with the complete database connection URL.domain
: Update the domain name with your domain name
Update db password, db username, flyway username, flyway password, login username, login password and git-sync private key in env-secrets.yaml
Run the below command to install Local Governance successfully.
Post Deployment
Navigate to the URL below to log in to the employee dashboard with SUPERUSER access.
Log in with the user credentials which you have provided in the file path below.
Destroy the deployment using Helmfile
Tested Environment
This deployment approach has been thoroughly tested on an Amazon Web Services Elastic Kubernetes Service (AWS EKS) Cluster with Kubernetes version 1.28.\
Last updated
Was this helpful?