-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalues.yaml
More file actions
457 lines (387 loc) · 11 KB
/
Copy pathvalues.yaml
File metadata and controls
457 lines (387 loc) · 11 KB
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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
# LogTide Helm Chart - Default Values
# https://logtide.dev
# Global settings
global:
# Image pull secrets for private registries
imagePullSecrets: []
# Storage class for persistent volumes
storageClass: ""
# =============================================================================
# BACKEND CONFIGURATION
# =============================================================================
backend:
enabled: true
replicaCount: 2
image:
repository: ghcr.io/logtide-dev/logtide-backend
tag: "" # Defaults to appVersion
pullPolicy: IfNotPresent
# Container port (must match the port your backend listens on)
containerPort: 8080
service:
type: ClusterIP
port: 8080
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 1000m
memory: 1Gi
# Horizontal Pod Autoscaler
autoscaling:
enabled: true
minReplicas: 2
maxReplicas: 10
targetCPUUtilizationPercentage: 70
targetMemoryUtilizationPercentage: 80
# Health probes
livenessProbe:
enabled: true
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
readinessProbe:
enabled: true
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 3
failureThreshold: 3
# Node selector, tolerations, affinity
nodeSelector: {}
tolerations: []
affinity: {}
# Pod disruption budget
podDisruptionBudget:
enabled: true
minAvailable: 1
# =============================================================================
# FRONTEND CONFIGURATION
# =============================================================================
frontend:
enabled: true
replicaCount: 2
image:
repository: ghcr.io/logtide-dev/logtide-frontend
tag: "" # Defaults to appVersion
pullPolicy: IfNotPresent
# Public API URL for browser requests (base URL without /api suffix)
# This URL must be accessible from the user's browser (not internal k8s DNS)
# If empty and ingress is enabled, defaults to https://{ingress-host}
# Examples:
# - "https://logtide.example.com" (with ingress)
# - "http://localhost:8080" (local development with port-forward)
publicApiUrl: ""
service:
type: ClusterIP
port: 3000
resources:
requests:
cpu: 50m
memory: 128Mi
limits:
cpu: 500m
memory: 512Mi
autoscaling:
enabled: true
minReplicas: 2
maxReplicas: 5
targetCPUUtilizationPercentage: 70
livenessProbe:
enabled: true
initialDelaySeconds: 15
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
readinessProbe:
enabled: true
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 3
failureThreshold: 3
nodeSelector: {}
tolerations: []
affinity: {}
# =============================================================================
# WORKER CONFIGURATION (BullMQ)
# =============================================================================
worker:
enabled: true
replicaCount: 2
image:
repository: ghcr.io/logtide-dev/logtide-backend
tag: "" # Defaults to appVersion
pullPolicy: IfNotPresent
# Worker command override
command: ["node"]
args: ["dist/worker.js"]
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
autoscaling:
enabled: true
minReplicas: 2
maxReplicas: 8
targetCPUUtilizationPercentage: 70
nodeSelector: {}
tolerations: []
affinity: {}
# =============================================================================
# INGRESS CONFIGURATION
# =============================================================================
ingress:
enabled: false
className: nginx
annotations: {}
# kubernetes.io/ingress.class: nginx
# cert-manager.io/cluster-issuer: letsencrypt-prod
hosts:
- host: logtide.example.com
paths:
- path: /
pathType: Prefix
service: frontend
- path: /api
pathType: Prefix
service: backend
- path: /v1
pathType: Prefix
service: backend
tls: []
# - secretName: logtide-tls
# hosts:
# - logtide.example.com
# =============================================================================
# TIMESCALEDB CONFIGURATION (embedded - used when storageEngine: timescale)
# =============================================================================
timescaledb:
# Use embedded TimescaleDB StatefulSet
enabled: true
image:
repository: timescale/timescaledb
tag: latest-pg15
pullPolicy: IfNotPresent
auth:
# Will be stored in Secret
postgresPassword: "" # Required - set via --set or values file
database: logtide
username: logtide
password: "" # Required - set via --set or values file
persistence:
enabled: true
size: 50Gi
storageClass: ""
resources:
requests:
cpu: 250m
memory: 512Mi
limits:
cpu: 2000m
memory: 4Gi
# TimescaleDB tuning
config:
shared_buffers: 1GB
effective_cache_size: 3GB
maintenance_work_mem: 512MB
work_mem: 64MB
max_connections: 200
timescaledb.max_background_workers: 8
nodeSelector: {}
tolerations: []
affinity: {}
# External PostgreSQL/TimescaleDB (if timescaledb.enabled: false)
externalDatabase:
host: ""
port: 5432
database: logtide
username: logtide
password: ""
# Use existing secret
existingSecret: ""
existingSecretPasswordKey: "password"
# =============================================================================
# CLICKHOUSE CONFIGURATION (used when storageEngine: clickhouse)
# =============================================================================
clickhouse:
# Connection to an external ClickHouse instance
host: ""
port: 8123
database: logtide
username: default
password: ""
# Use existing secret for the password
existingSecret: ""
existingSecretPasswordKey: "password"
# =============================================================================
# MONGODB CONFIGURATION (used when storageEngine: mongodb)
# =============================================================================
mongodb:
# Option 1: full connection URI (takes precedence over individual settings)
# e.g. "mongodb://user:pass@host:27017/logtide?authSource=admin"
uri: ""
# Option 2: individual connection settings
host: ""
port: 27017
database: logtide
username: ""
password: ""
authSource: ""
# Use existing secret for uri or password
existingSecret: ""
existingSecretPasswordKey: "password"
# =============================================================================
# REDIS CONFIGURATION
# =============================================================================
redis:
# Use embedded Redis StatefulSet
enabled: true
image:
repository: redis
tag: 7-alpine
pullPolicy: IfNotPresent
auth:
enabled: true
password: "" # Required - set via --set or values file
persistence:
enabled: true
size: 10Gi
storageClass: ""
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 500m
memory: 512Mi
nodeSelector: {}
tolerations: []
affinity: {}
# External Redis (if redis.enabled: false)
externalRedis:
host: ""
port: 6379
password: ""
# Use existing secret
existingSecret: ""
existingSecretPasswordKey: "password"
# =============================================================================
# APPLICATION CONFIGURATION
# =============================================================================
config:
# Node environment
nodeEnv: production
# Log level (debug, info, warn, error)
logLevel: info
# Storage engine: timescale | clickhouse | mongodb
# - timescale: uses the embedded or external TimescaleDB (default)
# - clickhouse: uses external ClickHouse (configure clickhouse section)
# - mongodb: uses external MongoDB (configure mongodb section)
storageEngine: timescale
# Trust reverse proxy headers (X-Forwarded-For, X-Forwarded-Proto)
# Set to true when running behind nginx/traefik ingress
trustProxy: true
# Frontend URL for OIDC redirects
# Defaults to https://{ingress-host} when ingress is enabled
frontendUrl: ""
# JWT secret for authentication (auto-generated if empty)
jwtSecret: ""
# Session secret (auto-generated if empty)
sessionSecret: ""
# API key encryption secret (auto-generated if empty)
# Used to encrypt API keys at rest. Must be at least 32 characters.
apiKeySecret: ""
# CORS origins (comma-separated). Defaults to ingress host when enabled.
corsOrigins: ""
# Response caching
cache:
enabled: true
ttl: 60 # seconds
# General rate limiting
rateLimit:
max: 1000 # requests per window
window: 60000 # window in ms (1 minute)
# Auth-specific rate limiting
authRateLimit:
register: 10 # registrations per window
login: 20 # login attempts per window
window: 900000 # window in ms (15 minutes)
# Retention policy (days)
retention:
logs: 30
alerts: 90
incidents: 365
# SMTP configuration for email notifications
smtp:
enabled: false
host: ""
port: 587
secure: false
user: ""
pass: ""
from: "noreply@logtide.dev"
# Use existing secret for SMTP credentials
existingSecret: ""
# Initial admin user (created on first deployment if no users exist)
initialAdmin:
email: ""
password: ""
name: ""
# =============================================================================
# MONITORING & OBSERVABILITY
# =============================================================================
metrics:
enabled: true
# ServiceMonitor for Prometheus Operator
serviceMonitor:
enabled: false
namespace: ""
interval: 30s
scrapeTimeout: 10s
labels: {}
annotations: {}
# =============================================================================
# SERVICE MESH
# =============================================================================
serviceMesh:
# Istio sidecar injection
istio:
enabled: false
# Linkerd annotations
linkerd:
enabled: false
# =============================================================================
# SECURITY CONTEXT
# =============================================================================
# Container security context
securityContext:
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
# Pod security context
podSecurityContext:
fsGroup: 1000
seccompProfile:
type: RuntimeDefault
# =============================================================================
# SERVICE ACCOUNT
# =============================================================================
serviceAccount:
create: true
name: ""
annotations: {}
# =============================================================================
# NETWORK POLICIES
# =============================================================================
networkPolicy:
enabled: false
# Allow traffic from specific namespaces
allowedNamespaces: []