dolibarr

by soerenmetje

Helm chartv1.0.5App 21.0.1MITVerified publisher

A modern software package to manage your company or foundation's activity

About this chart

Dolibarr

Dolibarr is a web application to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). This chart bootstraps a Dolibarr deployment on a Kubernetes cluster using the Helm package manager. It uses the tuxgasy/dolibarr Docker image.

DISCLAIMER: This is an unofficial chart not supported by Dolibarr authors.

Forked from https://github.com/cowboysysop/charts/tree/0641bb51555291514713b2c788bfb5c48ad4f63a/charts/dolibarr to add PVC for Dolibarr html/custom directory

Prerequisites

  • Kubernetes >= 1.24
  • Helm >= 3.9

Installing

Install the chart:

# in case not already added
helm repo add bitnami https://charts.bitnami.com/bitnami/

helm dependency build
helm repo add soerenmetje https://soerenmetje.github.io/helm-charts/
helm repo update

helm show values soerenmetje/dolibarr > my-dolibarr-vals.yaml
# Before installing, edit my-dolibarr-vals.yaml e.g. by inserting your sub-domain
helm install my-release soerenmetje/dolibarr -f my-dolibarr-vals.yaml

These commands deploy Dolibarr on the Kubernetes cluster with the release name my-release and the configuration defined in my-dolibarr-vals.yaml.

Upgrading

Upgrade the chart deployment:

helm upgrade my-release soerenmetje/dolibarr -f my-dolibarr-vals.yaml

The command upgrades the existing my-release deployment with the most latest release of the chart.

TIP: Use helm repo update to update information on available charts in the chart repositories.

Uninstalling

Uninstall the my-release deployment:

helm uninstall my-release

The command deletes the release named my-release and frees all the kubernetes resources associated with the release.

TIP: Specify the --purge argument to the above command to remove the release from the store and make its name free for later use.

Configuration

Global parameters

NameDescriptionDefault
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]

Common parameters

NameDescriptionDefault
kubeVersionOverride Kubernetes version""
nameOverridePartially override dolibarr.fullname template with a string (will prepend the release name)""
fullnameOverrideFully override dolibarr.fullname template with a string""
commonAnnotationsAnnotations to add to all deployed objects{}
commonLabelsLabels to add to all deployed objects{}
extraDeployArray of extra objects to deploy with the release[]

Parameters

NameDescriptionDefault
replicaCountNumber of replicas (do not change it)1
updateStrategy.typeUpdate strategy type (do not change it)Recreate
image.registryImage registrydocker.io
image.repositoryImage repositorytuxgasy/dolibarr
image.tagImage tag19.0.2
image.digestImage digest""
image.pullPolicyImage pull policyIfNotPresent
pdb.createSpecifies whether a pod disruption budget should be createdfalse
pdb.minAvailableMinimum number/percentage of pods that should remain scheduled1
pdb.maxUnavailableMaximum number/percentage of pods that may be made unavailablenil
serviceAccount.createSpecifies whether a service account should be createdtrue
serviceAccount.annotationsService account annotations{}
serviceAccount.nameThe name of the service account to use (Generated using the dolibarr.fullname template if not set)nil
podAnnotationsAdditional pod annotations{}
podLabelsAdditional pod labels{}
podSecurityContextPod security context{}
priorityClassNamePriority class namenil
securityContextContainer security context{}
containerPorts.httpContainer port for HTTP80
livenessProbe.enabledEnable liveness probetrue
livenessProbe.initialDelaySecondsDelay before the liveness probe is initiated180
livenessProbe.periodSecondsHow often to perform the liveness probe10
livenessProbe.timeoutSecondsWhen the liveness probe times out1
livenessProbe.failureThresholdMinimum consecutive failures for the liveness probe to be considered failed after having succeeded3
livenessProbe.successThresholdMinimum consecutive successes for the liveness probe to be considered successful after having failed1
readinessProbe.enabledEnable readiness probetrue
readinessProbe.initialDelaySecondsDelay before the readiness probe is initiated0
readinessProbe.periodSecondsHow often to perform the readiness probe10
readinessProbe.timeoutSecondsWhen the readiness probe times out1
readinessProbe.failureThresholdMinimum consecutive failures for the readiness probe to be considered failed after having succeeded3
readinessProbe.successThresholdMinimum consecutive successes for the readiness probe to be considered successful after having failed1
startupProbe.enabledEnable startup probefalse
startupProbe.initialDelaySecondsDelay before the startup probe is initiated0
startupProbe.periodSecondsHow often to perform the startup probe10
startupProbe.timeoutSecondsWhen the startup probe times out1
startupProbe.failureThresholdMinimum consecutive failures for the startup probe to be considered failed after having succeeded3
startupProbe.successThresholdMinimum consecutive successes for the startup probe to be considered successful after having failed1
service.annotationsService annotations{}
service.typeService typeClusterIP
service.clusterIPStatic cluster IP address or None for headless service when service type is ClusterIPnil
service.loadBalancerIPStatic load balancer IP address when service type is LoadBalancernil
service.loadBalancerSourceRangesSource IP address ranges when service type is LoadBalancernil
service.externalTrafficPolicyExternal traffic routing policy when service type is LoadBalancer or NodePortCluster
service.ports.httpService port for HTTP80
service.nodePorts.httpService node port for HTTP when service type is LoadBalancer or NodePortnil
ingress.enabledEnable ingress controller resourcefalse
ingress.ingressClassNameIngressClass that will be be used to implement the Ingress""
ingress.pathTypeIngress path typeImplementationSpecific
ingress.annotationsIngress annotations{}
ingress.hosts[0].hostHostname to your Dolibarr installationdolibarr.local
ingress.hosts[0].pathsPaths within the url structure["/"]
ingress.tlsTLS configuration[]
resourcesCPU/Memory resource requests/limits{}
nodeSelectorNode labels for pod assignment{}
tolerationsTolerations for pod assignment[]
affinityMap of node/pod affinities{}
extraArgsAdditional container arguments{}
extraEnvVarsAdditional conta

Deploy dolibarr with OpenTenant

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