[SO] 16.0.4 release
[oom.git] / kubernetes / sdc / components / sdc-onboarding-be / values.yaml
1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018 AT&T, ZTE
3 # Modifications Copyright © 2025 Deutsche Telekom
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #       http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16
17 #################################################################
18 # Global configuration defaults.
19 #################################################################
20 global:
21   nodePortPrefix: 302
22   persistence: {}
23   sdc_cassandra:
24     #This flag allows SDC to instantiate its own cluster, serviceName
25     #should be sdc-cs if this flag is enabled
26     localCluster: false
27     #The cassandra service name to connect to (default: shared cassandra service)
28     serviceName: cassandra
29     #Shared cassandra cluster replicaCount, should be changed if localCluster is enabled
30     #to match with its own cluster replica
31     replicaCount: 3
32     clusterName: cassandra
33     dataCenter: Pod
34
35 #################################################################
36 # Application configuration defaults.
37 #################################################################
38 # application image
39 image: onap/sdc-onboard-backend:1.14.1
40 onboardingInitImage: onap/sdc-onboard-cassandra-init:1.14.1
41 pullPolicy: Always
42
43 # flag to enable debugging - application support required
44 debugEnabled: false
45
46 config:
47   javaOptions: "-Xmx1g -Xms1g"
48   cassandraSslEnabled: "false"
49
50 #environment file
51 env:
52   name: AUTO
53
54 # default number of instances
55 replicaCount: 1
56
57 nodeSelector: {}
58
59 affinity: {}
60
61 # probe configuration parameters
62 liveness:
63   path: /onboarding-api/v1.0/healthcheck
64   initialDelaySeconds: 1
65   periodSeconds: 10
66   timeoutSeconds: 15
67   successThreshold: 1
68   failureThreshold: 3
69   # necessary to disable liveness probe when setting breakpoints
70   # in debugger so K8s doesn't restart unresponsive container
71   enabled: true
72
73 readiness:
74   path: /onboarding-api/v1.0/healthcheck
75   initialDelaySeconds: 1
76   periodSeconds: 10
77   timeoutSeconds: 15
78   successThreshold: 1
79   failureThreshold: 3
80
81 startup:
82   path: /onboarding-api/v1.0/healthcheck
83   initialDelaySeconds: 10
84   periodSeconds: 10
85   timeoutSeconds: 15
86   successThreshold: 1
87   failureThreshold: 60
88
89 service:
90   type: ClusterIP
91   name: sdc-onboarding-be
92   internalPort: 8081
93   jobPort: 8080
94   ports:
95     - name: http
96       port: 8081
97
98 serviceMesh:
99   authorizationPolicy:
100     authorizedPrincipals:
101       - serviceAccount: sdc-be-read
102
103 ## Persist data to a persitent volume
104 persistence:
105   enabled: true
106
107   ## A manually managed Persistent Volume and Claim
108   ## Requires persistence.enabled: true
109   ## If defined, PVC must be created manually before volume will be bound
110   # existingClaim:
111   volumeReclaimPolicy: Retain
112
113   ## database data Persistent Volume Storage Class
114   ## If defined, storageClassName: <storageClass>
115   ## If set to "-", storageClassName: "", which disables dynamic provisioning
116   ## If undefined (the default) or set to null, no storageClassName spec is
117   ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
118   ##   GKE, AWS & OpenStack)
119   ##
120   # storageClass: "-"
121   accessMode: ReadWriteOnce
122   size: 2Gi
123   mountPath: /dockerdata-nfs
124   mountSubPath: /sdc/sdc-cs/CS
125
126 ingress:
127   enabled: false
128
129 # Resource Limit flavor -By Default using small
130 flavor: small
131 # Segregation for Different environment (Small and Large)
132 resources:
133   small:
134     limits:
135       cpu: "2"
136       memory: "2Gi"
137     requests:
138       cpu: "0.5"
139       memory: "1.5Gi"
140   large:
141     limits:
142       cpu: "2"
143       memory: "3Gi"
144     requests:
145       cpu: "1"
146       memory: "3Gi"
147   unlimited: {}
148
149 #Pods Service Account
150 serviceAccount:
151   nameOverride: sdc-onboarding-be
152   roles:
153     - read
154
155 wait_for_job_container:
156   containers:
157     - '{{ include "common.name" . }}-job'
158
159 readinessCheck:
160   wait_for:
161     timeout: 25
162     jobs:
163       - '{{ include "common.release" . }}-sdc-onboarding-be'
164   job_wait_for:
165     timeout: 20
166     jobs:
167       - '{{ include "common.release" . }}-sdc-cs'
168
169 #Log configuration
170 log:
171   path: /var/log/onap
172 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
173
174 securityContext:
175   user_id: 1000
176   group_id: 101
177
178 volumes:
179   logSizeLimit: 300Mi
180   jettySizeLimit: 400Mi
181   tmpSizeLimit: 500Mi
182
183 resources_initContainer:
184   limits:
185     cpu: "100m"
186     memory: "500Mi"
187   requests:
188     cpu: "3m"
189     memory: "20Mi"
190
191 jobPodSecurityContext:
192   fsGroup: 1000
193   runAsGroup: 1000
194   runAsNonRoot: true
195   runAsUser: 1000
196   seccompProfile:
197     type: RuntimeDefault
198
199 #################################################################
200 # Settings from Default.rb
201 #################################################################
202 ONBOARDING_BE:
203   http_port: 8081
204   https_port: 8445
205   catalog_notification_url: "%s://%s:%s/sdc2/rest/v1/catalog/notif/vsp/"
206 FE:
207   http_port: 8181
208   https_port: 9443
209 disableHttp: true
210 cassandra:
211   truststore_password: Aa123456
212   cassandra_port: 9042
213   datacenter_name: DC-
214   cluster_name: SDC-CS-
215   socket_read_timeout: 20000
216   socket_connect_timeout: 20000
217   janusgraph_connection_timeout: 10000
218   cassandra_user: asdc_user
219   cassandra_password: Aa1234%^!
220 sdcHelmValidator:
221   enabled: true
222   helmVersion: 3.5.2
223   deployable: true
224   lintable: false
225   strictLintable: false
226   url: http://sdc-helm-validator:8080/validate
227 VnfRepo:
228   vnfRepoPort: 8703
229   vnfRepoHost: refrepo
230 jetty:
231   trustStorePassword: "z+KEj;t+,KN^iimSiS89e#p0"
232   keyManagerPassword: "?(kP!Yur![*!Y5!E^f(ZKc31"
233   keyStorePassword: "?(kP!Yur![*!Y5!E^f(ZKc31"
234 basic_auth:
235   enabled: true
236   user_name: testName
237   user_pass: testPass
238   excludedUrls: /v1.0/healthcheck
239
240 EXTTEST:
241   ep1_config: vtp,VTP,true,http://refrepo:8702/onapapi/vnfsdk-marketplace,onap.*
242   ep2_config: repository,Repository,false,,.*
243
244 #Addiding extra Envs
245 permittedAncestors: ""
246 JETTY_BASE: "/app/jetty"
247 http_option: http_option
248
249 autoscaling:
250   enabled: true
251   minReplicas: 1
252   maxReplicas: 3
253   targetCPUUtilizationPercentage: 75
254
255 # number of ReplicaSets that should be retained for the Deployment
256 revisionHistoryLimit: 1
257
258 # the minimum number of seconds that a newly created Pod should be ready
259 minReadySeconds: 30
260 updateStrategy:
261   type: RollingUpdate
262   # The number of pods that can be unavailable during the update process
263   maxUnavailable: 0
264   # The number of pods that can be created above the desired amount of pods during an update
265   maxSurge: 1
266
267 metrics:
268   serviceMonitor:
269     enabled: true
270     targetPort: 8081
271     path: /onboarding-api/v1.0/actuator/prometheus
272     basicAuth:
273       enabled: false
274
275 logback:
276   rootLogLevel: INFO
277
278 # Annotations to control the execution and deletion of the job
279 # Can be used to delete a job before an Upgrade
280 #
281 # jobAnnotations:
282 #   # In case of an ArgoCD deployment this Hook deletes the job before syncing
283 #   argocd.argoproj.io/hook: Sync
284 #   argocd.argoproj.io/hook-delete-policy: BeforeHookCreation
285 #
286 #   # In case of an Helm/Flux deployment this Hook deletes the job
287 #   # This is what defines this resource as a hook. Without this line, the
288 #   # job is considered part of the release.
289 #   "helm.sh/hook": "pre-upgrade,pre-rollback,post-install"
290 #   "helm.sh/hook-delete-policy": "before-hook-creation"
291 #   "helm.sh/hook-weight": "1"