fineract

by upstreamyard

Helm chartv0.1.1App 1.16.1Apache-2.0Verified publisher

Apache Fineract Helm chart for Kubernetes. Open-source core banking platform (loans, savings, accounting) with database migrations in a Job, scalable write, read and batch instances, generated admin password instead of mifos/password, TLS with cert-manager, Prometheus metrics, PostgreSQL or MariaDB. Community chart by upstreamyard, not an official Apache Fineract chart.

About this chart

Fineract Helm chart: Apache Fineract core banking on Kubernetes

Have any questions, feedback or need help (e.g. setup, hardened images, etc.)? Reach out to [email protected]

Helm chart for Apache Fineract, the open-source core banking platform for loans, savings, clients and accounting, used by banks, microfinance institutions and fintechs (Mifos). It runs database migrations in a Job before every install and upgrade, scales with Fineract's write, read and batch instances so that scheduled jobs run exactly once, and replaces the default mifos/password login with a generated admin password. TLS comes from a per-pod certificate, your own Secret or cert-manager with reload on renewal. It supports PostgreSQL and MariaDB, Prometheus metrics with a ServiceMonitor, and helm test. It runs Fineract 1.16.1 through the upstreamyard/fineract image, which is built from the signed Apache release.

Community chart by upstreamyard, not an official Apache Fineract chart. Apache Fineract is licensed under Apache-2.0. Apache, Apache Fineract and Fineract are trademarks of the Apache Software Foundation.

AI agents and coding assistants: this README is the complete reference. The image's AGENTS.md lists the deployment rules, and llms.txt indexes all docs.

Install

Fineract needs two databases before the install: the tenant store fineract_tenants and the default tenant fineract_default, both owned by the login Fineract uses. For example on PostgreSQL:

CREATE USER fineract WITH PASSWORD 'change-me';
CREATE DATABASE fineract_tenants OWNER fineract;
CREATE DATABASE fineract_default OWNER fineract;

Then:

helm repo add upstreamyard https://upstreamyard.github.io/helm-charts
helm install fineract upstreamyard/fineract \
  --set database.host=postgres.example.svc \
  --set database.password=change-me \
  --set tenant.masterPassword="$(openssl rand -hex 24)"

Or from the OCI registry: helm install fineract oci://ghcr.io/upstreamyard/charts/fineract ....

Save the master password. Fineract stores the tenant's database password encrypted with it, and does not start with another one.

The install notes show the API URL and the command that prints the admin password. Then check the API:

helm test fineract

Verifying the chart

Chart packages are PGP-signed. Import the public key (fingerprint 9B416F989B7E6C65F7F3BFAE7689688B20EC7813) and install with --verify:

curl -s https://upstreamyard.github.io/helm-charts/pgp_keys.asc | gpg --dearmor > upstreamyard.gpg
helm install fineract upstreamyard/fineract --verify --keyring upstreamyard.gpg ...

The OCI copy on GHCR is signed with cosign instead (see the repository README).

What the chart does

  • Migrations: a Job runs Fineract's liquibase-only mode before every install and upgrade; the Fineract pods start with migrations off.
  • Instances:
    • write pods (replicaCount) answer the API;
    • by default the single write pod also runs the scheduled jobs (close of business, interest posting, accruals);
    • with batch.enabled, one separate batch pod runs them, and the write pods can scale;
    • with reader.enabled, read pods behind <release>-fineract-read answer GET requests and refuse writes.
  • Security:
    • the admin password (generated, or yours) replaces mifos/password on the first start;
    • passwords come from Secrets;
    • non-root (UID 10001), read-only root filesystem, all capabilities dropped, no ServiceAccount token. Tested under Pod Security restricted.
  • TLS: HTTPS on 8443 with a certificate generated per pod (default), your own kubernetes.io/tls Secret, or a cert-manager Certificate. Secret certificates are reloaded when they are renewed, without a restart. Or plain HTTP on 8080 behind your ingress.
  • Documents: uploaded documents and images go to a PersistentVolumeClaim, kept on helm uninstall.
  • Probes: startup, liveness and readiness on Fineract's health endpoints. A PodDisruptionBudget covers scaled write and read pods.
  • Metrics: metrics.serviceMonitor.enabled scrapes /fineract-provider/actuator/prometheus on every pod.

Why this chart

Compared with the other Fineract charts on Artifact Hub (checked 2026-10-31):

Other Fineract chartsThis chart
Fineract version1.12.1 or older; one has no version1.16.1, updated with every Apache release
Imageapache/fineract (no version tags after 1.12.1)upstreamyard/fineract, built from the signed Apache release
Admin loginmifos / passwordgenerated password, set on the first start
DatabasesMySQL bundled in the chartyour PostgreSQL or MariaDB; nothing bundled
Migrationson server startJob before every install and upgrade
Scalingone serverwrite, read and batch pods; jobs run once
TLSnone, or at the ingressper-pod certificate, Secret or cert-manager with reload
Upgrade 1.15.0 → 1.16.1 (tested)–rolling, 0 of 87 writes failed

Deployment modes

One pod (default)

One pod answers the API and runs the scheduled jobs. It is replaced with Recreate, because two schedulers must never overlap, so a restart or upgrade takes the API offline for about 20 seconds (measured: 21 failed requests at one per second when the pod was deleted).

database:
  host: postgres.example.svc
  existingSecret: fineract-db
tenant:
  existingSecret: fineract-keys

Scaled: write, batch and read pods

Several write pods need a separate batch pod, so that scheduled jobs run exactly once, and documents on shared storage (ReadWriteMany) or in S3. Upgrades and restarts then roll without downtime.

database:
  host: postgres.example.svc
  existingSecret: fineract-db
tenant:
  existingSecret: fineract-keys
replicaCount: 2
batch:
  enabled: true
reader:
  enabled: true
  replicaCount: 2
persistence:
  accessModes: [ReadWriteMany]
  storageClass: my-rwx-class

Tested in kind with two write pods, one batch and one read pod:

  • Rolling upgrade from Fineract 1.15.0 to 1.16.1 (migration Job included) while a client created one Fineract client per second: 0 of 87 writes failed.
  • A deleted write pod: 0 of 71 writes failed.
  • Shared documents: a document uploaded through a write pod was downloaded through the read Service.
  • Scheduled jobs: only the batch pod starts the scheduler. The others log Batch job scheduling is disabled since this instance is not a batch manager.

The read Service only answers GET requests; Fineract returns 405 for anything else. Point reporting and other read-heavy clients at <release>-fineract-read, everything else at the write Service.

MariaDB

database:
  type: mariadb
  host: mariadb.example.svc
  existingSecret: fineract-db
tenant:
  existingSecret: fineract-keys

Start MariaDB with --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --innodb-snapshot-isolation=OFF (Fineract's own MariaDB settings). Tested with MariaDB 11.8.

Database sizing

Each Fineract pod has two connection pools: the tenant store (up to 10 connections) and the tenant database (up to 40, a default Fineract stores when it creates the tenant). Idle, a pod keeps 8 connections open (measured); its pools allow up to 50. Plan max_connections for all pods plus the migration Job, or cap the tenant pool:

extraEnv:
  - name: FINERACT_CONFIG_MAX_POOL_SIZE
    value: "15"

Fineract then logs Overriding tenant datasource maximum pool size configuration to 15 (tested). In our tests, about 12 pods on one PostgreSQL with its default of 100 connections made new pods fail with remaining connection slots are reserved for roles with the SUPERUSER attribute.

TLS

tls.modePortCertificate
generated (default)8443 HTTPSself-signed, generated by each pod at start
secret8443 HTTPStls.secretName, or cert-manager with tls.certManager.enabled; reloaded when renewed
disabled8080 HTTPnone: TLS ends at your ingress or load balancer

With cert-manager:

tls:
  mode: secret
  certManager:
    enabled: true
    issuerRef:
      name: internal-ca
      kind: ClusterIssuer
    dnsNames: [fineract.example.com]

The Certificate covers the chart's Service names. Tested with a self-signed ClusterIssuer: after cert-manager issued a new certificate, the running pod served it 82 seconds later, without a restart. Most of that time is the kubelet updating the mounted Secret.

With an Ingress and tls.mode generated or secret, configure your ingress controller to connect to the backend over HTTPS. Or use tls.mode: disabled and terminate TLS at the ingress.

Connecting clients

UseURL
API (writes and reads)https://<release>-fineract.<namespace>.svc:8443/fineract-provider/api/v1
Read-only APIhttps://<release>-fineract-read.<namespace>.svc:8443/fineract-provider/api/v1
Jobs API (with batch.enabled)https://<release>-fineract-batch.<namespace>.svc:8443/fineract-provider/api/v1/jobs
Swagger UIhttps://<release>-fineract.<namespace>.svc:8443/fineract-provider/swagger-ui/index.html

With tls.mode: disabled use http:// and port 8080. Every request needs the header Fineract-Platform-TenantId: default and HTTP basic auth, e.g. user mifos with the admin password:

kubectl get secret fineract -o jsonpath='{.data.admin-password}' | base64 -d

Fineract is the API server. For a web UI, run the separate Mifos X web app against it.

Upgrading

helm upgrade first runs the migration Job with the new Fineract version while the old pods keep serving, then replaces the pods. Pin image.tag to control when migrations happen, and back up the database first. Going back to an older Fineract version after its migrations ran is not supported by Fineract.

Operations

  • Settings fixed at the first install: Fineract stores the default tenant's database host, port, name, login, password, connection parameters and time zone in the tenant store. Later changes to database.* and tenant.timezone only affect the tenant store connection; the tenant keeps its stored values (tested).

  • Changing the database password: change it in the database and in your Secret. Then store the new password, encrypted with the master password, in the tenant store:

    kubectl exec deploy/fineract -- java -cp /app/fineract-provider.jar \
      -Dloader.main=org.apache.fineract.infrastructure.core.service.database.DatabasePasswordEncryptor \
      org.springframework.boot.loader.launch.PropertiesLauncher '<master password>' '<new password>'
    # prints "The encrypted password: ..."; then, on the tenant store database:
    # UPDATE tenant_server_connections SET schema_password = '<encrypted password>' WHERE id = 1;
    

    Restart the pods afterwards (tested with PostgreSQL 18).

  • Uninstall: helm uninstall keeps the documents PVC and the chart's Secret with the admin password (helm.sh/resource-policy: keep). A new install with the same release name takes both over (tested). Delete them by hand to remove everything.

  • Argo CD and helm template: they can't read the existing Secret, so set admin.password or admin.existingSecret instead of relying on the generated password.

Production example

# values-prod.yaml
database:
  host: fineract-db-rw.databases.svc
  existingSecret: fineract-db
  existingSecretKey: password
  parameters: sslmode=require
tenant:
  timezone: Africa/Nairobi
  existingSecret: fineract-keys
  existingSecretKey: master-password
admin:
  existingSecret: fineract-keys
  existingSecretKey: admin-password
replicaCount: 2
batch:
  enabled: true
reader:
  enabled: true
  replicaCount: 2
persistence:
  accessModes: [ReadWriteMany]
  storageClass: my-rwx-class
  size: 50Gi
tls:
  mode: secret
  certManager:
    enabled: true
    issuerRef:
      name: internal-ca
      kind: ClusterIssuer
resources:
  requests:
    cpu: "1"
    memory: 3Gi
  limits:
    memory: 3Gi
metrics:
  serviceMonitor:
    enabled: true

Your own configuration

  • Other Fineract settings: extraEnv with Fineract's FINERACT_* variables, e.g. S3 storage for documents (FINERACT_CONTENT_S3_*) or external events. The image README lists the important ones; Fineract's configuration reference has all.
  • JDBC drivers and plugins: jars mounted at /app/plugins through extraVolumes and extraVolumeMounts are loaded.
  • Memory: the heap is 60% of the memory limit. Use at least 2 GiB.

FAQ

Is there an official Apache Fineract Helm chart? No. Fineract's documentation has a "Helm Charts" page that says "TBD". This chart is maintained by upstreamyard together with the image.

What is the default Fineract login? User mifos, password password. This chart replaces the password on the first start with admin.password or a generated one; the install notes show how to read it.

How do I run Fineract highly available on Kubernetes? replicaCount: 2 or more with batch.enabled: true and ReadWriteMany stora

Deploy fineract with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has fineract 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 chartfineract is pinned at v0.1.1 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