-
Notifications
You must be signed in to change notification settings - Fork 9
/
values.yaml
341 lines (305 loc) · 12.2 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
#################################################################################
# Tractus-X - Digital Product Passport Application
#
# Copyright (c) 2022, 2024 BASF SE, BMW AG, Henkel AG & Co. KGaA
# Copyright (c) 2022, 2024 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
# either express or implied. See the
# License for the specific language govern in permissions and limitations
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
#################################################################################
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
name: "digital-product-pass"
replicaCount: 1
namespace: ""
# -- Backend configuration
backend:
name: "dpp-backend"
image:
repository: docker.io/tractusx/digital-product-pass-backend
pullPolicy: Always
# -- Existing image pull secret to use to [obtain the container image from private registries](https://kubernetes.io/docs/concepts/containers/images/#using-a-private-registry)
imagePullSecrets: []
service:
# -- [Service type](https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types) to expose the running application on a set of Pods as a network service
type: ClusterIP
port: 8888
# -- ingress declaration to expose the dpp-backend service
ingress:
enabled: false
annotations:
# -- ingress class name
ingressClassName: nginx
# kubernetes.io/tls-acme: "true"
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/ssl-passthrough: "false"
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
hosts:
- host: &hostname "localhost"
paths:
- path: /
pathType: Prefix
# -- The [pod security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod) defines privilege and access control settings for a Pod within the deployment
podSecurityContext:
seccompProfile:
# -- Restrict a Container's Syscalls with seccomp
type: RuntimeDefault
# -- Runs all processes within a pod with a special uid
runAsUser: 1000
# -- Processes within a pod will belong to this guid
runAsGroup: 3000
# -- The owner for volumes and any files created within volumes will belong to this guid
fsGroup: 3000
# The [container security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container) defines privilege and access control settings for a Container within a pod
securityContext:
capabilities:
# -- Specifies which capabilities to drop to reduce syscall attack surface
drop:
- ALL
# -- Specifies which capabilities to add to issue specialized syscalls
add: []
# -- Whether the root filesystem is mounted in read-only mode
readOnlyRootFilesystem: true
# -- Controls [Privilege Escalation](https://kubernetes.io/docs/concepts/security/pod-security-policy/#privilege-escalation) enabling setuid binaries changing the effective user ID
allowPrivilegeEscalation: false
# -- Requires the container to run without root privileges
runAsNonRoot: true
# -- The container's process will run with the specified uid
runAsUser: 1000
# -- The owner for volumes and any files created within volumes will belong to this guid
runAsGroup: 3000
# -- specifies the volume mounts for the backend deployment
volumeMounts:
# -- mounted path for the backend configuration added in the config maps
- name: backend-config
mountPath: /app/config
# -- contains the location for the process data directory
- name: pvc-backend
mountPath: /app/data/process
subPath: data/process
# -- contains the log directory uses by the backend
- name: tmpfs
mountPath: /app/log
subPath: log
# -- container tmp directory
- name: tmpfs
mountPath: /tmp
# -- contains the vault configuration for the backend
- name: tmpfs
mountPath: /app/data/VaultConfig
subPath: VaultConfig/vault.token.yml
# -- contains the temporary directory used by the backend
- name: tmpfs
mountPath: /app/tmp
# -- volume claims for the containers
volumes:
# -- persist the backend configuration
- name: backend-config
configMap:
name: backend-config
# -- persist the backend data directories
- name: pvc-backend
persistentVolumeClaim:
claimName: pvc-data
# -- temporary file system mount
- name: tmpfs
emptyDir: {}
# -- in this section we configure the values that are inserted as secrets in the backend
edc:
# -- the secret for assesing the edc management API
xApiKey: "<Add API key here>"
# -- BPN Number
participantId: &bpn "<Add participant id here>"
# -- edc consumer connection configuration
hostname: ""
apis:
management: "/management/v2"
catalog: "/catalog/request"
negotiation: "/contractnegotiations"
transfer: "/transferprocesses"
# -- Negotiation status Delay in milliseconds in between async requests [<= 500]
delay: 100
# -- backend hostname (without protocol prefix [DEFAULT HTTPS] for security )
hostname: *hostname
# -- configuration of the spring boot server
serverPort: 8888
logging:
level:
# -- general logging level
root: INFO
# -- logging for the util components
utils: INFO
# -- Provide your custom configuration here (this overrides the DPP backend spring application.yaml)
# -- max retries for the backend services
maxRetries: 5
# -- security configuration
securityCheck:
bpn: false
edc: false
# -- irs configuration
irs:
enabled: false
hostname: ""
# -- digital twin registry configuration
process:
# -- unique sha512 hash key used for the passport encryption
encryptionKey: ""
passport:
aspects:
- "urn:bamm:io.catenax.generic.digital_product_passport:1.0.0#DigitalProductPassport"
- "urn:bamm:io.catenax.battery.battery_pass:3.0.1#BatteryPass"
- "urn:bamm:io.catenax.transmission.transmission_pass:1.0.0#TransmissionPass"
- "urn:samm:io.catenax.generic.digital_product_passport:2.0.0#DigitalProductPassport"
digitalTwinRegistry:
endpoints:
search: "/lookup/shells"
digitalTwin: "/shell-descriptors"
subModel: "/submodel-descriptors"
# -- timeouts for the digital twin registry async negotiation
timeouts:
search: 50
negotiation: 40
transfer: 10
digitalTwin: 20
# -- temporary storage of dDTRs for optimization
temporaryStorage:
enabled: true
# -- lifetime of the temporaryStorage in hours
lifetime: 12
# -- discovery configuration
discovery:
# -- discovery finder configuration
hostname: ""
# -- bpn discovery configuration
bpnDiscovery:
key: "manufacturerPartId"
path: "/api/v1.0/administration/connectors/bpnDiscovery/search"
# -- edc discovery configuration
edcDiscovery:
key: "bpn"
frontend:
name: "dpp-frontend"
image:
repository: docker.io/tractusx/digital-product-pass-frontend
pullPolicy: Always
# -- Existing image pull secret to use to [obtain the container image from private registries](https://kubernetes.io/docs/concepts/containers/images/#using-a-private-registry)
imagePullSecrets: []
service:
# -- [Service type](https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types) to expose the running application on a set of Pods as a network service
type: ClusterIP
port: 8080
# -- ingress declaration to expose the dpp-frontend service
ingress:
enabled: false
annotations:
# -- ingress class name
ingressClassName: nginx
# kubernetes.io/tls-acme: "true"
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/ssl-passthrough: "false"
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
hosts: []
# -- The [pod security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod) defines privilege and access control settings for a Pod within the deployment
podSecurityContext:
seccompProfile:
# -- Restrict a Container's Syscalls with seccomp
type: RuntimeDefault
# -- Runs all processes within a pod with a special uid
runAsUser: 1000
# -- Processes within a pod will belong to this guid
runAsGroup: 3000
# -- The owner for volumes and any files created within volumes will belong to this guid
fsGroup: 3000
# The [container security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container) defines privilege and access control settings for a Container within a pod
securityContext:
capabilities:
# -- Specifies which capabilities to drop to reduce syscall attack surface
drop:
- ALL
# -- Specifies which capabilities to add to issue specialized syscalls
add: []
# -- Whether the root filesystem is mounted in read-only mode
readOnlyRootFilesystem: false
# -- Controls [Privilege Escalation](https://kubernetes.io/docs/concepts/security/pod-security-policy/#privilege-escalation) enabling setuid binaries changing the effective user ID
allowPrivilegeEscalation: false
# -- Requires the container to run without root privileges
runAsNonRoot: true
# -- The container's process will run with the specified uid
runAsUser: 1000
# -- The owner for volumes and any files created within volumes will belong to this guid
runAsGroup: 3000
# -- product passport UI configuration
# -- url of the digital product pass backend service
backend:
hostname: ""
supportContact:
adminEmail: "admin@example.com"
portal:
hostname: ""
negotiation:
autoSign: true
# -- api timeouts
api:
# -- max retries for getting status
max_retries: 30
# -- default timeout - 90 seconds in milliseconds
timeout:
negotiate: 40000
search: 60000
decline: 20000
# -- delay from getting status
delay: 1000
# -- irs api timeouts
irs:
# -- request timeout delay
requestDelay: 30000
# -- maximum waiting time to get the irs job status
maxWaitingTime: 30
# -- oauth configuration
oauth:
# -- url of the identity provider service
hostname: ""
# -- technical user keycloak central id credentials
# -- note: this credentials need to have access to the Discovery Finder, BPN Discovery and EDC Discovery
techUser:
clientId: "<Add client id here>"
clientSecret: "<Add client secret here>"
realm: "<realm>"
appId: "<app-id>"
onLoad: "login-required"
# -- configure here the bpn check for the application
bpnCheck:
enabled: false
# -- this bpn needs to be included in the user login information when the check is enabled
bpn: *bpn
# -- the role check checks if the user has access roles for the appId
roleCheck:
enabled: false
# Following Catena-X Helm Best Practices @url: https://catenax-ng.github.io/docs/kubernetes-basics/helm
# @url: https://cloud.google.com/blog/products/containers-kubernetes/kubernetes-best-practices-resource-requests-and-limits
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 250m
memory: 512Mi
# [node selector](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector) to constrain pods to nodes
nodeSelector: {}
# [tolerations](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) to configure preferred nodes
tolerations: []
# [affinity](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity) to configure which nodes the pods can be scheduled on
affinity: {}