/
values.yaml
13510 lines (12728 loc) · 573 KB
/
values.yaml
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
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Common YAML TEMPLATE Anchors
CONFIG:
## ACCOUNT-LOOKUP BACKEND
als_db_name: &ALS_DB_NAME "account_lookup"
als_db_password: &ALS_DB_PASSWORD ''
als_db_secret: &ALS_DB_SECRET
name: &ALS_DB_SECRET_NAME mysqldb
key: &ALS_DB_SECRET_KEY mysql-password
als_db_host: &ALS_DB_HOST 'mysqldb'
als_db_port: &ALS_DB_PORT 3306
als_db_user: &ALS_DB_USER "account_lookup"
## CENTRAL-LEDGER BACKEND
cl_db_name: &CL_DB_NAME "central_ledger"
cl_db_password: &CL_DB_PASSWORD ''
cl_db_secret: &CL_DB_SECRET
name: &CL_DB_SECRET_NAME mysqldb
key: &CL_DB_SECRET_KEY mysql-password
cl_db_host: &CL_DB_HOST 'mysqldb'
cl_db_port: &CL_DB_PORT 3306
cl_db_user: &CL_DB_USER "central_ledger"
## KAFKA BACKEND
kafka_host: &KAFKA_HOST 'kafka'
kafka_port: &KAFKA_PORT 9092
## BULK OBJECT STORE BACKEND
obj_mongo_host: &OBJSTORE_MONGO_HOST 'cl-mongodb'
obj_mongo_port: &OBJSTORE_MONGO_PORT 27017
obj_mongo_user: &OBJSTORE_MONGO_USER mojaloop
obj_mongo_password: &OBJSTORE_MONGO_PASSWORD ''
obj_mongo_secret: &OBJSTORE_MONGO_SECRET
name: &OBJSTORE_MONGO_SECRET_NAME cl-mongodb
key: &OBJSTORE_MONGO_SECRET_KEY mongodb-passwords
obj_mongo_database: &OBJSTORE_MONGO_DATABASE mlos
## TTK MONGODB BACKEND
ttk_mongo_host: &TTK_MONGO_HOST "ttk-mongodb"
ttk_mongo_port: &TTK_MONGO_PORT "27017"
ttk_mongo_user: &TTK_MONGO_USER "ttk"
ttk_mongo_password: &TTK_MONGO_PASSWORD ""
ttk_mongo_secret: &TTK_MONGO_SECRET
name: &TTK_MONGO_SECRET_NAME ttk-mongodb
key: &TTK_MONGO_SECRET_KEY mongodb-passwords
ttk_mongo_database: &TTK_MONGO_DATABASE "ttk"
## MOJALOOP-TTK-SIMULATORS BACKEND
moja_ttk_sim_kafka_host: &MOJA_TTK_SIM_KAFKA_HOST kafka
moja_ttk_sim_kafka_port: &MOJA_TTK_SIM_KAFKA_PORT 9092
# The Redis Instance can be installed using the following command: helm -n <NAMESPACE> install backend ./example-mojaloop-backend --set "kafka.enabled=false" --set "centralledger-mysql.enabled=false" --set "account-lookup-mysql.enabled=false" --set "centralledger-obj.enabled=false" --set "cep-mongodb.enabled=false" --set "kafka-console.enabled=false" --set "ttksims-redis.enabled=true"
moja_ttk_sim_redis_host: &MOJA_TTK_SIM_REDIS_HOST ttksims-redis-master
moja_ttk_sim_redis_port: &MOJA_TTK_SIM_REDIS_PORT 6379
## THIRDPARTY AUTH-SVC BACKEND
tp_auth_svc_db_name: &TP_AUTH_SVC_DB_NAME "auth_svc"
tp_auth_svc_db_password: &TP_AUTH_SVC_DB_PASSWORD ""
tp_auth_svc_db_secret: &TP_AUTH_SVC_DB_SECRET
name: &TP_AUTH_SVC_DB_SECRET_NAME mysqldb
key: &TP_AUTH_SVC_DB_SECRET_KEY mysql-password
tp_auth_svc_db_host: &TP_AUTH_SVC_DB_HOST 'mysqldb'
tp_auth_svc_db_port: &TP_AUTH_SVC_DB_PORT 3306
tp_auth_svc_db_user: &TP_AUTH_SVC_DB_USER "auth_svc"
tp_auth_svc_redis_host: &TP_AUTH_SVC_REDIS_HOST auth-svc-redis-master
tp_auth_svc_redis_port: &TP_AUTH_SVC_REDIS_PORT 6379
## THIRDPARTY ALS_CONSENT-SVC BACKEND
tp_als_consent_svc_db_name: &TP_ALS_CONSENT_SVC_DB_NAME "consent_oracle"
tp_als_consent_svc_db_password: &TP_ALS_CONSENT_SVC_DB_PASSWORD ""
tp_als_consent_svc_db_secret: &TP_ALS_CONSENT_SVC_DB_SECRET
name: &TP_ALS_CONSENT_SVC_DB_SECRET_NAME mysqldb
key: &TP_ALS_CONSENT_SVC_DB_SECRET_KEY mysql-password
tp_als_consent_svc_db_host: &TP_ALS_CONSENT_SVC_DB_HOST 'mysqldb'
tp_als_consent_svc_db_port: &TP_ALS_CONSENT_SVC_DB_PORT 3306
tp_als_consent_svc_db_user: &TP_ALS_CONSENT_SVC_DB_USER "consent_oracle"
## BATCH_PROCESSING: To enable batch processing set following to true
batch_processing_enabled: &CL_BATCH_PROCESSING_ENABLED false
# Default values for central.
# This is a YAML-formatted file.
# Declare global configurations
global: {}
# Declare variables to be passed into your templates.
account-lookup-service:
enabled: true
account-lookup-service:
enabled: true
# Default values for account-lookup-service.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
image:
registry: docker.io
repository: mojaloop/account-lookup-service
tag: v15.2.3
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
##
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
## e.g:
## pullSecrets:
## - myRegistryKeySecretName
##
pullSecrets: []
replicaCount: 1
command: '["node", "src/index.js", "server", "--api"]'
nameOverride: ""
fullnameOverride: ""
sidecar:
enabled: true
image:
repository: mojaloop/event-sidecar
tag: v14.0.0
pullPolicy: IfNotPresent
command: '["npm", "run", "start"]'
service:
internalPort: 4001
readinessProbe:
enabled: true
httpGet:
path: /health
initialDelaySeconds: 120
periodSeconds: 15
livenessProbe:
enabled: true
httpGet:
path: /health
initialDelaySeconds: 90
periodSeconds: 15
config:
event_log_grpc_host: localhost
event_log_grpc_port: 50051
event_log_filter: 'audit:*, log:info, log:warn, log:error'
event_log_metadata_only: true
log_level: info
log_filter: 'error, warn, info'
## metric configuration for prometheus instrumentation
metrics:
## flag to enable/disable the metrics end-points
enabled: true
config:
timeout: 5000
prefix: moja_
defaultLabels:
serviceName: account-lookup-service
config:
## Central-Ledger config
central_services_host: '$release_name-centralledger-service'
central_services_port: 80
# Protocol versions used for validating (VALIDATELIST) incoming FSPIOP API Headers (Content-type, Accept),
# and for generating requests/callbacks from the Switch itself (DEFAULT value)
protocol_versions: |
{
"CONTENT": {
"DEFAULT": "1.1",
"VALIDATELIST": [
"1",
"1.0",
"1.1"
]
},
"ACCEPT": {
"DEFAULT": "1",
"VALIDATELIST": [
"1",
"1.0",
"1.1"
]
}
}
# Log config
log_level: info
log_transport: file
central_shared_end_point_cache:
expiresIn: 180000
generateTimeout: 30000
getDecoratedValue: true
central_shared_participant_cache:
expiresIn: 61000
generateTimeout: 30000
getDecoratedValue: true
general_cache:
enabled: true
maxByteSize: 10000000
expiresIn: 61000
error_handling:
include_cause_extension: false
truncate_extensions: true
## DB Configuration
# db_type can either be 'postgres' or 'mysql'. Ensure the correct DB is enabled and configured below: postgresql.enabled or mysql.enabled
db_type: 'mysql'
# db_driver can either be 'pg' or 'mysql'. Ensure the correct corresponding db_type above has been set.
db_driver: 'mysql'
db_host: *ALS_DB_HOST
db_port: *ALS_DB_PORT
db_user: *ALS_DB_USER
## Secret-Management
### Set this if you are using a clear password configured in the config section
# db_password: *ALS_DB_PASSWORD
### Configure this if you want to use a secret. Note, this will override the db_password,
### Use the next line if you do wish to use the db_password value instead.
# db_secret:
### Example config for an existing secret
db_secret:
name: *ALS_DB_SECRET_NAME
key: *ALS_DB_SECRET_KEY
db_database: *ALS_DB_NAME
db_connection_pool_min: 10
db_connection_pool_max: 30
db_acquire_timeout_millis: 30000
db_create_timeout_millis: 30000
db_destroy_timeout_millis: 5000
db_idle_timeout_millis: 30000
db_reap_interval_millis: 1000
db_create_retry_interval_millis: 200
db_debug: false
display_routes: true
run_migrations: false
endpointSecurity:
jwsSign: true
fspiopSourceSigningName: switch
# `jwsSigningKeySecret` is used to specify the secret that contains the JWS signing key.
# If `jwsSigningKeySecret` is not null, then the `jwsSigningKey` value will be ignored.
# Expected properties of `jwsSigningKeySecret` are `name` and `key`.
jwsSigningKeySecret: null
# jwsSigningKey:
# To generate this key:
# Private:
# ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Public:
# openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
# Should look like:
# -----BEGIN RSA PRIVATE KEY-----
# MIIJKQIBAAKCAgEAxfqaZivMPd4MpdBHu0jVMf3MSuSdkSMHn+sNJdDQfl+x4R5R
# ..
# ..
# mBynFpdjO0D3PnLKjnBDn1vFAfANOwVpGXCw5mn+484A/SIXYebWruFd03g4
# -----END RSA PRIVATE KEY-----
# The following is an example key and shouldn't be used in production
jwsSigningKey: |-
-----BEGIN PRIVATE KEY-----
MIIEugIBADANBgkqhkiG9w0BAQEFAASCBKQwggSgAgEAAoIBAQDuB5HuHRH5BqI/
VAC/ixm6lz8kJmigIB5jMxLrhB9cgqM+pb0O+is88VRHdxtw8eKG3nvrZYy/4nsJ
z32qo4sOIMqHWTlZgbURVK4FAUEZ/qn63UnXJ1YVqT4UGg31BBj2c1JdlxG2t4JV
DvzGrI2/ia/t4gYZCWrQz6a8OClBIaXu2t6EGFnysyS+1YDWtNIHO+z0lvAY9oad
5MZPHN51o04eIoLO0tPfkz0+NDs4ECwUWuFAg8yo1hxnvSoERiCAwEbFgq2wDe1+
oBhOpusd4VastD/TEqO8RhrwTodddOMKzapJPrQJuvTkrpkmkPOGE8DgIVHsULLR
UYEMKvTVAgMBAAECgf94Meq77xrcFg8sSqe5eNHYP39tvaWyqE7mY/slvpNDH5Pl
D/p21akS156E32BEJuYPk/TLiI2kMWjnvbHvNgr9tq8x3ToyTjtrg5clq8Hr1Ozo
FnFiqkVHMFPFPQZEVU64CQPA33DixuWjMWS3YINfCAinErBry0PiNZGmuFi1K/wy
e1z2F9WfG3IEBEe3NaeXwN55ZPJve0LtneJy3YqNwMg2FpPKBRHFV4lKTaU/hqhC
NK6HQoEXN4Y9AQHn53Fl8n0iNO3qx0Tb7EuGNFmZ2xTlpDKAp8M+BA5Qm5YDkbd6
OoxbGj2YxZncbG+RsvICtVMLqIytubvYREY9WGkCgYEA+K64xhJzWV3cGc8/90ko
TryGMBj1ly5TNa1YyOQxl5z4Glc0aI8a+1vJGEAA+c/OEhMR8MRn3+QfV2LJOI5X
V8Zo2Ger6Ln99LBddTh2HXL3M60cMgs8MYGuJ75g5R/UHnJBLo7NFyVddCOMT3hc
AYSDN3XCw9ycqTw2/mJHB9kCgYEA9QiaCfTtnXdjMqLeYbp2uQEyyO6IZs956ym7
sEQMwx/3wnlE9eiJ6iQxZfddkfOCyV/4MMAlYfpTBQFg7Cwb32Xrv3Ezy0HfZrnt
5Nj4SVQWuOXJhdfC9dmTF+cvBeP+vC6PyDbikxdCo9+05chxS7I3MLxCue4qxy0C
QfQIE10CgYA+kHacHng2u45sT9/f7t/dL0DzSNRAvL7iekIkCIURh8RDnDzrMVWw
d18YYsHcF5PYqEOTN1aK1XGtIoVNXUJMKvaluy9c1a42qUhZ/WJ59jqLHbpCPOFf
8yhFh3gJLQDIyCXt+K9Qa24fkfHy7Gz5VMVOZqohbJddXHDZfxAvwQKBgAdU947+
tjF1BhHYz8Cq3KySfZuHj6tL4AEKYaRXlO4twbMe/9I/4AiShqvfZ/xbBfnSllGX
Hkc9P0iyDt1iQH9BxHkZAQy+7tlbDORBHcTL8FYeAhawKxRCK2WWtFB/zvqAhire
gY8XLhZLNlV91u4F6iLaL0DzAHKvRRcGH0u9AoGATNigZgbRRHJC21JucHeE0tP7
HjGALvb4qn1o0oDHsxNY8i6vVNw9YeQpZaJhceuRHJTGcsq2dJSXpYwIhIVs/8RK
bKbkEndra96L6FRZN8LYBl8zbRUPx39ojGeSbFliQv1eaoA/1DDhCiC2NlcSmbJl
ecaG/Oyo/S+eM8nR7mc=
-----END PRIVATE KEY-----
# Thirdparty API Config
featureEnableExtendedPartyIdType: false
# @param initContainers Add additional init containers to the %%MAIN_CONTAINER_NAME%% pod(s)
# ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
# e.g:
# initContainers:
# - name: your-image-name
# image: your-image
# imagePullPolicy: Always
# command: ['sh', '-c', 'echo "hello world"']
#
# initContainers: []
initContainers: |
- name: wait-for-mysql
image: mysql:5.7
imagePullPolicy: IfNotPresent
command:
- sh
- -c
- |
until result=$(mysql -h ${DB_HOST} -P ${DB_PORT} -u ${DB_USER} --password=${DB_PASSWORD} ${DB_DATABASE} -ss -N -e 'select is_locked from migration_lock;') && eval 'echo is_locked=$result' && if [ -z $result ]; then false; fi && if [ $result -ne 0 ]; then false; fi;
do
echo --------------------;
echo Waiting for MySQL...;
sleep 2;
done;
echo ====================;
echo MySQL ok!;
env:
- name: DB_HOST
value: '{{ .Values.config.db_host }}'
- name: DB_PORT
value: '{{ .Values.config.db_port }}'
- name: DB_USER
value: '{{ .Values.config.db_user }}'
- name: DB_PASSWORD
{{- if .Values.config.db_secret }}
valueFrom:
secretKeyRef:
name: '{{ .Values.config.db_secret.name }}'
key: '{{ .Values.config.db_secret.key }}'
{{- else }}
value: {{ .Values.config.db_password }}
{{- end }}
- name: DB_DATABASE
value: '{{ .Values.config.db_database }}'
service:
internalPort: 4002
## @param service.type %%MAIN_CONTAINER_NAME%% service type
##
type: ClusterIP
## @param service.port %%MAIN_CONTAINER_NAME%% service HTTP port
##
port: 80
## @param service.httpsPort %%MAIN_CONTAINER_NAME%% service HTTPS port
##
httpsPort: 443
## Node ports to expose
## @param service.nodePorts.http Node port for HTTP
## @param service.nodePorts.https Node port for HTTPS
## NOTE: choose port between <30000-32767>
##
nodePorts:
http: null
https: null
## @param service.clusterIP %%MAIN_CONTAINER_NAME%% service Cluster IP
## e.g.:
## clusterIP: None
##
clusterIP: null
## @param service.loadBalancerIP %%MAIN_CONTAINER_NAME%% service Load Balancer IP
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
##
loadBalancerIP: null
## @param service.loadBalancerSourceRanges %%MAIN_CONTAINER_NAME%% service Load Balancer sources
## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
## e.g:
## loadBalancerSourceRanges:
## - 10.10.10.0/24
##
loadBalancerSourceRanges: []
## @param service.externalTrafficPolicy %%MAIN_CONTAINER_NAME%% service external traffic policy
## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
##
externalTrafficPolicy: Cluster
## @param service.annotations Additional custom annotations for %%MAIN_CONTAINER_NAME%% service
##
annotations: {}
## @param master.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
## If "ClientIP", consecutive client requests will be directed to the same Pod
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
##
sessionAffinity: None
## @param master.service.sessionAffinityConfig Additional settings for the sessionAffinity
## sessionAffinityConfig:
## clientIP:
## timeoutSeconds: 300
##
sessionAffinityConfig: {}
ingress:
enabled: true
## @param ingress.pathType Ingress path type
##
pathType: ImplementationSpecific
## @param ingress.apiVersion Force Ingress API version (automatically detected if not set)
##
apiVersion: null
## @param ingress.hostname Default host for the ingress record
##
hostname: account-lookup-service.local
## @param servicePort : port for the service
##
servicePort: 80
## @param ingress.path Default path for the ingress record
## NOTE: You may need to set this to '/*' in order to use this with ALB ingress controllers
path: /
## @param ingress.annotations Additional custom annotations for the ingress record
## NOTE: If `ingress.certManager=true`, annotation `kubernetes.io/tls-acme: "true"` will automatically be added
##
annotations: null
## @param ingress.tls Enable TLS configuration for the host defined at `ingress.hostname` parameter
## TLS certificates will be retrieved from a TLS secret with name: `{{- printf "%s-tls" .Values.ingress.hostname }}`
## You can:
## - Use the `ingress.secrets` parameter to create this TLS secret
## - Relay on cert-manager to create it by setting `ingress.certManager=true`
## - Relay on Helm to create self-signed certificates by setting `ingress.selfSigned=true`
##
tls: false
## @param ingress.certManager Add the corresponding annotations for cert-manager integration
##
certManager: false
## @param ingress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm
##
selfSigned: false
## @param ingress.extraHosts An array with additional hostname(s) to be covered with the ingress record
## e.g:
## extraHosts:
## - name: transfer-api-svc.local
## path: /
##
extraHosts: null
extraPaths: null
extraTls: null
secrets: null
className: "nginx"
##
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
resources: {}
nodeSelector: {}
tolerations: []
affinity: {}
account-lookup-service-admin:
enabled: true
# Default values for account-lookup-service.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
image:
registry: docker.io
repository: mojaloop/account-lookup-service
tag: v15.2.3
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
##
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
## e.g:
## pullSecrets:
## - myRegistryKeySecretName
##
pullSecrets: []
replicaCount: 1
command: '["node", "src/index.js", "server", "--admin"]'
nameOverride: ""
fullnameOverride: ""
sidecar:
enabled: true
image:
repository: mojaloop/event-sidecar
tag: v14.0.0
pullPolicy: IfNotPresent
command: '["npm", "run", "start"]'
service:
internalPort: 4003
readinessProbe:
enabled: true
httpGet:
path: /health
initialDelaySeconds: 120
periodSeconds: 15
livenessProbe:
enabled: true
httpGet:
path: /health
initialDelaySeconds: 90
periodSeconds: 15
config:
event_log_grpc_host: localhost
event_log_grpc_port: 50051
event_log_filter: 'audit:*, log:info, log:warn, log:error'
event_log_metadata_only: true
log_level: info
log_filter: 'error, warn, info'
## metric configuration for prometheus instrumentation
metrics:
## flag to enable/disable the metrics end-points
enabled: true
config:
timeout: 5000
prefix: moja_
defaultLabels:
serviceName: account-lookup-service-admin
config:
## Central-Ledger config
central_services_host: '$release_name-centralledger-service'
central_services_port: 80
# Protocol versions used for validating (VALIDATELIST) incoming FSPIOP API Headers (Content-type, Accept),
# and for generating requests/callbacks from the Switch itself (DEFAULT value)
protocol_versions: |
{
"CONTENT": {
"DEFAULT": "1.1",
"VALIDATELIST": [
"1",
"1.0",
"1.1"
]
},
"ACCEPT": {
"DEFAULT": "1",
"VALIDATELIST": [
"1",
"1.0",
"1.1"
]
}
}
central_shared_end_point_cache:
expiresIn: 180000
generateTimeout: 30000
getDecoratedValue: true
central_shared_participant_cache:
expiresIn: 61000
generateTimeout: 30000
getDecoratedValue: true
general_cache:
enabled: true
maxByteSize: 10000000
expiresIn: 61000
error_handling:
include_cause_extension: false
truncate_extensions: true
## DB Configuration
# db_type can either be 'postgres' or 'mysql'. Ensure the correct DB is enabled and configured below: postgresql.enabled or mysql.enabled
db_type: 'mysql'
# db_driver can either be 'pg' or 'mysql'. Ensure the correct corresponding db_type above has been set.
db_driver: 'mysql'
db_host: *ALS_DB_HOST
db_port: *ALS_DB_PORT
db_user: *ALS_DB_USER
## Secret-Management
### Set this if you are using a clear password configured in the config section
# db_password: *ALS_DB_PASSWORD
### Configure this if you want to use a secret. Note, this will override the db_password,
### Use the next line if you do wish to use the db_password value instead.
# db_secret:
### Example config for an existing secret
db_secret:
name: *ALS_DB_SECRET_NAME
key: *ALS_DB_SECRET_KEY
db_database: *ALS_DB_NAME
db_connection_pool_min: 10
db_connection_pool_max: 30
db_acquire_timeout_millis: 30000
db_create_timeout_millis: 30000
db_destroy_timeout_millis: 5000
db_idle_timeout_millis: 30000
db_reap_interval_millis: 1000
db_create_retry_interval_millis: 200
db_debug: false
endpointSecurity:
jwsSign: false
fspiopSourceSigningName: switch
# `jwsSigningKeySecret` is used to specify the secret that contains the JWS signing key.
# If `jwsSigningKeySecret` is not null, then the `jwsSigningKey` value will be ignored.
# Expected properties of `jwsSigningKeySecret` are `name` and `key`.
jwsSigningKeySecret: null
# jwsSigningKey:
# To generate this key:
# Private:
# ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Public:
# openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
# Should look like:
# -----BEGIN RSA PRIVATE KEY-----
# MIIJKQIBAAKCAgEAxfqaZivMPd4MpdBHu0jVMf3MSuSdkSMHn+sNJdDQfl+x4R5R
# ..
# ..
# mBynFpdjO0D3PnLKjnBDn1vFAfANOwVpGXCw5mn+484A/SIXYebWruFd03g4
# -----END RSA PRIVATE KEY-----
# The following is an example key and shouldn't be used in production
jwsSigningKey: null
# To generate this key:
# Private:
# ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Public:
# openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
# Should look like:
# -----BEGIN RSA PRIVATE KEY-----
# MIIJKQIBAAKCAgEAxfqaZivMPd4MpdBHu0jVMf3MSuSdkSMHn+sNJdDQfl+x4R5R
# ..
# ..
# mBynFpdjO0D3PnLKjnBDn1vFAfANOwVpGXCw5mn+484A/SIXYebWruFd03g4
# -----END RSA PRIVATE KEY-----
display_routes: true
run_migrations: false
# Log config
log_level: info
log_transport: file
# Thirdparty API Config
featureEnableExtendedPartyIdType: false
## @param initContainers Add additional init containers to the %%MAIN_CONTAINER_NAME%% pod(s)
## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
## e.g:
## initContainers:
## - name: your-image-name
## image: your-image
## imagePullPolicy: Always
## command: ['sh', '-c', 'echo "hello world"']
##
# initContainers: []
initContainers: |
- name: wait-for-mysql
image: mysql:5.7
imagePullPolicy: IfNotPresent
command:
- sh
- -c
- |
until mysql -h ${DB_HOST} -P ${DB_PORT} -u ${DB_USER} --password=${DB_PASSWORD} ${DB_DATABASE} -e 'select version()' ;
do
echo --------------------;
echo Waiting for MySQL...;
sleep 2;
done;
echo ====================;
echo MySQL ok!;
env:
- name: DB_HOST
value: '{{ .Values.config.db_host }}'
- name: DB_PORT
value: '{{ .Values.config.db_port }}'
- name: DB_USER
value: '{{ .Values.config.db_user }}'
- name: DB_PASSWORD
{{- if .Values.config.db_secret }}
valueFrom:
secretKeyRef:
name: '{{ .Values.config.db_secret.name }}'
key: '{{ .Values.config.db_secret.key }}'
{{- else }}
value: {{ .Values.config.db_password }}
{{- end }}
- name: DB_DATABASE
value: '{{ .Values.config.db_database }}'
- name: run-migration
image: '{{ .Values.image.repository }}:{{ .Values.image.tag }}'
imagePullPolicy: IfNotPresent
command:
- sh
- -c
- npm run migrate
env:
- name: ALS_MIGRATIONS__RUN_DATA_MIGRATIONS
value: 'true'
- name: ALS_DATABASE__PASSWORD
{{- if .Values.config.db_secret }}
valueFrom:
secretKeyRef:
name: '{{ .Values.config.db_secret.name }}'
key: '{{ .Values.config.db_secret.key }}'
{{- else }}
value: {{ .Values.config.db_password }}
{{- end }}
volumeMounts:
- name: '{{ template "account-lookup-service-admin.fullname" . }}-config-volume'
mountPath: /opt/app/config
service:
internalPort: 4001
## @param service.type %%MAIN_CONTAINER_NAME%% service type
##
type: ClusterIP
## @param service.port %%MAIN_CONTAINER_NAME%% service HTTP port
##
port: 80
## @param service.httpsPort %%MAIN_CONTAINER_NAME%% service HTTPS port
##
httpsPort: 443
## Node ports to expose
## @param service.nodePorts.http Node port for HTTP
## @param service.nodePorts.https Node port for HTTPS
## NOTE: choose port between <30000-32767>
##
nodePorts:
http: null
https: null
## @param service.clusterIP %%MAIN_CONTAINER_NAME%% service Cluster IP
## e.g.:
## clusterIP: None
##
clusterIP: null
## @param service.loadBalancerIP %%MAIN_CONTAINER_NAME%% service Load Balancer IP
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
##
loadBalancerIP: null
## @param service.loadBalancerSourceRanges %%MAIN_CONTAINER_NAME%% service Load Balancer sources
## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
## e.g:
## loadBalancerSourceRanges:
## - 10.10.10.0/24
##
loadBalancerSourceRanges: []
## @param service.externalTrafficPolicy %%MAIN_CONTAINER_NAME%% service external traffic policy
## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
##
externalTrafficPolicy: Cluster
## @param service.annotations Additional custom annotations for %%MAIN_CONTAINER_NAME%% service
##
annotations: {}
## @param master.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
## If "ClientIP", consecutive client requests will be directed to the same Pod
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
##
sessionAffinity: None
## @param master.service.sessionAffinityConfig Additional settings for the sessionAffinity
## sessionAffinityConfig:
## clientIP:
## timeoutSeconds: 300
##
sessionAffinityConfig: {}
ingress:
enabled: true
## @param ingress.pathType Ingress path type
##
pathType: ImplementationSpecific
## @param ingress.apiVersion Force Ingress API version (automatically detected if not set)
##
apiVersion: null
## @param ingress.hostname Default host for the ingress record
##
hostname: account-lookup-service-admin.local
## @param servicePort : port for the service
##
servicePort: 80
## @param ingress.path Default path for the ingress record
## NOTE: You may need to set this to '/*' in order to use this with ALB ingress controllers
path: /
## @param ingress.annotations Additional custom annotations for the ingress record
## NOTE: If `ingress.certManager=true`, annotation `kubernetes.io/tls-acme: "true"` will automatically be added
##
annotations: null
## @param ingress.tls Enable TLS configuration for the host defined at `ingress.hostname` parameter
## TLS certificates will be retrieved from a TLS secret with name: `{{- printf "%s-tls" .Values.ingress.hostname }}`
## You can:
## - Use the `ingress.secrets` parameter to create this TLS secret
## - Relay on cert-manager to create it by setting `ingress.certManager=true`
## - Relay on Helm to create self-signed certificates by setting `ingress.selfSigned=true`
##
tls: false
## @param ingress.certManager Add the corresponding annotations for cert-manager integration
##
certManager: false
## @param ingress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm
##
selfSigned: false
## @param ingress.extraHosts An array with additional hostname(s) to be covered with the ingress record
## e.g:
## extraHosts:
## - name: transfer-api-svc.local
## path: /
##
extraHosts: null
extraPaths: null
extraTls: null
secrets: null
className: "nginx"
##
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
requests: {}
# cpu: 100m
# memory: 128Mi
nodeSelector: {}
tolerations: []
affinity: {}
als-oracle-pathfinder:
enabled: false
# Declare variables to be passed into your templates.
# Declare variables to be passed into your templates.
image:
repository: mojaloop/als-oracle-pathfinder
tag: v12.1.0
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
##
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
## e.g:
## pullSecrets:
## - myRegistryKeySecretName
##
pullSecrets: []
replicaCount: 1
command: '["node", "/opt/app/src/index.js"]'
## Enable diagnostic mode in the deployment
##
diagnosticMode:
## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
##
enabled: false
## @param diagnosticMode.command Command to override all containers in the deployment
##
command:
- node
- /opt/app/src/index.js
## @param diagnosticMode.args Args to override all containers in the deployment
##
args:
- --inspect=0.0.0.0:{{ .Values.diagnosticMode.debug.port }}
## @param diagnosticMode.debug config to override all debug information
##
debug:
internalPort: 9229
port: 9229
readinessProbe:
enabled: true
httpGet:
path: /
initialDelaySeconds: 45
periodSeconds: 15
livenessProbe:
enabled: true
httpGet:
path: /
initialDelaySeconds: 45
periodSeconds: 15
config:
db:
type: 'mysql'
driver: 'mysql'
central_ledger:
host: *CL_DB_HOST
port: *CL_DB_PORT
database: *CL_DB_NAME
user: *CL_DB_USER
## Secret-Management
### Set this if you are using a clear password configured in the config section
# password: *CL_DB_PASSWORD
### Configure this if you want to use a secret. Note, this will override the db_password,
### Use the next line if you do wish to use the db_password value instead.
# secret:
### Example config for an existing secret
secret:
name: *CL_DB_SECRET_NAME
key: *CL_DB_SECRET_KEY
account_lookup:
host: *ALS_DB_HOST
port: *ALS_DB_PORT
database: *ALS_DB_NAME
user: *ALS_DB_USER
## Secret-Management
### Set this if you are using a clear password configured in the config section
# password: *ALS_DB_PASSWORD
### Configure this if you want to use a secret. Note, this will override the db_password,
### Use the next line if you do wish to use the db_password value instead.
# secret:
### Example config for an existing secret
secret:
name: *ALS_DB_SECRET_NAME
key: *ALS_DB_SECRET_KEY
log_level: info
pathfinder:
# Example host IP to be replaced by valid IP
host: 'localhost'
port: 7007
queryTimeoutMs: 10000
tls:
certs:
# These are example keys, please get valid keys for your deployment
client_cert: |-
-----BEGIN CERTIFICATE-----
MIIDejCCAmICCQClh6JWji+/NjANBgkqhkiG9w0BAQsFADB/MQswCQYDVQQGEwJV
UzEQMA4GA1UECAwHQWxhYmFtYTETMBEGA1UEBwwKTW9udGdvbWVyeTENMAsGA1UE
CgwEVGVzdDENMAsGA1UECwwEVGVzdDENMAsGA1UEAwwEVGVzdDEcMBoGCSqGSIb3
DQEJARYNdGVzdEB0ZXN0LmNvbTAeFw0xOTEwMjkxNTMwNTFaFw0yOTEwMjYxNTMw
NTFaMH8xCzAJBgNVBAYTAlVTMRAwDgYDVQQIDAdBbGFiYW1hMRMwEQYDVQQHDApN
b250Z29tZXJ5MQ0wCwYDVQQKDARUZXN0MQ0wCwYDVQQLDARUZXN0MQ0wCwYDVQQD
DARUZXN0MRwwGgYJKoZIhvcNAQkBFg10ZXN0QHRlc3QuY29tMIIBIjANBgkqhkiG
9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4MU4ipis7vrhsJl6Ad0hIF/nEGjTPG/6KliG
E1eaAVxOc/Pgw43quKjt846Aqwd9YoMp2NAx74xvZ4OnbMwSpjDQGRQbMY7Hiubs
UiJMqrst6S5AQqPHJoaErknVjRov0NyAUjia3HThtkqrRT52xTnTGYwc49zt+BKo
G4iurv40hfOTe4b7g3A64CVNEZe7t+qPbAIew9MU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