A simple, self-hosted configuration for Plausible Analytics, meant for deploying to Kubernetes.
- You have installed Cert-manager - optional (yet recommended). Responsible for auto-issuing ssl certificates for your host name.
- You have an SMTP server which can be used by plausible to send emails
Note:
- By default, these templates will install everything in the
defaultnamespace (although, you're free to change that) - Sections which need configuration have been marked as
<todo:replaceme>for convenience
- /base
- /deployment.yaml - the plausible deployment
- /secret.yaml - the plausible configuration and secrets
- /service.yaml - simple plausible service definition
- /ingress.yaml - the publicly accessible ingress config
- /postgres.yaml - simple postgres db instance from scratch
- /clickhouse.yaml - simple clickhouse db instance from scratch
- Open
postgress.yaml. Edit thePOSTGRES_PASSWORDfield and set a randomly generated password for the postgres database - Open
ingress.yaml. Insert your chosen domain name into the host fields - Open
secret.yaml. Configure the marked fields. - Apply the configuration with
kubectl apply -f ./base
