-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalues.yaml
More file actions
338 lines (303 loc) · 9.52 KB
/
values.yaml
File metadata and controls
338 lines (303 loc) · 9.52 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
# -- Global image settings for the Rocicorp Zero container
image:
# -- Docker image repository
repository: rocicorp/zero
# -- Image tag (defaults to Chart.appVersion)
tag: ""
# -- Image pull policy
pullPolicy: IfNotPresent
# -- Image pull secrets for private registries
imagePullSecrets: []
# -- Override the chart name
nameOverride: ""
# -- Override the full release name
fullnameOverride: ""
# =============================================================================
# ServiceAccount
# =============================================================================
serviceAccount:
# -- Create a ServiceAccount
create: true
# -- Annotations for the ServiceAccount (e.g., eks.amazonaws.com/role-arn for IRSA)
annotations: {}
# -- Override the ServiceAccount name
name: ""
# =============================================================================
# Shared Zero Configuration
# =============================================================================
zero:
# -- Unique identifier for the app
appId: ""
# -- Log level: debug, info, warn, error
logLevel: "info"
# -- Log format: text or json
logFormat: "text"
# -- Automatically wipe and resync replica when replication is halted
autoReset: ""
# -- Symmetric key for JWT verification (deprecated, use OIDC instead)
authSecret: ""
# -- URL pattern for query API endpoint
queryUrl: ""
# -- URL pattern for mutation API endpoint
mutateUrl: ""
# -- API key for authorizing query API calls
queryApiKey: ""
# -- API key for authorizing mutation API calls
mutateApiKey: ""
# -- Enable WebSocket per-message deflate compression
websocketCompression: ""
# -- Node environment (set to "production" to require adminPassword)
nodeEnv: "production"
# =============================================================================
# Database Configuration (shared by both components)
# =============================================================================
database:
# -- Direct Postgres connection string (required, must not use pgbouncer)
upstreamDb: ""
# -- Postgres connection string for CVR storage (defaults to upstreamDb)
cvrDb: ""
# -- Postgres connection string for change log storage (defaults to upstreamDb)
changeDb: ""
# -- Max connections to upstream database
upstreamMaxConns: ""
# -- Max connections to CVR database (default: 30)
cvrMaxConns: ""
# -- Max connections to change database (default: 5)
changeMaxConns: ""
# =============================================================================
# Litestream / S3 Backup (required for multi-node)
# =============================================================================
litestream:
# -- Backup URL (e.g., s3://my-bucket/zero-replica)
backupUrl: ""
# -- S3-compatible endpoint URL (for MinIO, etc.)
endpoint: ""
# -- AWS credentials for S3 access
aws:
accessKeyId: ""
secretAccessKey: ""
# =============================================================================
# Admin Password
# =============================================================================
# -- Admin password for /statz endpoint and inspector (required when nodeEnv=production)
adminPassword: ""
# =============================================================================
# Existing Secrets (use instead of chart-managed secrets)
# =============================================================================
existingSecrets:
# -- Existing Secret with database credentials
# Expected keys: ZERO_UPSTREAM_DB, optionally ZERO_CVR_DB, ZERO_CHANGE_DB
database: ""
# -- Existing Secret with AWS/S3 credentials
# Expected keys: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY
aws: ""
# -- Existing Secret with admin password
# Expected key: ZERO_ADMIN_PASSWORD
admin: ""
# -- Existing Secret with auth secret
# Expected key: ZERO_AUTH_SECRET
auth: ""
# =============================================================================
# Extra Environment Variables (applied to all pods)
# =============================================================================
# -- Additional environment variables for all containers
extraEnv: []
# - name: CUSTOM_VAR
# value: "custom-value"
# -- Additional envFrom sources for all containers
extraEnvFrom: []
# - secretRef:
# name: my-extra-secret
# =============================================================================
# Replication Manager
# =============================================================================
replicationManager:
# -- Path to SQLite replica file inside the container
replicaFile: /data/replica.db
# -- Additional environment variables specific to replication manager
extraEnv: []
# -- Persistent volume for SQLite replica
persistence:
# -- Enable persistence
enabled: true
# -- Storage class (empty for default)
storageClass: ""
# -- Access modes
accessModes:
- ReadWriteOnce
# -- Volume size
size: 10Gi
# -- Annotations for the PVC
annotations: {}
# -- Resource requests and limits
resources: {}
# requests:
# cpu: 250m
# memory: 512Mi
# limits:
# cpu: "1"
# memory: 1Gi
# -- Node selector
nodeSelector: {}
# -- Tolerations
tolerations: []
# -- Affinity rules
affinity: {}
# -- Topology spread constraints
topologySpreadConstraints: []
# -- Pod annotations
podAnnotations: {}
# -- Pod labels
podLabels: {}
# -- Pod security context
podSecurityContext: {}
# -- Container security context
securityContext: {}
service:
# -- Service type
type: ClusterIP
# -- Change streamer port
port: 4849
# -- Service annotations
annotations: {}
# -- Liveness probe
livenessProbe:
httpGet:
path: /keepalive
port: change-streamer
initialDelaySeconds: 15
periodSeconds: 20
timeoutSeconds: 5
failureThreshold: 3
# -- Readiness probe
readinessProbe:
httpGet:
path: /keepalive
port: change-streamer
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
# -- Pod disruption budget
podDisruptionBudget:
enabled: false
# maxUnavailable: 1
# =============================================================================
# View Syncer
# =============================================================================
viewSyncer:
# -- Enable view syncer (false = single-node mode)
enabled: true
# -- Number of replicas (ignored when autoscaling is enabled)
replicaCount: 2
# -- Path to SQLite replica file inside the container
replicaFile: /data/zero.db
# -- Number of sync worker processes (empty for default)
numSyncWorkers: ""
# -- Max milliseconds for sync worker before yielding
yieldThresholdMs: ""
# -- Additional environment variables specific to view syncer
extraEnv: []
# -- Persistent volume for SQLite replica
persistence:
# -- Enable persistence (true=StatefulSet with PVC, false=Deployment with emptyDir)
enabled: true
# -- Storage class (empty for default)
storageClass: ""
# -- Access modes
accessModes:
- ReadWriteOnce
# -- Volume size
size: 10Gi
# -- Annotations for the PVC
annotations: {}
# -- Resource requests and limits
resources: {}
# -- Node selector
nodeSelector: {}
# -- Tolerations
tolerations: []
# -- Affinity rules
affinity: {}
# -- Topology spread constraints
topologySpreadConstraints: []
# -- Pod annotations
podAnnotations: {}
# -- Pod labels
podLabels: {}
# -- Pod security context
podSecurityContext: {}
# -- Container security context
securityContext: {}
service:
# -- Service type
type: ClusterIP
# -- Sync port
port: 4848
# -- Service annotations
annotations: {}
# -- Horizontal pod autoscaler
autoscaling:
# -- Enable HPA
enabled: false
# -- Minimum replicas
minReplicas: 2
# -- Maximum replicas
maxReplicas: 10
# -- Target CPU utilization percentage
targetCPUUtilizationPercentage: 70
# -- Target memory utilization percentage (empty to disable)
targetMemoryUtilizationPercentage: ""
# -- HPA behavior configuration
behavior: {}
# -- Liveness probe
livenessProbe:
httpGet:
path: /keepalive
port: sync
initialDelaySeconds: 15
periodSeconds: 20
timeoutSeconds: 5
failureThreshold: 3
# -- Readiness probe
readinessProbe:
httpGet:
path: /keepalive
port: sync
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
# -- Pod disruption budget
podDisruptionBudget:
enabled: true
maxUnavailable: 1
# =============================================================================
# Ingress (routes to view syncer, or replication manager in single-node mode)
# =============================================================================
ingress:
# -- Enable ingress
enabled: false
# -- Ingress class name
className: ""
# -- Ingress annotations
annotations: {}
# Example nginx WebSocket annotations:
# nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
# nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
# nginx.ingress.kubernetes.io/proxy-http-version: "1.1"
# nginx.ingress.kubernetes.io/upstream-hash-by: "$arg_clientID"
# nginx.ingress.kubernetes.io/configuration-snippet: |
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection "upgrade";
# -- Ingress hosts
hosts:
- host: zero.example.com
paths:
- path: /
pathType: Prefix
# -- Ingress TLS configuration
tls: []
# - secretName: zero-tls
# hosts:
# - zero.example.com