-
Notifications
You must be signed in to change notification settings - Fork 11
/
values.yaml
469 lines (444 loc) · 22 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
# Default values for fgt.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount: 1
image:
# -- The repository of the container image
repository: joaoluispdm/pharmaledger-imi-fgt
# -- Image Pull Policy
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
# -- sha256 digest of the image.
# Do not add the prefix "@sha256:"
sha: ""
## -- The strategy of the deployment. Defaults to Recreate as a PVC is bound to it.
## See `kubectl explain deployment.spec.strategy` for more and [https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy)
deploymentStrategy:
type: Recreate
# -- Secret(s) for pulling an container image from a private registry.
# See [https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/)
imagePullSecrets: []
# -- nameOverride replaces the name of the chart in the Chart.yaml file, when this is used to construct Kubernetes object names.
# From [https://stackoverflow.com/questions/63838705/what-is-the-difference-between-fullnameoverride-and-nameoverride-in-helm](https://stackoverflow.com/questions/63838705/what-is-the-difference-between-fullnameoverride-and-nameoverride-in-helm)
nameOverride: ""
# -- fullnameOverride completely replaces the generated name.
# From [https://stackoverflow.com/questions/63838705/what-is-the-difference-between-fullnameoverride-and-nameoverride-in-helm](https://stackoverflow.com/questions/63838705/what-is-the-difference-between-fullnameoverride-and-nameoverride-in-helm)
fullnameOverride: ""
serviceAccount:
# Specifies whether a service account should be created
create: false
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
# -- Whether automounting API credentials for a service account is enabled or not.
# See [https://docs.bridgecrew.io/docs/bc_k8s_35](https://docs.bridgecrew.io/docs/bc_k8s_35)
automountServiceAccountToken: false
# -- Annotations added to the pod
podAnnotations: {}
# -- Labels to add to the pod
podLabels: {}
# -- Security Context for the pod.
# IMPORTANT: Take a look at values.yaml file for configuration for non-root user!
# See [https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod)
#
# For running as non-root with uid 1000, remove {} from next line and uncomment fsGroup and runAsUser!
podSecurityContext: {}
# fsGroup: 1000
# runAsUser: 1000
# # -- The SecComp configuration [https://kubernetes.io/docs/tutorials/security/seccomp/](https://kubernetes.io/docs/tutorials/security/seccomp/)
# seccompProfile:
# type: RuntimeDefault
# -- Security Context for the application container
# IMPORTANT: Take a look at values.yaml file for configuration for non-root user!
# See [https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container)
#
# For running as non-root with uid 1000, remove {} from next line and uncomment next lines!
securityContext: {}
# capabilities:
# drop:
# - ALL
# # -- Running as readonly filesystem is currently (Feb 2022) not possible.
# readOnlyRootFilesystem: false
# allowPrivilegeEscalation: false
# runAsNonRoot: true
# runAsUser: 1000
# -- Enable persistence using Persistent Volume Claims
# See [http://kubernetes.io/docs/user-guide/persistent-volumes/](http://kubernetes.io/docs/user-guide/persistent-volumes/)
persistence:
# -- Name of the storage class.
# If empty or not set then storage class will not be set - which means that the default storage class will be used.
storageClassName: ""
# -- Size of the volume
size: "20Gi"
# -- Boolean flag whether to delete the persistent volume on uninstall or not.
deletePvcOnUninstall: true
finalizers:
- kubernetes.io/pvc-protection
accessModes:
- ReadWriteOnce
# -- Configuration. Will be put in ConfigMaps.
config:
# -- The role the FGT API Hub takes
role: "mah"
# -- If instance hosts its own traceability functionality
isTraceability: true
# -- The URL of the FGT API including port
fgtApi: "http://fgt-api.some-pharma-company.com/traceability"
# The time to sleep between start of apihub (npm run server) and build process (npm run build-all)
sleepTime: "10s"
# -- The Domain, e.g. "fgt"
domain: "traceability"
# -- The Subdomain, should be domain.company, e.g. fgt.my-company
subDomain: "traceability.my-company"
# -- The Vault domain, should be vault.company, e.g. vault.my-company
vaultDomain: "vault.my-company"
# -- The Full URL of the Ethadapter including protocol and port, e.g. "https://ethadapter.my-company.com:3000"
ethadapterUrl: ""
# -- Centrally managed and provided BDNS Hosts Config
bdnsHosts: |-
{
"default": {
"replicas": [],
"brickStorages": [
"$ORIGIN"
],
"anchoringServices": [
"$ORIGIN"
]
},
"traceability": {
"replicas": [],
"brickStorages": [
"$ORIGIN"
],
"mqEndpoints": [
"$ORIGIN"
],
"anchoringServices": [
"$ORIGIN"
]
},
"traceability.my-company": {
"replicas": [],
"brickStorages": [
"$ORIGIN"
],
"mqEndpoints": [
"$ORIGIN"
],
"anchoringServices": [
"$ORIGIN"
]
},
"traceability.other-company": {
"replicas": [],
"brickStorages": [
"$ORIGIN"
],
"mqEndpoints": [
"$ORIGIN"
],
"anchoringServices": [
"$ORIGIN"
]
},
"vault.my-company": {
"replicas": [],
"brickStorages": [
"$ORIGIN"
],
"anchoringServices": [
"$ORIGIN"
]
},
"vault": {
"replicas": [],
"brickStorages": [
"$ORIGIN"
],
"anchoringServices": [
"$ORIGIN"
]
}
}
credentials: |-
{
"id": {
"secret": "MAH123",
"public": true
},
"name": {
"secret": "Company Inc.",
"public": true
},
"email": {
"secret": "[email protected]",
"public": true
},
"pass": {
"secret": "This1sSuchAS3curePassw0rd"
}
}
# -- Configuration file apihub.json.
# Settings: [https://docs.google.com/document/d/1mg35bb1UBUmTpL1Kt4GuZ7P0K_FMqt2Mb8B3iaDf52I/edit#heading=h.z84gh8sclah3](https://docs.google.com/document/d/1mg35bb1UBUmTpL1Kt4GuZ7P0K_FMqt2Mb8B3iaDf52I/edit#heading=h.z84gh8sclah3)
#
apihub: |-
{
"storage": "../apihub-root",
"port": 8080,
"preventRateLimit": true,
"activeComponents": [
"virtualMQ",
"messaging",
"notifications",
"filesManager",
"bdns",
"bricksLedger",
"bricksFabric",
"bricking",
"anchoring",
"dsu-wizard",
"pdm-dsu-toolkit-app-store",
"pdm-dsu-toolkit-app-commands",
"fgt-dsu-wizard",
"mq",
"staticServer"
],
"componentsConfig": {
"pdm-dsu-toolkit-app-commands": {
"module": "./../../pdm-dsu-toolkit",
"function": "Init"
},
"fgt-dsu-wizard": {
"module": "./../../fgt-dsu-wizard",
"function": "Init"
},
"mq":{
"module": "./components/mqHub",
"function": "MQHub",
"connectionTimeout": 150000
},
"bricking": {},
"anchoring": {}
},
"CORS": {
"Access-Control-Allow-Origin":"*",
"Access-Control-Allow-Methods": "POST, GET, PUT, DELETE, OPTIONS",
"Access-Control-Allow-Credentials": true
},
"enableRequestLogger": true,
"enableJWTAuthorisation": false,
"enableLocalhostAuthorization": false,
"skipJWTAuthorisation": [
"/assets",
"/leaflet-wallet",
"/dsu-fabric-wallet",
"/directory-summary",
"/resources",
"/bdns",
"/anchor/fgt",
"/anchor/default",
"/anchor/vault",
"/bricking",
"/bricksFabric",
"/bricksledger",
"/create-channel",
"/forward-zeromq",
"/send-message",
"/receive-message",
"/files",
"/notifications",
"/mq"
]
}
services:
app:
# -- Either ClusterIP, NodePort or LoadBalancer.
# See [https://kubernetes.io/docs/concepts/services-networking/service/](https://kubernetes.io/docs/concepts/services-networking/service/)
type: ClusterIP
# -- Port where the service will be exposed
port: 80
# -- Annotations for the service.
# See AWS, see [https://kubernetes.io/docs/concepts/services-networking/service/#ssl-support-on-aws](https://kubernetes.io/docs/concepts/services-networking/service/#ssl-support-on-aws)
# For Azure, see [https://kubernetes-sigs.github.io/cloud-provider-azure/topics/loadbalancer/#loadbalancer-annotations](https://kubernetes-sigs.github.io/cloud-provider-azure/topics/loadbalancer/#loadbalancer-annotations)
annotations: {}
api:
# -- Either ClusterIP, NodePort or LoadBalancer.
# See [https://kubernetes.io/docs/concepts/services-networking/service/](https://kubernetes.io/docs/concepts/services-networking/service/)
type: ClusterIP
# -- Port where the service will be exposed
port: 80
# -- Annotations for the service.
# See AWS, see [https://kubernetes.io/docs/concepts/services-networking/service/#ssl-support-on-aws](https://kubernetes.io/docs/concepts/services-networking/service/#ssl-support-on-aws)
# For Azure, see [https://kubernetes-sigs.github.io/cloud-provider-azure/topics/loadbalancer/#loadbalancer-annotations](https://kubernetes-sigs.github.io/cloud-provider-azure/topics/loadbalancer/#loadbalancer-annotations)
annotations: {}
swagger:
# -- Either ClusterIP, NodePort or LoadBalancer.
# See [https://kubernetes.io/docs/concepts/services-networking/service/](https://kubernetes.io/docs/concepts/services-networking/service/)
type: ClusterIP
# -- Port where the service will be exposed
port: 80
# -- Annotations for the service.
# See AWS, see [https://kubernetes.io/docs/concepts/services-networking/service/#ssl-support-on-aws](https://kubernetes.io/docs/concepts/services-networking/service/#ssl-support-on-aws)
# For Azure, see [https://kubernetes-sigs.github.io/cloud-provider-azure/topics/loadbalancer/#loadbalancer-annotations](https://kubernetes-sigs.github.io/cloud-provider-azure/topics/loadbalancer/#loadbalancer-annotations)
annotations: {}
ingress:
app:
# -- Whether to create ingress or not.
# Note: For ingress an Ingress Controller (e.g. AWS LB Controller, NGINX Ingress Controller, Traefik, ...) is required and service.type should be ClusterIP or NodePort depending on your configuration
enabled: false
# -- The className specifies the IngressClass object which is responsible for that class.
# Note for Kubernetes >= 1.18 it is required to have an existing IngressClass object.
# If IngressClass object does not exists, omit className and add the deprecated annotation 'kubernetes.io/ingress.class' instead.
# For Kubernetes < 1.18 either use className or annotation 'kubernetes.io/ingress.class'.
# See https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-class
className: ""
# -- Ingress annotations.
# For AWS LB Controller, see [https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.3/guide/ingress/annotations/](https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.3/guide/ingress/annotations/)
# For Azure Application Gateway Ingress Controller, see [https://azure.github.io/application-gateway-kubernetes-ingress/annotations/](https://azure.github.io/application-gateway-kubernetes-ingress/annotations/)
# For NGINX Ingress Controller, see [https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/](https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/)
# For Traefik Ingress Controller, see [https://doc.traefik.io/traefik/routing/providers/kubernetes-ingress/#annotations](https://doc.traefik.io/traefik/routing/providers/kubernetes-ingress/#annotations)
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
# -- A list of hostnames and path(s) to listen at the Ingress Controller
hosts:
-
# -- The FQDN/hostname
host: fgt.some-pharma-company.com
paths:
-
# -- The Ingress Path. See [https://kubernetes.io/docs/concepts/services-networking/ingress/#examples](https://kubernetes.io/docs/concepts/services-networking/ingress/#examples)
# Note: For Ingress Controllers like AWS LB Controller see their specific documentation.
path: /
# -- The type of path. This value is required since Kubernetes 1.18.
# For Ingress Controllers like AWS LB Controller or Traefik it is usually required to set its value to ImplementationSpecific
# See [https://kubernetes.io/docs/concepts/services-networking/ingress/#path-types](https://kubernetes.io/docs/concepts/services-networking/ingress/#path-types)
# and [https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/](https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/)
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
api:
# -- Whether to create ingress or not.
# Note: For ingress an Ingress Controller (e.g. AWS LB Controller, NGINX Ingress Controller, Traefik, ...) is required and service.type should be ClusterIP or NodePort depending on your configuration
enabled: false
# -- The className specifies the IngressClass object which is responsible for that class.
# Note for Kubernetes >= 1.18 it is required to have an existing IngressClass object.
# If IngressClass object does not exists, omit className and add the deprecated annotation 'kubernetes.io/ingress.class' instead.
# For Kubernetes < 1.18 either use className or annotation 'kubernetes.io/ingress.class'.
# See https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-class
className: ""
# -- Ingress annotations.
# For AWS LB Controller, see [https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.3/guide/ingress/annotations/](https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.3/guide/ingress/annotations/)
# For Azure Application Gateway Ingress Controller, see [https://azure.github.io/application-gateway-kubernetes-ingress/annotations/](https://azure.github.io/application-gateway-kubernetes-ingress/annotations/)
# For NGINX Ingress Controller, see [https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/](https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/)
# For Traefik Ingress Controller, see [https://doc.traefik.io/traefik/routing/providers/kubernetes-ingress/#annotations](https://doc.traefik.io/traefik/routing/providers/kubernetes-ingress/#annotations)
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
# -- A list of hostnames and path(s) to listen at the Ingress Controller
hosts:
-
# -- The FQDN/hostname
host: fgt-api.some-pharma-company.com
paths:
-
# -- The Ingress Path. See [https://kubernetes.io/docs/concepts/services-networking/ingress/#examples](https://kubernetes.io/docs/concepts/services-networking/ingress/#examples)
# Note: For Ingress Controllers like AWS LB Controller see their specific documentation.
path: /
# -- The type of path. This value is required since Kubernetes 1.18.
# For Ingress Controllers like AWS LB Controller or Traefik it is usually required to set its value to ImplementationSpecific
# See [https://kubernetes.io/docs/concepts/services-networking/ingress/#path-types](https://kubernetes.io/docs/concepts/services-networking/ingress/#path-types)
# and [https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/](https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/)
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
swagger:
# -- Whether to create ingress or not.
# Note: For ingress an Ingress Controller (e.g. AWS LB Controller, NGINX Ingress Controller, Traefik, ...) is required and service.type should be ClusterIP or NodePort depending on your configuration
enabled: false
# -- The className specifies the IngressClass object which is responsible for that class.
# Note for Kubernetes >= 1.18 it is required to have an existing IngressClass object.
# If IngressClass object does not exists, omit className and add the deprecated annotation 'kubernetes.io/ingress.class' instead.
# For Kubernetes < 1.18 either use className or annotation 'kubernetes.io/ingress.class'.
# See https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-class
className: ""
# -- Ingress annotations.
# For AWS LB Controller, see [https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.3/guide/ingress/annotations/](https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.3/guide/ingress/annotations/)
# For Azure Application Gateway Ingress Controller, see [https://azure.github.io/application-gateway-kubernetes-ingress/annotations/](https://azure.github.io/application-gateway-kubernetes-ingress/annotations/)
# For NGINX Ingress Controller, see [https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/](https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/)
# For Traefik Ingress Controller, see [https://doc.traefik.io/traefik/routing/providers/kubernetes-ingress/#annotations](https://doc.traefik.io/traefik/routing/providers/kubernetes-ingress/#annotations)
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
# -- A list of hostnames and path(s) to listen at the Ingress Controller
hosts:
-
# -- The FQDN/hostname
host: fgt-swagger.some-pharma-company.com
paths:
-
# -- The Ingress Path. See [https://kubernetes.io/docs/concepts/services-networking/ingress/#examples](https://kubernetes.io/docs/concepts/services-networking/ingress/#examples)
# Note: For Ingress Controllers like AWS LB Controller see their specific documentation.
path: /
# -- The type of path. This value is required since Kubernetes 1.18.
# For Ingress Controllers like AWS LB Controller or Traefik it is usually required to set its value to ImplementationSpecific
# See [https://kubernetes.io/docs/concepts/services-networking/ingress/#path-types](https://kubernetes.io/docs/concepts/services-networking/ingress/#path-types)
# and [https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/](https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/)
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
# -- Resource constraints for the container
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
# -- Node Selectors in order to assign pods to certain nodes.
# See [https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/)
nodeSelector: {}
# -- Tolerations for scheduling a pod.
# See [https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/)
tolerations: []
# -- Affinity for scheduling a pod.
# See [https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/)
affinity: {}
# -- Liveness probe.
# See [https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/)
livenessProbe:
httpGet:
path: /
port: app
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 1
successThreshold: 1
failureThreshold: 20
# -- Readiness probe.
# See [https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/)
readinessProbe:
exec:
command:
- cat
- /fgt-workspace/apihub-root/ready
initialDelaySeconds: 500
periodSeconds: 5
successThreshold: 1
failureThreshold: 60
# Maybe add check for DSU explorer seed later to check readiness
# /fgt-workspace/apihub-root/dsu-explorer/wallet-patch $ cat seed