matomo

by joaquinito2051

Helm chartv0.2.11App 4.12.2

Matomo, formerly known as Piwik, is a real time web analytics program. It provides detailed reports on website visitors.

About this chart

Matomo packaged by Bitnami

Matomo, formerly known as Piwik, is a real time web analytics program. It provides detailed reports on website visitors.

Overview of Matomo

Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

Azure-ready Charts with Containers from marketplace.azurecr.io

This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.

$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo

TL;DR

$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/matomo

Introduction

This chart bootstraps a Matomo deployment on a Kubernetes cluster using the Helm package manager.

It also packages the Bitnami MariaDB chart which is required for bootstrapping a MariaDB deployment as a database for the Matomo application.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters. This chart has been tested to work with NGINX Ingress, cert-manager, fluentd and Prometheus on top of the BKPR.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.0+
  • PV provisioner support in the underlying infrastructure
  • ReadWriteMany volumes for deployment scaling

Installing the Chart

To install the chart with the release name my-release:

$ helm install my-release my-repo/matomo

The command deploys Matomo 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 my-release deployment:

$ helm delete my-release

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

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
kubeVersionForce target Kubernetes version (using Helm capabilities if not set)""
nameOverrideString to partially override matomo.fullname template (will maintain the release name)""
fullnameOverrideString to fully override matomo.fullname template""
namespaceOverrideString to fully override common.names.namespace""
commonAnnotationsCommon annotations to add to all Matomo resources (sub-charts are not considered). Evaluated as a template{}
commonLabelsCommon labels to add to all Matomo resources (sub-charts are not considered). Evaluated as a template{}
extraDeployArray of extra objects to deploy with the release (evaluated as a template).[]

Matomo parameters

NameDescriptionValue
image.registryMatomo image registrydocker.io
image.repositoryMatomo Image namebitnami/matomo
image.tagMatomo Image tag4.12.2-debian-11-r0
image.digestMatomo image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
image.pullPolicyMatomo image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[]
image.debugSpecify if debug logs should be enabledfalse
replicaCountNumber of Matomo Pods to run (requires ReadWriteMany PVC support)1
matomoUsernameUser of the applicationuser
matomoPasswordApplication password""
matomoEmailAdmin email[email protected]
matomoWebsiteNameMatomo application nameexample
matomoWebsiteHostMatomo application hosthttps://example.org
matomoSkipInstallSkip Matomo installation wizard. Useful for migrations and restoring from SQL dumpfalse
customPostInitScriptsCustom post-init.d user scripts{}
allowEmptyPasswordAllow DB blank passwordstrue
commandOverride default container command (useful when using custom images)[]
argsOverride default container args (useful when using custom images)[]
updateStrategy.typeUpdate strategy - only really applicable for deployments with RWO PVs attachedRollingUpdate
priorityClassNameMatomo pods' priorityClassName""
schedulerNameName of the k8s scheduler (other than default)""
topologySpreadConstraintsTopology Spread Constraints for pod assignment[]
hostAliasesAdd deployment host aliases[]
extraEnvVarsExtra environment variables[]
extraEnvVarsCMConfigMap containing extra env vars""
extraEnvVarsSecretSecret containing extra env vars (in case of sensitive data)""
extraVolumesArray of extra volumes to be added to the deployment (evaluated as template). Requires setting extraVolumeMounts[]
extraVolumeMountsArray of extra volume mounts to be added to the container (evaluated as template). Normally used with extraVolumes.[]
initContainersAdd additional init containers to the pod (evaluated as a template)[]
sidecarsAttach additional containers to the pod (evaluated as a template)[]
serviceAccountNameAttach serviceAccountName to the pod and sidecars""
tolerationsTolerations for pod assignment[]
existingSecretName of a secret with the application password""
smtpHostSMTP host""
smtpPortSMTP port""
smtpUserSMTP user""
smtpPasswordSMTP password""
smtpProtocolSMTP Protocol (options: ssl,tls, nil)""
smtpExistingSecretThe name of an existing secret with SMTP credentials""
containerPortsContainer ports{}
persistence.enabledEnable persistence using PVCtrue
persistence.storageClassPVC Storage Class for Matomo volume""
persistence.accessModesPVC Access Mode for Matomo volume["ReadWriteOnce"]
persistence.sizePVC Storage Request for Matomo volume8Gi
persistence.dataSourceCustom PVC data source{}
persistence.existingClaimA manually managed Persistent Volume Claim""
persistence.hostPathIf defined, the matomo-data volume will mount to the specified hostPath.""
persistence.annotationsPersistent Volume Claim annotations{}
persistence.selectorSelector to match an existing Persistent Volume for Matomo data PVC{}
podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed values: soft or hard""
podAntiAffinityPreset

Deploy matomo with OpenTenant

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