-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathschema-overrides.yaml
More file actions
599 lines (559 loc) · 13.3 KB
/
Copy pathschema-overrides.yaml
File metadata and controls
599 lines (559 loc) · 13.3 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
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
# Schema overrides for values that can't be fully inferred from templates.
# Keys are dotted paths matching .Values.* references.
# Supported fields: type, description, enum, minimum, maximum, pattern,
# required, items, minItems, maxItems
# --- Top-level settings ---
nameOverride:
description: Override the chart name
fullnameOverride:
description: Override the full release name
labels:
description: Custom labels for resources
selectorLabels:
description: Custom selector labels for resources
annotations:
description: Custom annotations for the deployment
podLabels:
description: Custom labels for pods
podAnnotations:
description: Custom annotations for pods
restartOnConfigChange:
type: boolean
description: Trigger rolling restart when pgdog config changes
clusterName:
description: Kubernetes cluster name, added as a label to Prometheus metrics
# --- Image ---
image.repository:
type: string
description: Docker image repository
image.tag:
type: string
description: Docker image tag (defaults to Chart appVersion)
image.digest:
type: string
description: Image digest (overrides tag when specified)
image.pullPolicy:
enum: ["Always", "IfNotPresent", "Never"]
description: Image pull policy
image.name:
type: string
description: "DEPRECATED: Full image name (use repository and tag instead)"
# --- Ports ---
port:
type: integer
description: Port on which PgDog will run
minimum: 1
maximum: 65535
healthcheckPort:
type: integer
description: Port for healthcheck endpoint
minimum: 1
maximum: 65535
openMetricsPort:
type: integer
description: Port for OpenMetrics (Prometheus) export
minimum: 1
maximum: 65535
prometheusPort:
type: integer
description: Port for the Prometheus sidecar
minimum: 1
maximum: 65535
# --- Replicas ---
replicas:
type: integer
description: Number of PgDog replicas
minimum: 1
# --- Scheduling ---
priorityClassName:
type: string
description: PriorityClass name for pgdog pods
terminationGracePeriodSeconds:
type: integer
description: Grace period for pod termination
preStopSleepSeconds:
type: integer
description: Delay before stopping container to allow endpoint updates
# --- Probes (free-form objects) ---
livenessProbe:
type: object
description: Container liveness probe configuration
readinessProbe:
type: object
description: Container readiness probe configuration
startupProbe:
type: object
description: Container startup probe configuration
strategy:
type: object
description: Deployment rollout strategy
# --- StatefulSet ---
statefulSet.enabled:
type: boolean
description: Deploy as StatefulSet instead of Deployment
# --- Env ---
env:
type: array
description: Custom environment variables for the pgdog container
items:
type: object
required: ["name"]
properties:
name:
type: string
value:
type: string
valueFrom:
type: object
# --- Extra containers/volumes ---
extraInitContainers:
type: array
description: Additional init containers
items:
type: object
extraVolumes:
type: array
description: Additional volumes for the pod
items:
type: object
extraVolumeMounts:
type: array
description: Additional volume mounts for the pgdog container
items:
type: object
# --- Resources ---
noCpuLimits:
type: boolean
description: Remove CPU limits from containers
resources:
description: Resource requests and limits for the pgdog container
prometheusResources:
description: Resource requests and limits for the prometheus sidecar
# --- Image pull secrets ---
imagePullSecrets:
type: array
description: Image pull secrets for private registries
items:
type: object
additionalProperties: false
required: ["name"]
properties:
name:
type: string
# --- Logging ---
logFormat:
enum: ["text", "json"]
description: Log output format
logLevel:
enum: ["error", "warn", "info", "debug", "trace", "off"]
description: Log level (RUST_LOG syntax)
logConnections:
type: ["boolean", "string"]
description: Log connections
logDisconnections:
type: ["boolean", "string"]
description: Log disconnections
# --- Pool & connection settings ---
poolerMode:
enum: ["transaction", "session", "statement"]
description: Connection pooler mode
loadBalancingStrategy:
enum: ["round_robin", "random", "least_active_connections"]
description: Load balancing strategy
workers:
type: integer
minimum: 1
description: Number of worker threads
defaultPoolSize:
type: integer
minimum: 1
description: Default connection pool size
connectAttempts:
type: integer
minimum: 1
description: Number of connection attempts
# --- Boolean/string fields where templates use both forms ---
dryRun:
type: ["boolean", "string"]
description: Enable dry run mode
crossShardDisabled:
type: ["boolean", "string"]
description: Disable cross-shard queries
expandedExplain:
type: ["boolean", "string"]
description: Enable expanded explain
tlsClientRequired:
type: ["boolean", "string"]
description: Require TLS client certificates
mirrorExposure:
type: ["number", "string"]
description: Mirror traffic exposure ratio
# --- Query parser ---
queryParser:
type: string
enum: ["auto", "on", "off", "session_control", "session_control_and_locks"]
description: Query parser mode
queryParserEnabled:
type: boolean
description: "DEPRECATED: use queryParser instead"
# --- TLS ---
tlsGenerateSelfSignedCert:
type: boolean
description: Generate self-signed TLS certificate
rdsCertificateBundle.enabled:
type: boolean
description: Mount the RDS CA bundle
rdsCertificateBundle.type:
enum: ["global", "govcloud"]
description: RDS CA bundle type
# --- Databases array ---
databases:
type: array
description: Database entries for pgdog.toml
items:
type: object
additionalProperties: false
required: ["name", "host"]
properties:
name:
type: string
host:
type: string
port:
type: integer
minimum: 1
maximum: 65535
shard:
type: integer
minimum: 0
databaseName:
type: string
user:
type: string
password:
type: string
poolSize:
type: integer
minimum: 0
minPoolSize:
type: integer
minimum: 0
poolerMode:
type: string
statementTimeout:
type: integer
minimum: 0
idleTimeout:
type: integer
minimum: 0
readOnly:
type: boolean
role:
type: string
serverLifetime:
type: integer
minimum: 0
reshardingOnly:
type: boolean
lbWeight:
type: integer
minimum: 0
# --- Users array ---
users:
type: array
description: User entries for users.toml
items:
type: object
# --- Mirrors array ---
mirrors:
type: array
description: Mirror database entries
items:
type: object
additionalProperties: false
required: ["sourceDb", "destinationDb"]
properties:
sourceDb:
type: string
destinationDb:
type: string
queueLength:
type: integer
minimum: 0
queueDepth:
type: integer
minimum: 0
exposure:
type: number
level:
type: string
# --- Sharded schemas ---
shardedSchemas:
type: array
description: Sharded schema entries
items:
type: object
additionalProperties: false
required: ["database", "shard"]
properties:
database:
type: string
name:
type: string
shard:
type: integer
minimum: 0
# --- Sharded tables ---
shardedTables:
type: array
description: Sharded table entries
items:
type: object
additionalProperties: false
required: ["database", "column", "dataType"]
properties:
database:
type: string
name:
type: string
column:
type: string
dataType:
type: string
# --- Sharded mappings ---
shardedMappings:
type: array
description: Sharded mapping entries
items:
type: object
additionalProperties: false
required: ["database", "column", "kind", "shard"]
properties:
database:
type: string
column:
type: string
kind:
type: string
enum: ["list", "range"]
shard:
type: integer
minimum: 0
values:
type: array
start:
type: integer
end:
type: integer
# --- Omnisharded tables ---
omnishardedTables:
type: array
description: Omnisharded table entries
items:
type: object
additionalProperties: false
required: ["database", "tables"]
properties:
database:
type: string
sticky:
type: boolean
tables:
type: array
items:
type: string
# --- Plugins ---
plugins:
type: array
description: Plugin entries
items:
type: object
additionalProperties: false
required: ["name"]
properties:
name:
type: string
config:
type: string
# --- Service ---
service.type:
enum: ["ClusterIP", "NodePort", "LoadBalancer", "ExternalName"]
description: Service type
service.trafficDistribution:
type: string
description: Traffic distribution mode
# --- Node scheduling ---
nodeSelector:
type: object
description: Node selector for pod scheduling
tolerations:
type: array
description: Pod tolerations
items:
type: object
affinity:
type: object
description: Pod affinity rules
topologySpreadConstraints:
type: array
description: Topology spread constraints
items:
type: object
# --- Pod anti-affinity ---
podAntiAffinity.enabled:
type: boolean
description: Enable default anti-affinity rules
podAntiAffinity.type:
enum: ["soft", "hard"]
description: Anti-affinity type
# --- PDB ---
podDisruptionBudget.enabled:
type: boolean
description: Enable PDB
podDisruptionBudget.minAvailable:
type: ["integer", "string"]
description: "Minimum available pods (number or percentage string)"
podDisruptionBudget.maxUnavailable:
type: ["integer", "string"]
description: "Maximum unavailable pods (number or percentage string)"
# --- Service account ---
serviceAccount.create:
type: boolean
serviceAccount.name:
type: string
# --- RBAC ---
rbac.create:
type: boolean
# --- External secrets ---
externalSecrets.enabled:
type: boolean
externalSecrets.create:
type: boolean
externalSecrets.name:
type: string
externalSecrets.secretName:
type: string
externalSecrets.refreshInterval:
type: string
externalSecrets.secretStoreRef.name:
type: string
externalSecrets.secretStoreRef.kind:
enum: ["SecretStore", "ClusterSecretStore"]
externalSecrets.remoteRefs:
type: array
items:
type: object
# --- Grafana remote write ---
grafanaRemoteWrite.url:
type: string
grafanaRemoteWrite.basicAuth.username:
type: string
grafanaRemoteWrite.basicAuth.password:
type: string
grafanaRemoteWrite.queueConfig.capacity:
type: integer
minimum: 1
grafanaRemoteWrite.queueConfig.maxShards:
type: integer
minimum: 1
grafanaRemoteWrite.queueConfig.minShards:
type: integer
minimum: 1
grafanaRemoteWrite.queueConfig.maxSamplesPerSend:
type: integer
minimum: 1
grafanaRemoteWrite.queueConfig.batchSendDeadline:
type: string
grafanaRemoteWrite.queueConfig.minBackoff:
type: string
grafanaRemoteWrite.queueConfig.maxBackoff:
type: string
# --- Service monitor ---
serviceMonitor.enabled:
type: boolean
# --- Prometheus collector labels/scheduling ---
prometheusCollector.labels:
type: object
prometheusCollector.selectorLabels:
type: object
prometheusCollector.podAnnotations:
type: object
prometheusCollector.nodeSelector:
type: object
prometheusCollector.tolerations:
type: array
items:
type: object
prometheusCollector.affinity:
type: object
prometheusCollector.service.annotations:
type: object
# --- Prometheus collector ---
prometheusCollector.enabled:
type: boolean
prometheusCollector.image.pullPolicy:
enum: ["Always", "IfNotPresent", "Never"]
prometheusCollector.port:
type: integer
minimum: 1
maximum: 65535
prometheusCollector.scrapeInterval:
type: string
prometheusCollector.evaluationInterval:
type: string
prometheusCollector.basicAuth.enabled:
type: boolean
prometheusCollector.basicAuth.username:
type: string
prometheusCollector.basicAuth.password:
type: string
prometheusCollector.basicAuth.passwordHash:
type: string
prometheusCollector.tls.enabled:
type: boolean
prometheusCollector.storage.size:
type: string
prometheusCollector.retention.time:
type: string
prometheusCollector.retention.size:
type: string
prometheusCollector.service.type:
enum: ["ClusterIP", "NodePort", "LoadBalancer", "ExternalName"]
# --- Security contexts (free-form) ---
securityContext:
type: object
description: Container security context
podSecurityContext:
type: object
description: Pod security context
# --- OpenTelemetry ---
otel.headers:
type: object
description: Custom headers for OTEL export
# --- Rewrite ---
rewrite.enabled:
type: ["boolean", "string"]
# --- QoS ---
qos.enabled:
type: boolean
queryStats.enabled:
type: boolean
control.enabled:
type: boolean
control.endpoint:
type: string
control.token:
type: string
# --- Two-phase commit booleans ---
twoPhaseCommit:
type: boolean
twoPhaseCommitAuto:
type: boolean
omnishardedSticky:
type: boolean
reloadSchemaOnDdl:
type: boolean
cutoverSaveConfig:
type: boolean
tcpKeepalive:
type: boolean