akaunting
by f3k-tech
Akaunting Helm chart for Kubernetes
About this chart
Akaunting Helm Chart
Repository
| Name | Url |
|---|---|
| Contribute | https://github.com/f3k-tech/helm/tree/main/charts/akaunting |
| Issues | https://github.com/f3k-tech/helm/issues |
Deployment
Since mounting persistent storage clears the /var/www/html directory, the chart automatically downloads the required Akaunting application zip file during the initialization process, ensuring the application files are properly extracted into the /var/www/html directory of the container.
Key Environment Variables
AKAUNTING_UPGRADE
- Purpose: Facilitates application upgrades by downloading and overwriting the application files.
- Behavior:
- When set to
true, downloads the Akaunting application zip file and extracts it to/var/www/html. - It can technically remain
true, but this will re-download the files every time the pod starts. Therefore, it is recommended to set it totrueonly during installation and upgrades.
- When set to
AKAUNTING_SETUP
- Purpose: Triggers initial application setup.
- Behavior:
- When set to
true, it initializes the project by setting up the necessary files and (database) configurations. This should only be enabled during the first run to initialize the application. - It is important to set this to
falseafter the first successful deployment to avoid errors.
- When set to
Examples
First Run
# values.yml
env:
- name: AKAUNTING_UPGRADE
value: "true"
- name: AKAUNTING_SETUP
value: "true"
Upgrade
# values.yml
env:
- name: AKAUNTING_UPGRADE
value: "true"
- name: AKAUNTING_SETUP
value: "false"
Normal Run
# values.yml
env:
- name: AKAUNTING_UPGRADE
value: "false"
- name: AKAUNTING_SETUP
value: "false"
Image Details
The container image is constructed using the following:
flavour: Specifies the application variant.appVersion: Identifies the Akaunting version corresponding to the image.- Image Tag Construction:
appVersion-flavour(e.g.,3.0.5-fpm-alpine).
This setup ensures that the app version matches the corresponding version of the zip file downloaded during initialization or upgrades.
Why Version Matching Matters
The app version (appVersion) is used to determine the specific version of the Akaunting zip file to download. This ensures compatibility between the container image and application files.
Deploy akaunting with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has akaunting on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartakaunting is pinned at v1.3121.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply