blob: b504733aaa9edb9bcc1aef19457a72f2048e0700 [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 Geisslercfd84342023-08-16 17:18:49 +020022 #This flag allows NBI to instantiate its own mariadb-galera cluster
Andreas Geisslerf51bbef2023-03-31 12:07:23 +020023 #When changing it to "true", also set "globalCluster: false"
24 #as the dependency check will not work otherwise (Chart.yaml)
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +010025 localCluster: false
Andreas Geisslerf51bbef2023-03-31 12:07:23 +020026 globalCluster: true
Andreas Geisslercfd84342023-08-16 17:18:49 +020027 service: mariadb-galera-primary
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +010028 internalPort: 3306
29 nameOverride: mariadb-galera
Andreas Geissler638330d2023-03-20 15:24:36 +010030 msbEnabled: false
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020031
Krzysztof Opasiake383b322020-02-07 15:49:54 +010032#################################################################
33# Secrets metaconfig
34#################################################################
35secrets:
36 - uid: nbi-db-secret
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010037 name: &dbUserSecretName '{{ include "common.release" . }}-nbi-db-secret'
Krzysztof Opasiake383b322020-02-07 15:49:54 +010038 type: basicAuth
39 externalSecret: '{{ tpl (default "" .Values.config.db.userCredentialsExternalSecret) . }}'
40 login: '{{ .Values.config.db.userName }}'
41 password: '{{ .Values.config.db.userPassword }}'
42
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020043subChartsOnly:
44 enabled: true
45
46# application image
47repository: nexus3.onap.org:10001
Eric Debeauc45c81f2022-05-10 12:05:12 +020048image: onap/externalapi/nbi:10.0.0
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +010049pullPolicy: IfNotPresent
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020050sdc_authorization: Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=
51aai_authorization: Basic QUFJOkFBSQ==
52so_authorization:
53
54# application configuration
55config:
56 loglevel: INFO
57 logstashServiceName: log-ls
58 logstashPort: 5044
59 cloudOwner: CloudOwner
aleemraja40149d82020-10-16 17:48:17 +053060 k8sCloudRegionId: k8sregionfour
61 k8sCloudOwner: k8scloudowner4
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020062 ecompInstanceId: OOM
63 openStackRegion: RegionOne
Sylvain Desbureaux33f83672018-06-01 14:28:39 +020064 openStackVNFTenantId: 31047205ce114b60833b23e400d6a535
Krzysztof Opasiake383b322020-02-07 15:49:54 +010065 db:
66 userName: rene
67 # userPassword: password
68 # userCredentialsExternalSecret: some-secret
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020069
Sylvain Desbureaux9e851c62019-10-28 15:52:05 +010070mariadb-galera:
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010071 db:
72 externalSecret: *dbUserSecretName
73 name: &mysqlDbName nbi
andreasgeisslerb15b0952021-06-10 16:21:09 +020074 service:
75 name: nbi-galera
76 portName: nbi-galera
77 internalPort: 3306
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010078 nameOverride: &nbi-galera nbi-galera
Sylvain Desbureaux9e851c62019-10-28 15:52:05 +010079 replicaCount: 1
Andreas Geisslercfd84342023-08-16 17:18:49 +020080 mariadbOperator:
81 galera:
82 enabled: false
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020083 persistence:
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020084 enabled: true
Sylvain Desbureaux9e851c62019-10-28 15:52:05 +010085 mountSubPath: nbi/maria/data
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010086 serviceAccount:
87 nameOverride: *nbi-galera
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020088
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +010089mariadb-init:
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010090 config:
91 userCredentialsExternalSecret: *dbUserSecretName
92 mysqlDatabase: *mysqlDbName
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +010093 nameOverride: nbi-config
vladimir turokd8044182023-07-27 16:28:36 +020094 serviceAccount:
95 nameOverride: nbi-config
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +010096
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020097mongo:
98 nameOverride: nbi-mongo
99 config:
100 dbName: ServiceOrderDB
101 service:
102 name: nbi-mongohost
103 internalPort: 27017
104 nfsprovisionerPrefix: nbi
105 sdnctlPrefix: nbi
106 persistence:
107 mountSubPath: nbi/mongo/data
108 enabled: true
109 disableNfsProvisioner: true
110
111
112# default number of instances
113replicaCount: 1
114
115nodeSelector: {}
116
117affinity: {}
118
119# probe configuration parameters
120liveness:
Sylvain Desbureauxd82050c2020-03-17 10:43:40 +0100121 path: /nbi/api/v4/status
MatthieuGeerebaert89e3dc82018-10-08 14:02:08 +0200122 initialDelaySeconds: 180
123 periodSeconds: 30
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +0200124 # necessary to disable liveness probe when setting breakpoints
125 # in debugger so K8s doesn't restart unresponsive container
126 enabled: true
127
128readiness:
Sylvain Desbureauxd82050c2020-03-17 10:43:40 +0100129 path: /nbi/api/v4/status
MatthieuGeerebaert89e3dc82018-10-08 14:02:08 +0200130 initialDelaySeconds: 185
131 periodSeconds: 30
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +0200132
133service:
134 type: NodePort
135 portName: api
136 name: nbi
Andreas Geissler638330d2023-03-20 15:24:36 +0100137 internalPort: 8080
Andreas Geisslerb19c8512022-10-13 13:15:29 +0200138 ports:
139 - name: http
Andreas Geissler638330d2023-03-20 15:24:36 +0100140 port: 8080
Andreas Geisslerb19c8512022-10-13 13:15:29 +0200141 nodePort: '74'
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +0200142
143ingress:
144 enabled: false
Lucjan Bryndza05649652020-04-29 08:52:33 +0000145 service:
Andreas Geissler51900a92022-08-03 13:10:35 +0200146 - baseaddr: "nbi-api"
Lucjan Bryndza05649652020-04-29 08:52:33 +0000147 name: "nbi"
Andreas Geissler638330d2023-03-20 15:24:36 +0100148 port: 8080
Lucjan Bryndza05649652020-04-29 08:52:33 +0000149 config:
150 ssl: "redirect"
Mandeep Khindade045712018-09-19 18:11:57 +0000151# Resource Limit flavor -By Default using small
vaibhavjayas659fbae2018-09-19 08:58:10 +0000152flavor: small
153# Segregation for Different environment (Small and Large)
Eric Debeau33774ef2018-09-11 12:23:07 +0000154resources:
vaibhavjayas659fbae2018-09-19 08:58:10 +0000155 small:
156 limits:
vladimir turokdb8167b2023-09-20 11:09:21 +0200157 cpu: 2
Andreas Geissler555db9c2023-06-20 11:38:39 +0200158 memory: 1Gi
Mandeep Khindade045712018-09-19 18:11:57 +0000159 requests:
Andreas Geissler555db9c2023-06-20 11:38:39 +0200160 cpu: 0.5
Mandeep Khindade045712018-09-19 18:11:57 +0000161 memory: 1Gi
vaibhavjayas659fbae2018-09-19 08:58:10 +0000162 large:
163 limits:
vladimir turokdb8167b2023-09-20 11:09:21 +0200164 cpu: 4
Andreas Geissler555db9c2023-06-20 11:38:39 +0200165 memory: 2Gi
vaibhavjayas659fbae2018-09-19 08:58:10 +0000166 requests:
Andreas Geissler555db9c2023-06-20 11:38:39 +0200167 cpu: 1
Mandeep Khinda60d36d42018-09-24 15:15:48 +0000168 memory: 2Gi
MatthieuGeerebaerta3adffd2018-10-05 14:52:50 +0200169 unlimited: {}
farida azmy37c98762021-10-18 13:06:52 +0200170
171#Pods Service Account
172serviceAccount:
173 nameOverride: nbi
174 roles:
175 - read