-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Expand file tree
/
Copy pathvalues.yaml
More file actions
356 lines (295 loc) · 8.48 KB
/
values.yaml
File metadata and controls
356 lines (295 loc) · 8.48 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
# =============================================================================
# KMS Connector Configuration
# =============================================================================
# This chart deploys the KMS (Key Management Service) connector components
# that bridge between the gateway chain and KMS cores, including:
# - Database migration
# - Gateway listener (processes gateway events)
# - KMS worker (communicates with KMS cores)
# - Transaction sender (submits transactions to gateway)
# =============================================================================
# -----------------------------------------------------------------------------
# Common Configuration
# -----------------------------------------------------------------------------
# Shared configuration across all KMS connector components
commonConfig:
# Database connection string
databaseUrl: "postgresql://$(DATABASE_ENDPOINT)/connector"
# Gateway chain RPC node endpoint (HTTP)
gatewayUrl: "http://gateway-node:8546"
# Gateway chain identifier
gatewayChainId: "54321"
# Gateway smart contract addresses
gatewayContractAddresses:
decryption: "0xc9bAE822fE6793e3B456144AdB776D5A318CB71e"
gatewayConfig: "0xeAC2EfFA07844aB326D92d1De29E136a6793DFFA"
kmsGeneration: "0xF0bFB159C7381F7CB332586004d8247252C5b816"
# Ethereum chain RPC node endpoint (HTTP)
ethereumUrl: "http://ethereum-node:8545"
# Ethereum chain identifier
ethereumChainId: "11155111"
# Ethereum smart contract addresses
ethereumContractAddresses:
kmsVerifier: "0x0000000000000000000000000000000000000000"
# Distributed tracing configuration
tracing:
enabled: false
endpoint: "http://otel-deployment-opentelemetry-collector.observability.svc.cluster.local:4317"
# Environment variables (can be overridden per component)
env:
# Example: Database configuration from secrets
# - name: DATABASE_ENDPOINT
# valueFrom:
# secretKeyRef:
# name: connector-database
# key: endpoint
# - name: PGUSER
# valueFrom:
# secretKeyRef:
# name: connector-database
# key: username
# - name: PGPASSWORD
# valueFrom:
# secretKeyRef:
# name: connector-database
# key: password
# -----------------------------------------------------------------------------
# Database Migration
# -----------------------------------------------------------------------------
# Sets up the database schema for KMS connector
kmsConnectorDbMigration:
enabled: true
annotations:
image:
name: ghcr.io/zama-ai/fhevm/kms-connector/db-migration
tag: v0.10.0
# Command to run database migrations
command:
- "sqlx"
- "migrate"
- "run"
- "--source"
- "/migrations"
# Environment variables for database migration
env:
- name: DATABASE_ENDPOINT
value: "postgresql://db:5432/kms-connector"
- name: PGUSER
value: "postgres"
- name: PGPASSWORD
value: "postgres"
serviceAccountName:
# Size of the non-persistent volume for migration
storage:
size: 2Gi
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
nodeSelector:
affinity:
tolerations:
# -----------------------------------------------------------------------------
# Gateway Listener
# -----------------------------------------------------------------------------
# Listens to gateway events and processes them
kmsConnectorGwListener:
enabled: true
nameOverride:
image:
name: ghcr.io/zama-ai/fhevm/kms-connector/gw-listener
tag: v0.10.0
replicas: 1
# Component-specific configuration
config:
# Override commonConfig.gatewayUrl if needed
# gatewayUrl:
# Additional environment variables
env:
# Distributed tracing (inherits from commonConfig but can be overridden)
tracing:
enabled: false
# Service ports
ports:
monitoring: 9100
# Prometheus ServiceMonitor for metrics collection
serviceMonitor:
enabled: false
serviceAccountName:
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
# Health check probes
probes:
liveness:
enabled: true
httpGet:
path: /healthz
port: monitoring
initialDelaySeconds: 10
periodSeconds: 10
readiness:
enabled: true
httpGet:
path: /healthz
port: monitoring
initialDelaySeconds: 5
periodSeconds: 10
nodeSelector:
affinity:
tolerations:
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
# -----------------------------------------------------------------------------
# KMS Worker
# -----------------------------------------------------------------------------
# Communicates with KMS cores to perform cryptographic operations
kmsConnectorKmsWorker:
enabled: true
nameOverride:
image:
name: ghcr.io/zama-ai/fhevm/kms-connector/kms-worker
tag: v0.10.0
replicas: 1
# Component-specific configuration
config:
# KMS core endpoints for communication
kmsCoreEndpoints: "http://kms-core:50051"
# List of host chain RPC node endpoints, chain ids, and ACL contract addresses
hostChains:
- url: "http://host-node:8545"
chainId: 12345
aclAddress: "0x05fD9B5EFE0a996095f42Ed7e77c390810CF660c"
# Override commonConfig.gatewayUrl if needed
# gatewayUrl:
# Additional environment variables
env:
# Distributed tracing (inherits from commonConfig but can be overridden)
tracing:
enabled: false
# Service ports
ports:
monitoring: 9100
# Prometheus ServiceMonitor for metrics collection
serviceMonitor:
enabled: false
serviceAccountName:
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
# Health check probes
probes:
liveness:
enabled: true
httpGet:
path: /healthz
port: monitoring
initialDelaySeconds: 10
periodSeconds: 10
readiness:
enabled: true
httpGet:
path: /healthz
port: monitoring
initialDelaySeconds: 5
periodSeconds: 10
nodeSelector:
affinity:
tolerations:
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
# -----------------------------------------------------------------------------
# Transaction Sender
# -----------------------------------------------------------------------------
# Submits transactions to the gateway chain
kmsConnectorTxSender:
enabled: true
nameOverride:
image:
name: ghcr.io/zama-ai/fhevm/kms-connector/tx-sender
tag: v0.10.0
replicas: 1
# Component-specific configuration
config:
# Override commonConfig.gatewayUrl if needed
# gatewayUrl:
# Additional environment variables
env:
# Wallet configuration for transaction signing
wallet:
awsKms:
# If set to true, will use the AWS KMS key specified in the configmap instead of the private key specified in the secret
enabled: false
configmap:
name: mpc-party
key: KMS_CONNECTOR__TX_SENDER_AWS_KMS_KEY_ID
secret:
name: kms-connector-tx-sender
key: kms-wallet
# Distributed tracing (inherits from commonConfig but can be overridden)
tracing:
enabled: true
# Service ports
ports:
monitoring: 9100
# Prometheus ServiceMonitor for metrics collection
serviceMonitor:
enabled: false
serviceAccountName:
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
# Health check probes
probes:
liveness:
enabled: true
httpGet:
path: /healthz
port: monitoring
initialDelaySeconds: 10
periodSeconds: 10
readiness:
enabled: true
httpGet:
path: /healthz
port: monitoring
initialDelaySeconds: 5
periodSeconds: 10
nodeSelector:
affinity:
tolerations:
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
# -----------------------------------------------------------------------------
# Global Pod Configuration
# -----------------------------------------------------------------------------
# Pod annotations for additional metadata
# See: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
podAnnotations: {}
# Pod labels for selection and organization
# See: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
podLabels: {}