blob: 0d143dc6c6d1839b09332d01f688151550671bbd [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
Andreas Geisslercde4a782024-02-28 16:08:06 +010033 # Docker Repository used by RepositoryGenerator
34 dockerHubRepository: docker.io
35 # Additions for MongoDB****************************
36 # If dockerHubRepository is changes the following entry needs
37 # to be changed as well
38 imageRegistry: docker.io
39 imagePullSecrets:
40 - '{{ include "common.names.namespace" . }}-docker-registry-key'
41 # *************************************************
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020042
Krzysztof Opasiake383b322020-02-07 15:49:54 +010043#################################################################
44# Secrets metaconfig
45#################################################################
46secrets:
47 - uid: nbi-db-secret
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010048 name: &dbUserSecretName '{{ include "common.release" . }}-nbi-db-secret'
Krzysztof Opasiake383b322020-02-07 15:49:54 +010049 type: basicAuth
50 externalSecret: '{{ tpl (default "" .Values.config.db.userCredentialsExternalSecret) . }}'
51 login: '{{ .Values.config.db.userName }}'
52 password: '{{ .Values.config.db.userPassword }}'
53
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020054subChartsOnly:
55 enabled: true
56
57# application image
58repository: nexus3.onap.org:10001
Eric Debeauc45c81f2022-05-10 12:05:12 +020059image: onap/externalapi/nbi:10.0.0
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +010060pullPolicy: IfNotPresent
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020061sdc_authorization: Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=
62aai_authorization: Basic QUFJOkFBSQ==
63so_authorization:
64
65# application configuration
66config:
67 loglevel: INFO
68 logstashServiceName: log-ls
69 logstashPort: 5044
70 cloudOwner: CloudOwner
aleemraja40149d82020-10-16 17:48:17 +053071 k8sCloudRegionId: k8sregionfour
72 k8sCloudOwner: k8scloudowner4
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020073 ecompInstanceId: OOM
74 openStackRegion: RegionOne
Sylvain Desbureaux33f83672018-06-01 14:28:39 +020075 openStackVNFTenantId: 31047205ce114b60833b23e400d6a535
Krzysztof Opasiake383b322020-02-07 15:49:54 +010076 db:
Andreas Geissler72caf092023-12-14 13:37:39 +010077 userName: &dbuser rene
Krzysztof Opasiake383b322020-02-07 15:49:54 +010078 # userPassword: password
79 # userCredentialsExternalSecret: some-secret
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020080
Sylvain Desbureaux9e851c62019-10-28 15:52:05 +010081mariadb-galera:
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010082 db:
Andreas Geissler72caf092023-12-14 13:37:39 +010083 user: *dbuser
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010084 externalSecret: *dbUserSecretName
85 name: &mysqlDbName nbi
andreasgeisslerb15b0952021-06-10 16:21:09 +020086 service:
87 name: nbi-galera
88 portName: nbi-galera
89 internalPort: 3306
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010090 nameOverride: &nbi-galera nbi-galera
Sylvain Desbureaux9e851c62019-10-28 15:52:05 +010091 replicaCount: 1
Andreas Geisslercfd84342023-08-16 17:18:49 +020092 mariadbOperator:
93 galera:
94 enabled: false
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020095 persistence:
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020096 enabled: true
Sylvain Desbureaux9e851c62019-10-28 15:52:05 +010097 mountSubPath: nbi/maria/data
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010098 serviceAccount:
99 nameOverride: *nbi-galera
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +0200100
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +0100101mariadb-init:
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +0100102 config:
103 userCredentialsExternalSecret: *dbUserSecretName
104 mysqlDatabase: *mysqlDbName
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +0100105 nameOverride: nbi-config
vladimir turokd8044182023-07-27 16:28:36 +0200106 serviceAccount:
107 nameOverride: nbi-config
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +0100108
Andreas Geisslercde4a782024-02-28 16:08:06 +0100109mongodb:
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +0200110 nameOverride: nbi-mongo
111 config:
Andreas Geisslercde4a782024-02-28 16:08:06 +0100112 dbName: &mongoDBName ServiceOrderDB
113 auth:
114 enabled: false
115 databases:
116 - *mongoDBName
117 usernames:
118 - "nbi"
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +0200119 service:
Andreas Geisslercde4a782024-02-28 16:08:06 +0100120 nameOverride: nbi-mongohost
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +0200121 internalPort: 27017
Andreas Geissler808e3eb2024-03-18 12:05:51 +0100122 resources:
123 limits:
124 cpu: "1"
125 memory: "1Gi"
126 requests:
127 cpu: "500m"
128 memory: "1Gi"
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +0200129
130# default number of instances
131replicaCount: 1
132
133nodeSelector: {}
134
135affinity: {}
136
137# probe configuration parameters
138liveness:
Sylvain Desbureauxd82050c2020-03-17 10:43:40 +0100139 path: /nbi/api/v4/status
MatthieuGeerebaert89e3dc82018-10-08 14:02:08 +0200140 initialDelaySeconds: 180
141 periodSeconds: 30
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +0200142 # necessary to disable liveness probe when setting breakpoints
143 # in debugger so K8s doesn't restart unresponsive container
144 enabled: true
145
146readiness:
Sylvain Desbureauxd82050c2020-03-17 10:43:40 +0100147 path: /nbi/api/v4/status
MatthieuGeerebaert89e3dc82018-10-08 14:02:08 +0200148 initialDelaySeconds: 185
149 periodSeconds: 30
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +0200150
151service:
152 type: NodePort
153 portName: api
154 name: nbi
Andreas Geissler638330d2023-03-20 15:24:36 +0100155 internalPort: 8080
Andreas Geisslerb19c8512022-10-13 13:15:29 +0200156 ports:
157 - name: http
Andreas Geissler638330d2023-03-20 15:24:36 +0100158 port: 8080
Andreas Geisslerb19c8512022-10-13 13:15:29 +0200159 nodePort: '74'
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +0200160
161ingress:
162 enabled: false
Lucjan Bryndza05649652020-04-29 08:52:33 +0000163 service:
Andreas Geissler51900a92022-08-03 13:10:35 +0200164 - baseaddr: "nbi-api"
Lucjan Bryndza05649652020-04-29 08:52:33 +0000165 name: "nbi"
Andreas Geissler638330d2023-03-20 15:24:36 +0100166 port: 8080
Lucjan Bryndza05649652020-04-29 08:52:33 +0000167 config:
168 ssl: "redirect"
Mandeep Khindade045712018-09-19 18:11:57 +0000169# Resource Limit flavor -By Default using small
vaibhavjayas659fbae2018-09-19 08:58:10 +0000170flavor: small
171# Segregation for Different environment (Small and Large)
Eric Debeau33774ef2018-09-11 12:23:07 +0000172resources:
vaibhavjayas659fbae2018-09-19 08:58:10 +0000173 small:
174 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100175 cpu: "2"
176 memory: "1Gi"
Mandeep Khindade045712018-09-19 18:11:57 +0000177 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100178 cpu: "0.5"
179 memory: "1Gi"
vaibhavjayas659fbae2018-09-19 08:58:10 +0000180 large:
181 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100182 cpu: "4"
183 memory: "2Gi"
vaibhavjayas659fbae2018-09-19 08:58:10 +0000184 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100185 cpu: "1"
186 memory: "2Gi"
MatthieuGeerebaerta3adffd2018-10-05 14:52:50 +0200187 unlimited: {}
farida azmy37c98762021-10-18 13:06:52 +0200188
189#Pods Service Account
190serviceAccount:
191 nameOverride: nbi
192 roles:
193 - read