plausible-analytics

by zekker6

Helm chartv1.5.0App v3.2.2Verified publisher

A Helm Chart for Plausible Analytics - a simple and privacy-friendly alternative to Google Analytics

About this chart

plausible-analytics

A Helm Chart for Plausible Analytics - a simple and privacy-friendly alternative to Google Analytics

This chart is not maintained by the upstream project and any issues with the chart should be raised here

Chart was originally created and maintained by Varac here.

This chart uses v2.1.0 version of Plausible Analytics. See release notes to learn more about upgrade steps: https://github.com/plausible/analytics/releases/tag/v2.1.0

0.13.1 -> 1.0.0

The chart no longer includes postgresql chart by default. Previously, it was using a bitnami/postgresql which became obsolete after introducing a paid subscription for bitnami docker images. See these issues for more details:

  • https://github.com/bitnami/charts/issues/35164
  • https://github.com/zekker6/helm-charts/issues/825

Source Code

Requirements

Dependencies

RepositoryNameVersion
https://sentry-kubernetes.github.io/chartsclickhouse4.1.1

TL;DR

helm repo add zekker6 https://zekker6.github.io/helm-charts/
helm repo update
helm install plausible-analytics zekker6/plausible-analytics

Installing the Chart

To install the chart with the release name plausible-analytics

helm install plausible-analytics zekker6/plausible-analytics

Uninstalling the Chart

To uninstall the plausible-analytics deployment

helm uninstall plausible-analytics

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

Configuration

Read through the values.yaml file. It has several commented out suggested values. Other values may be used from the values.yaml from the common library.

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

helm install plausible-analytics \
  --set env.TZ="America/New York" \
    zekker6/plausible-analytics

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

helm install plausible-analytics zekker6/plausible-analytics -f values.yaml

Custom configuration

N/A

Values

Important: When deploying an application Helm chart you can add more values from our common library chart here

KeyTypeDefaultDescription
affinityobject{}
autoscaling.enabledboolfalse
autoscaling.maxReplicasint100
autoscaling.minReplicasint1
autoscaling.targetCPUUtilizationPercentageint80
baseURLstring"http://example.com"The hosting url of the server, used for URL generation. In production systems, this should be your ingress host.
clickhouseobject{"clickhouse":{"image":"clickhouse/clickhouse-server","imageVersion":"24.3.3.102-alpine","replicas":1},"enabled":true}Clickhouse Database
clickhouse.clickhouseobject{"image":"clickhouse/clickhouse-server","imageVersion":"24.3.3.102-alpine","replicas":1}Sub-chart values, see https://artifacthub.io/packages/helm/sentry/clickhouse
clickhouse.clickhouse.imagestring"clickhouse/clickhouse-server"Latest sentry/clickhouse chart ships 19.14, which doesn't work together with latest plausible https://artifacthub.io/packages/helm/sentry/clickhouse https://hub.docker.com/r/clickhouse/clickhouse-server/tags
disableAuthboolfalseDisables authentication completely, no registration, login will be shown.
disableRegistrationboolfalseDisables registration of new users, keep your admin credentials handy ;)
externalSecretobject{"name":""}Configure an external secret to use for plausible
externalSecret.namestring""Name of the external secret to use
extraEnvlist[]Extra Env Variables that are passed down to plausible 1:1
fullnameOverridestring""
geolocation.account_idstringnilAccount/User ID from maxmind.com
geolocation.enabledboolfalseEnable/Disable the automated fetch of
geolocation.license_keystringnilMy License Key from maxmind.com
googleobject{"clientID":null,"clientSecret":null}Google Search Integration See: https://docs.plausible.io/self-hosting-configuration#google-search-integration
google.clientIDstringnilThe Client ID from the Google API Console for your Plausible Analytics project
google.clientSecretstringnilThe Client Secret from the Google API Console for your Plausible Analytics project
image.pullPolicystring"IfNotPresent"
image.repositorystring"ghcr.io/plausible/community-edition"
image.tagstring"v3.2.2"Overrides the image tag whose default is the chart appVersion. See https://hub.docker.com/r/plausible/analytics for tags
imagePullSecretslist[]
ingress.annotationsobject{}
ingress.enabledboolfalse
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].pathslist[]
ingress.tlslist[]
labelsobject{}Extra Labels to apply on your k8s deployment
nameOverridestring""
nodeSelectorobject{}
podAnnotationsobject{}
podSecurityContextobject{}
postgresqlobject{"url":""}Postgres Database
postgresql.urlstring""URL format example: url: "postgresql://user:password@host:5432/database_name" Use extraEnv in order to pass the DATABASE_URL via external secret
postmarkobject{"apiKey":null}Alternatively, you can use Postmark to send transactional emails
replicaCountint1
resourcesobject{}
secretKeystring""Secret key to be used for encryption. IF no value is provided random string will be generated during release.
securityContextobject{}
service.portint80
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
smtpobject{"enabled":false,"host":null,"mailer":{"adapter":null,"emailAddress":null},"password":null,"port":null,"retries":2,"ssl":{"enabled":false},"username":null}Plausible uses and SMTP server to send transactional emails e.g. account activation, password reset, weekly reports, etc.
smtp.enabledboolfalseEnable/Disable SMTP functionality
smtp.hoststringnilThe host address of your smtp server.
smtp.mailer.emailAddressstringnilThe email address of the email sender
smtp.passwordstringnilThe password in case SMTP auth is enabled.
smtp.portstringnilThe port of your smtp server.
smtp.ssl.enabledboolfalseIf SSL is enabled for SMTP connection
smtp.usernamestringnilThe username/email in case SMTP auth is enabled.
tolerationslist[]
totpVaultKeystring""Secret TOTP Vault key to be used for encryption. IF no value is provided random string will be generated during release. Generate with: openssl rand -base64 32
twitterobject{"access":{"secret":null,"token":null},"consumer":{"key":null,"secret":null}}Twitter Integration https://docs.plausible.io/self-hosting-configuration#twitter-integration
twitter.access.secretstringnilThe access token secret you generated in the steps above
twitter.access.tokenstringnilThe access token you generated in the steps above
twitter.consumer.keystringnilThe API key from the Twitter Developer Portal
twitter.consumer.secretstringnilThe API key secret from the Twitter Developer Portal

Older versions

A historical overview of changes can be found on ArtifactHUB

Support


Autogenerated from chart metadata using helm-docs v1.14.2

Deploy plausible-analytics with OpenTenant

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