akaunting

by f3k-tech

Helm chartv1.3121.0App 3.1.21Verified publisher

Akaunting Helm chart for Kubernetes

About this chart

Akaunting Helm Chart

Repository

NameUrl
Contributehttps://github.com/f3k-tech/helm/tree/main/charts/akaunting
Issueshttps://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 to true only during installation and upgrades.

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 false after the first successful deployment to avoid errors.

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartakaunting is pinned at v1.3121.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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