-
Notifications
You must be signed in to change notification settings - Fork 9
/
values.yaml
235 lines (198 loc) · 6.62 KB
/
values.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
---
# Default values for plausible.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
# plausible analytics configuration
# see https://plausible.io/docs/self-hosting-configuration
## Server
baseURL: http://plausible-analytics.local # The hosting url of the server
listenIP: 0.0.0.0
secretKeyBase: "" # is automaticly generated if left empty
totpVaultKey: "dsxvbn3jxDd16az2QpsX5B8O+llxjQ2SJE2i5Bzx38I=" # Should be updated! (TOTP_VAULT_KEY variable must exactly 32 bytes long)
disableRegistration: false # Restricts registration of new users.
logFailedLoginAttempts: false # Controls whether to log warnings about failed login attempts.
## Databases
## Plausible require a Postgres and Clickhouse database
### The URL to the Postgres Database Connection String see -> https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING
databaseURL: "postgres://postgres:postgres@plausible-analytics-postgresql:5432/plausible_db"
### CA certificate for the database connection in PEM format. If not provided, the database connection will not use SSL.
databaseCA: null
### The URL Connection String to clickhouse DB see -> https://clickhouse.tech/docs/en/interfaces/http/
clickhouseDatabaseURL: "http://clickhouse:password@plausible-analytics-clickhouse:8123/plausible_events_db"
clickhouseFlushIntervalMS: ""
clickhouseMaxBufferSize: ""
### Check that postgres and clickhouse are accesible before starting plausible
plausibleInitContainers:
enabled: true
curl:
enabled: false # use curl method to check if clickhouse is ready. (When port 9000 is not accessible)
image:
repository: curlimages/curl
tag: "8.2.1"
postgresql:
image:
repository: postgres
tag: "13.3-alpine"
clickhouse:
image:
repository: bitnami/clickhouse
tag: "23.3.9"
### Specifies if the helm chart should create a secret file or use an existingSecret
secret:
create: true
existingSecret: ""
## Mailer / SMTP Setup
## Plausible send transactional emails e.g. account activation, password reset, weekly reports, etc.
mailer:
enabled: false # Enable/Disable functionality
email: "" # the email address of the email sender
adapter: "" # "Bamboo.Mua", "Bamboo.MailgunAdapter", "Bamboo.MandrillAdapter", "Bamboo.SendGridAdapter"
smtp:
host: "" # The host address of your smtp server.
port: "" # The port of your smtp server.
auth: false # If SMTP auth is enabled.
username: "" # The username/email in case SMTP auth is enabled.
password: "" # The password in case SMTP auth is enabled.
ssl: false # If SSL is enabled for SMTP connection
retries: "" # Number of retries to make until mailer gives up.
mailgun:
apiKey: ""
domain: ""
baseURI: ""
postmarkApiKey: ""
mandrillApiKey: ""
sendgridApiKey: ""
## IP Geolocation
## Plausible use a free ip <-> country database to enrich analytics optionally
## you can provide a different database
extra_geolocation:
enabled: false # Enable/Disable
maxmind:
licenseKey: ""
edition: ""
geolite2CountryDB: ""
geonamesSourceFile: ""
## Google API Integration Integration
## See: https://docs.plausible.io/self-hosting-configuration#google-search-integration
google:
enabled: false # Enable/Disable
clientID: # The Client ID from the Google API Console for your Plausible Analytics project
clientSecret: # The Client Secret from the Google API Console for your Plausible Analytics project
labels: {} # Extra Labels to apply on your k8s deployment
# ------------------------------------------------------------------------------
# Postgresql:
# ------------------------------------------------------------------------------
postgresql:
## If true, install the Postgresql chart
## ref: https://github.com/bitnami/charts/tree/main/bitnami/postgresql
enabled: true
auth:
username: postgres
password: postgres
database: plausible_db
port: 5432
replication:
enabled: false
metrics:
enabled: false
primary:
persistence:
enabled: false
# ------------------------------------------------------------------------------
# Clickhouse:
# ------------------------------------------------------------------------------
clickhouse:
## If true, install the Clickhouse chart
## ref: https://github.com/bitnami/charts/tree/main/bitnami/clickhouse
enabled: true
auth:
username: clickhouse
password: password
database: plausible_events_db
initdbScripts:
db-init.sql: |
CREATE DATABASE IF NOT EXISTS plausible_events_db
initContainers: []
# https://github.com/plausible/analytics/discussions/1603 clickhouse cluster is not supported yet.
shards: 1
replicaCount: 1
zookeeper:
enabled: false
persistence:
enabled: false
## Kubernetes ressources
replicaCount: 1
image:
repository: ghcr.io/plausible/community-edition
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "v2.1.4"
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
podAnnotations: {}
podSecurityContext: {}
# fsGroup: 2000
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
ingress:
enabled: false
className: ""
pathType: Prefix
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts: []
path: /
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 30
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 30
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
nodeSelector: {}
tolerations: []
affinity: {}
## Extra environment variables definition
extraEnv: []