-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathvalues-kmsgen.yaml
More file actions
114 lines (93 loc) · 2.84 KB
/
values-kmsgen.yaml
File metadata and controls
114 lines (93 loc) · 2.84 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
# =============================================================================
# FHEVM Smart Contracts Configuration
# =============================================================================
# This chart handles KMS generation methods from host contracts
# =============================================================================
# NOTE: These values are for reference only
# The chart is for host only
# -----------------------------------------------------------------------------
# Key generation
# -----------------------------------------------------------------------------
# Triggers the generation of an FHE key from the host contracts
keygen:
enabled: true
# Prevent redeployment if already done for current version
# preventRedeployment: false
nameOverride:
image:
name: ghcr.io/zama-ai/fhevm/host-contracts
tag: v0.13.0
# ConfigMap to store deployed contract addresses
configmap:
name: "addresses"
annotations:
# Environment variables
env:
# Deployer's private key
- name: DEPLOYER_PRIVATE_KEY
value: ""
# KMSGeneration contract address
- name: KMS_GENERATION_CONTRACT_ADDRESS
value: ""
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
# Security context for container execution
securityContext:
runAsNonRoot: true
runAsUser: 10000
fsGroup: 10001
# Commands to run in sequence
commands:
# Trigger key generation for cryptographic operations
# Params type:
# - 0: Default parameters
# - 1: Test parameters
- npx hardhat task:triggerKeygen --params-type 1
# -----------------------------------------------------------------------------
# CRS generation
# -----------------------------------------------------------------------------
# Triggers the generation of a CRS from the host contracts
crsgen:
enabled: true
# Prevent redeployment if already done for current version
# preventRedeployment: false
nameOverride:
image:
name: ghcr.io/zama-ai/fhevm/host-contracts
tag: v0.13.0
# ConfigMap to store deployed contract addresses
configmap:
name: "addresses"
annotations:
# Environment variables
env:
# Deployer's private key
- name: DEPLOYER_PRIVATE_KEY
value: ""
# KMSGeneration contract address
- name: KMS_GENERATION_CONTRACT_ADDRESS
value: ""
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
# Security context for container execution
securityContext:
runAsNonRoot: true
runAsUser: 10000
fsGroup: 10001
# Commands to run in sequence
commands:
# Trigger CRS generation for cryptographic operations
# Params type:
# - 0: Default parameters
# - 1: Test parameters
- npx hardhat task:triggerCrsgen --params-type 1 --max-bit-length 2048