blob: 5a0b2a0c07fb1c9f58c5e84cd686840b885f8963 [file] [log] [blame]
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +02001# Copyright © 2018 Orange
Prateekinlinux445a18e2018-08-01 06:48:33 +00002# Modifications Copyright © 2018 Amdocs, Bell Canada
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +02003#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16#################################################################
17# Global configuration defaults.
18#################################################################
19global:
20 nodePortPrefix: 302
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +010021 mariadbGalera: &mariadbGalera
Andreas Geissler2c1ba292024-01-10 22:20:05 +010022 # flag to enable the DB creation via mariadb-operator
23 useOperator: true
Andreas Geisslercfd84342023-08-16 17:18:49 +020024 #This flag allows NBI to instantiate its own mariadb-galera cluster
Andreas Geisslerf51bbef2023-03-31 12:07:23 +020025 #When changing it to "true", also set "globalCluster: false"
26 #as the dependency check will not work otherwise (Chart.yaml)
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +010027 localCluster: false
Andreas Geisslerf51bbef2023-03-31 12:07:23 +020028 globalCluster: true
Andreas Geissler576de2d2023-10-24 15:38:01 +020029 service: mariadb-galera
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +010030 internalPort: 3306
31 nameOverride: mariadb-galera
Andreas Geissler638330d2023-03-20 15:24:36 +010032 msbEnabled: false
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020033
Krzysztof Opasiake383b322020-02-07 15:49:54 +010034#################################################################
35# Secrets metaconfig
36#################################################################
37secrets:
38 - uid: nbi-db-secret
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010039 name: &dbUserSecretName '{{ include "common.release" . }}-nbi-db-secret'
Krzysztof Opasiake383b322020-02-07 15:49:54 +010040 type: basicAuth
41 externalSecret: '{{ tpl (default "" .Values.config.db.userCredentialsExternalSecret) . }}'
42 login: '{{ .Values.config.db.userName }}'
43 password: '{{ .Values.config.db.userPassword }}'
44
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020045subChartsOnly:
46 enabled: true
47
48# application image
49repository: nexus3.onap.org:10001
Eric Debeauc45c81f2022-05-10 12:05:12 +020050image: onap/externalapi/nbi:10.0.0
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +010051pullPolicy: IfNotPresent
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020052sdc_authorization: Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=
53aai_authorization: Basic QUFJOkFBSQ==
54so_authorization:
55
56# application configuration
57config:
58 loglevel: INFO
59 logstashServiceName: log-ls
60 logstashPort: 5044
61 cloudOwner: CloudOwner
aleemraja40149d82020-10-16 17:48:17 +053062 k8sCloudRegionId: k8sregionfour
63 k8sCloudOwner: k8scloudowner4
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020064 ecompInstanceId: OOM
65 openStackRegion: RegionOne
Sylvain Desbureaux33f83672018-06-01 14:28:39 +020066 openStackVNFTenantId: 31047205ce114b60833b23e400d6a535
Krzysztof Opasiake383b322020-02-07 15:49:54 +010067 db:
Andreas Geissler72caf092023-12-14 13:37:39 +010068 userName: &dbuser rene
Krzysztof Opasiake383b322020-02-07 15:49:54 +010069 # userPassword: password
70 # userCredentialsExternalSecret: some-secret
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020071
Sylvain Desbureaux9e851c62019-10-28 15:52:05 +010072mariadb-galera:
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010073 db:
Andreas Geissler72caf092023-12-14 13:37:39 +010074 user: *dbuser
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010075 externalSecret: *dbUserSecretName
76 name: &mysqlDbName nbi
andreasgeisslerb15b0952021-06-10 16:21:09 +020077 service:
78 name: nbi-galera
79 portName: nbi-galera
80 internalPort: 3306
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010081 nameOverride: &nbi-galera nbi-galera
Sylvain Desbureaux9e851c62019-10-28 15:52:05 +010082 replicaCount: 1
Andreas Geisslercfd84342023-08-16 17:18:49 +020083 mariadbOperator:
84 galera:
85 enabled: false
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020086 persistence:
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020087 enabled: true
Sylvain Desbureaux9e851c62019-10-28 15:52:05 +010088 mountSubPath: nbi/maria/data
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010089 serviceAccount:
90 nameOverride: *nbi-galera
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020091
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +010092mariadb-init:
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010093 config:
94 userCredentialsExternalSecret: *dbUserSecretName
95 mysqlDatabase: *mysqlDbName
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +010096 nameOverride: nbi-config
vladimir turokd8044182023-07-27 16:28:36 +020097 serviceAccount:
98 nameOverride: nbi-config
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +010099
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +0200100mongo:
101 nameOverride: nbi-mongo
102 config:
103 dbName: ServiceOrderDB
104 service:
105 name: nbi-mongohost
106 internalPort: 27017
107 nfsprovisionerPrefix: nbi
108 sdnctlPrefix: nbi
109 persistence:
110 mountSubPath: nbi/mongo/data
111 enabled: true
112 disableNfsProvisioner: true
113
114
115# default number of instances
116replicaCount: 1
117
118nodeSelector: {}
119
120affinity: {}
121
122# probe configuration parameters
123liveness:
Sylvain Desbureauxd82050c2020-03-17 10:43:40 +0100124 path: /nbi/api/v4/status
MatthieuGeerebaert89e3dc82018-10-08 14:02:08 +0200125 initialDelaySeconds: 180
126 periodSeconds: 30
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +0200127 # necessary to disable liveness probe when setting breakpoints
128 # in debugger so K8s doesn't restart unresponsive container
129 enabled: true
130
131readiness:
Sylvain Desbureauxd82050c2020-03-17 10:43:40 +0100132 path: /nbi/api/v4/status
MatthieuGeerebaert89e3dc82018-10-08 14:02:08 +0200133 initialDelaySeconds: 185
134 periodSeconds: 30
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +0200135
136service:
137 type: NodePort
138 portName: api
139 name: nbi
Andreas Geissler638330d2023-03-20 15:24:36 +0100140 internalPort: 8080
Andreas Geisslerb19c8512022-10-13 13:15:29 +0200141 ports:
142 - name: http
Andreas Geissler638330d2023-03-20 15:24:36 +0100143 port: 8080
Andreas Geisslerb19c8512022-10-13 13:15:29 +0200144 nodePort: '74'
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +0200145
146ingress:
147 enabled: false
Lucjan Bryndza05649652020-04-29 08:52:33 +0000148 service:
Andreas Geissler51900a92022-08-03 13:10:35 +0200149 - baseaddr: "nbi-api"
Lucjan Bryndza05649652020-04-29 08:52:33 +0000150 name: "nbi"
Andreas Geissler638330d2023-03-20 15:24:36 +0100151 port: 8080
Lucjan Bryndza05649652020-04-29 08:52:33 +0000152 config:
153 ssl: "redirect"
Mandeep Khindade045712018-09-19 18:11:57 +0000154# Resource Limit flavor -By Default using small
vaibhavjayas659fbae2018-09-19 08:58:10 +0000155flavor: small
156# Segregation for Different environment (Small and Large)
Eric Debeau33774ef2018-09-11 12:23:07 +0000157resources:
vaibhavjayas659fbae2018-09-19 08:58:10 +0000158 small:
159 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100160 cpu: "2"
161 memory: "1Gi"
Mandeep Khindade045712018-09-19 18:11:57 +0000162 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100163 cpu: "0.5"
164 memory: "1Gi"
vaibhavjayas659fbae2018-09-19 08:58:10 +0000165 large:
166 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100167 cpu: "4"
168 memory: "2Gi"
vaibhavjayas659fbae2018-09-19 08:58:10 +0000169 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100170 cpu: "1"
171 memory: "2Gi"
MatthieuGeerebaerta3adffd2018-10-05 14:52:50 +0200172 unlimited: {}
farida azmy37c98762021-10-18 13:06:52 +0200173
174#Pods Service Account
175serviceAccount:
176 nameOverride: nbi
177 roles:
178 - read