Helm chartv3.3.0App v13.4.1Verified publisher

Kubernetes Helm Chart for the lastest stable ERPNext branch

About this chart

Frappe / ERPNext

Frappe/ERPNext world's best 100% open source ERP.

ERPNext is a full-featured business management solution that helps SMEs to record all their business transactions in a single system. With ERPNext, SMEs can make informed, fact-based, timely decisions to remain ahead in the competition. It serves as the backbone of a business adding strength, transparency, and control to your growing enterprise.

TL;DR;

$ helm repo add frappe https://helm.erpnext.com

$ helm install frappe-bench-0001 --namespace erpnext frappe/erpnext \
    --set mariadbHost=mariadb.mariadb.svc.cluster.local \
    --set persistence.worker.storageClass=rook-cephfs \
    --set persistence.logs.storageClass=rook-cephfs

Introduction

This chart bootstraps a Frappe/ERPNext deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.15+
  • Helm 3.0+
  • PV provisioner support in the underlying infrastructure
  • Mariadb host available for access

Installing the Chart

To install the chart with the release name frappe-bench-0001:

$ helm install frappe-bench-0001 --namespace erpnext frappe/erpnext \
    --set mariadbHost=mariadb.mariadb.svc.cluster.local \
    --set persistence.worker.storageClass=rook-cephfs \
    --set persistence.logs.storageClass=rook-cephfs

The command deploys ERPNext on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the frappe-bench-0001 deployment:

$ helm --namespace erpnext delete frappe-bench-0001

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

The following table lists the configurable parameters of the ERPNext chart and their default values.

ParameterDescriptionDefault
replicaCountReplica Count for App Deployments1
nginxImage.repositoryFrappe/ERPNext Nginx Docker image registryfrappe/erpnext-nginx
nginxImage.tagFrappe/ERPNext Nginx Docker image tagLatest Stable Release
nginxImage.pullPolicyFrappe/ERPNext Nginx Docker image pullPolicyIfNotPresent
nginxImage.nginxConfigFrappe/ERPNext Nginx Docker image custom default.confnil
pythonImage.repositoryFrappe/ERPNext Python Docker image registryfrappe/erpnext-worker
pythonImage.tagFrappe/ERPNext Python Docker image tagLatest Stable Release
pythonImage.pullPolicyFrappe/ERPNext Python Docker image pullPolicyIfNotPresent
socketIOImage.repositoryFrappe/ERPNext SocketIO Docker image registryfrappe/frappe-socketio
socketIOImage.tagFrappe/ERPNext SocketIO Docker image tagLatest Stable Release
socketIOImage.pullPolicyFrappe/ERPNext SocketIO Docker image pullPolicyIfNotPresent
redis.image.repositoryRedis Docker image registrybitnami/redis
redis.image.tagRedis Docker image tagLatest Stable Release
redis.image.pullPolicyRedis Docker image pullPolicyIfNotPresent
redis.extraEnvRedis Extra Environment VariablesALLOW_EMPTY_PASSWORD=true
frappePyPortFrappe/ERPNext Python Gunicorn Worker Port8000
socketIOPortFrappe/ERPNext SocketIO Port9000
upstreamRealIPAddressTrusted address (or ip range) of upstream proxy servers127.0.0.1
upstreamRealIPRecursiveRecursive look for upstream proxy server for real IP if onoff
upstreamRealIPHeaderHeader name sent by your upstream proxy serverX-Forwarded-For
mariadbHostMariaDB Host to connect (Required)nil
redisQueueHostQueue Redis Host to connect (Optional)nil
redisCacheHostCache Redis Host to connect (Optional)nil
redisSocketIOHostSocket IO Redis Host to connect (Optional)nil
postgresHostPostgres Host (Optional)nil
postgresPortPostgres Port (Optional)nil
dbRootPasswordMariaDB Root Password to create first site (Optional)nil
createSite.enabledCreate First sitefalse
createSite.siteNameSite name to create the siteerp.cluster.local
createSite.dbRootUserDB root user to create first siteroot
createSite.adminPasswordDB root password to create first siteadmin
createSite.installAppsApps to be installed on site separated by comma (,)erpnext
createSite.dropSiteOnUninstallDrop created site on uninstall of helm releasefalse
ingress.enabledEnable ingress for first sitefalse
ingress.annotationsAnnotation object to be used with ingress{}
ingress.hosts[0].hostHostname for the siteerp.cluster.local
ingress.hosts[0].paths[0].pathIngress Path/
ingress.hosts[0].paths[0].pathTypeIngress Path TypeImplementationSpecific
ingress.tlsIngress TLS array[]
migrateJob.enableRun migrate sites Job after helm install / upgradefalse
migrateJob.backupBackup before migrate sites Jobtrue
persistence.worker.enableCreates PVC with helm release nametrue
persistence.worker.sizeCreates PVC with size8Gi
persistence.worker.storageClassStorageClass with RWX, Required if PVC is creatednil
persistence.logs.enableCreates PVC for logs volume with helm release nametrue
persistence.logs.sizeCreates PVC for logs volume with size8Gi
persistence.logs.storageClassStorageClass with RWX, Required if PVC is creatednil
volumePermissions.enabledEnable init container that changes volume permissions in the data directory (for cases where the default k8s runAsUser and fsUser values do not work)false

The above parameters map to the env variables defined in frappe_docker. For more information please refer to the frappe_docker images documentation.

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

$ helm install frappe-bench-0001 --namespace erpnext frappe/erpnext \
    --set mariadbHost=mariadb.mariadb.svc.cluster.local \
    --set persistence.worker.storageClass=rook-cephfs \
    --set persistence.logs.storageClass=rook-cephfs
    --set migrateJob.enable=true

The above command sets the MariaDB host to mariadb.mariadb.svc.cluster.local. Additionally it creates a PVC named with mentioned storageClass rook-cephfs and creates a migration job.

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

$ helm install frappe-bench-0001 -f values.yaml erpnext

Deploy erpnext with OpenTenant

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