plausible

by serge.logvinov

Helm chartv1.1.3App v3.2.2Verified publisher

Plausible Analytics

About this chart

plausible

Plausible Analytics

Plausible Analytics is an easy to use, lightweight (< 1 KB), open source and privacy-friendly alternative to Google Analytics. It doesnt use cookies and is fully compliant with GDPR, CCPA and PECR.

Homepage: https://plausible.io/

Maintainers

NameEmailUrl
sergelogvinovhttps://github.com/sergelogvinov

Source Code

# Helm values
config:
  # openssl rand -base64 48, it creates automatically if not set
  secretKeyBase: ""
  # openssl rand -base64 32, it creates automatically if not set
  totpVaultKey: ""

envs:
  # The database URL for the PostgreSQL/Clickhouse database.
  DATABASE_URL: "postgres://plausible:plausible@plausible-pg/plausible"
  CLICKHOUSE_DATABASE_URL: "http://clickhouse:[email protected]:8123/plausible"
  #
  DISABLE_REGISTRATION: invite_only
  ENABLE_EMAIL_VERIFICATION: "false"

Values

KeyTypeDefaultDescription
replicaCountint1
image.repositorystring"ghcr.io/plausible/community-edition"
image.pullPolicystring"IfNotPresent"
image.tagstring""
imagePullSecretslist[]
nameOverridestring""
fullnameOverridestring""
config.secretKeyBasestring""
config.totpVaultKeystring""
envs.DATABASE_URLstring"postgres://plausible:plausible@plausible-pg/plausible"
envs.CLICKHOUSE_DATABASE_URLstring"http://plausible:[email protected]:8123/plausible"
envs.DISABLE_REGISTRATIONstring"invite_only"
envs.ENABLE_EMAIL_VERIFICATIONstring"false"
serviceAccountobject{"annotations":{},"automount":true,"create":true,"name":""}Pods Service Account. ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
podAnnotationsobject{}Annotations for pod. ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
podLabelsobject{}Extra labels for pod. ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
podSecurityContextobject{"fsGroup":999,"fsGroupChangePolicy":"OnRootMismatch","runAsGroup":9999,"runAsNonRoot":true,"runAsUser":9999}Pod Security Context. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"seccompProfile":{"type":"RuntimeDefault"}}Container Security Context. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
serviceobject{"annotations":{},"ipFamilies":["IPv4"],"port":80,"type":"ClusterIP"}Service parameters ref: https://kubernetes.io/docs/user-guide/services/
service.typestring"ClusterIP"service type
service.portint80service port
ingressobject{"annotations":{},"className":"","enabled":false,"hosts":[{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}Plausible ingress parameters ref: http://kubernetes.io/docs/user-guide/ingress/
resourcesobject{"requests":{"cpu":"100m","memory":"128Mi"}}Resource requests and limits. ref: https://kubernetes.io/docs/user-guide/compute-resources/
autoscalingobject{"controlledResources":["cpu","memory"],"controlledValues":"RequestsOnly","enabled":false,"maxAllowed":{},"minAllowed":{},"updatePolicy":{"updateMode":"InPlaceOrRecreate"}}Vertical pod autoscaler
autoscaling.controlledResourceslist["cpu","memory"]Resource to control Possible values are "cpu" and "memory"
autoscaling.controlledValuesstring"RequestsOnly"Controls which resource value should be autoscaled Possible values are "RequestsAndLimits" and "RequestsOnly"
autoscaling.maxAllowedobject{}Max allowed resources for the pod default is resources.limits
autoscaling.minAllowedobject{}Min allowed resources for the pod default is resources.requests
autoscaling.updatePolicyobject{"updateMode":"InPlaceOrRecreate"}Update policy Possible values are "Off", "Initial", "Recreate", "InPlaceOrRecreate" and "Auto"
updateStrategy.typestring"RollingUpdate"
updateStrategy.rollingUpdate.maxUnavailableint1
volumeslist[]Additional volumes on the output Deployment definition.
volumeMountslist[]Additional volumeMounts on the output Deployment definition.
nodeSelectorobject{}Node labels for pod assignment. ref: https://kubernetes.io/docs/user-guide/node-selection/
tolerationslist[]Tolerations for pod assignment. ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
podAntiAffinityPresetstring"soft"Pod Anti Affinity soft/hard
affinityobject{}Affinity for pod assignment. ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity

Deploy plausible with OpenTenant

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