File tree Expand file tree Collapse file tree 2 files changed +70
-0
lines changed
nix/cardano-services/deployments Expand file tree Collapse file tree 2 files changed +70
-0
lines changed Original file line number Diff line number Diff line change 9696 resources . requests = mkPodResources "150Mi" "100m" ;
9797 } ;
9898
99+ wallet-api = {
100+ resources . limits = mkPodResources "300Mi" "1000m" ;
101+ resources . requests = mkPodResources "150Mi" "100m" ;
102+ } ;
103+
99104 asset = {
100105 resources . limits = mkPodResources "300Mi" "700m" ;
101106 resources . requests = mkPodResources "150Mi" "700m" ;
126131 resources . limits = mkPodResources "300Mi" "500m" ;
127132 resources . requests = mkPodResources "150Mi" "100m" ;
128133 } ;
134+
129135 pg-boss-worker = {
130136 enabled = false ;
131137 queues = "pool-delist-schedule,pool-metadata,pool-metrics,pool-rewards" ;
177183 } ;
178184 } ;
179185 imports = [
186+ ./wallet-api.nix
180187 ./options.nix
181188 ./ws-server.deployment.nix
182189 ./provider.resource.nix
822829 backend = {
823830 enabled = true ;
824831 } ;
832+ handle-provider . enabled = true ;
825833 chain-history-provider . enabled = true ;
834+ stake-pool-provider = {
835+ enabled = true ;
836+ env . OVERRIDE_FUZZY_OPTIONS = "true" ;
837+ } ;
838+ } ;
839+
840+ projectors = {
841+ wallet-api . enabled = true ;
842+ handle . enabled = true ;
843+ stake-pool . enabled = true ;
826844 } ;
827845
846+
828847 values = {
848+ pg-boss-worker . enabled = true ;
849+ pg-boss-worker . queues = "pool-delist-schedule,pool-metadata,pool-metrics,pool-rewards" ;
829850 ws-server . enabled = true ;
830851 cardano-services = {
831852 ingresOrder = 99 ;
Original file line number Diff line number Diff line change 1+ {
2+ config ,
3+ values ,
4+ lib ,
5+ utils ,
6+ chart ,
7+ ...
8+ } : {
9+
10+ projectors . wallet-api = {
11+ inherit ( values . cardano-services ) image ;
12+ livenessProbe = {
13+ timeoutSeconds = 5 ;
14+ httpGet = {
15+ path = "${ values . cardano-services . httpPrefix } /health" ;
16+ port = 3000 ;
17+ } ;
18+ } ;
19+
20+ args = [ "start-projector" ] ;
21+ port = 3000 ;
22+
23+ env = {
24+ NETWORK = config . network ;
25+ LOGGER_MIN_SEVERITY = values . cardano-services . loggingLevel ;
26+ OGMIOS_SRV_SERVICE_NAME = values . backend . ogmiosSrvServiceName ;
27+ PROJECTION_NAMES = "protocol-parameters" ;
28+
29+ POSTGRES_POOL_MAX = "2" ;
30+ POSTGRES_HOST = values . postgresName ;
31+ POSTGRES_PORT = "5432" ;
32+ POSTGRES_DB = "wallet_api" ;
33+ POSTGRES_PASSWORD = {
34+ valueFrom . secretKeyRef = {
35+ name = "wallet-api-owner-user.${ values . postgresName } .credentials.postgresql.acid.zalan.do" ;
36+ key = "password" ;
37+ } ;
38+ } ;
39+ POSTGRES_USER = {
40+ valueFrom . secretKeyRef = {
41+ name = "wallet-api-owner-user.${ values . postgresName } .credentials.postgresql.acid.zalan.do" ;
42+ key = "username" ;
43+ } ;
44+ } ;
45+ POSTGRES_SSL = "true" ;
46+ POSTGRES_SSL_CA_FILE = "/tls/ca.crt" ;
47+ } ;
48+ } ;
49+ }
You can’t perform that action at this time.
0 commit comments