Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 1 | # Copyright © 2018 Orange |
Prateekinlinux | 445a18e | 2018-08-01 06:48:33 +0000 | [diff] [blame] | 2 | # Modifications Copyright © 2018 Amdocs, Bell Canada |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 3 | # |
| 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 | ################################################################# |
| 19 | global: |
| 20 | nodePortPrefix: 302 |
Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 21 | mariadbGalera: &mariadbGalera |
Andreas Geissler | 2c1ba29 | 2024-01-10 22:20:05 +0100 | [diff] [blame] | 22 | # flag to enable the DB creation via mariadb-operator |
| 23 | useOperator: true |
Andreas Geissler | cfd8434 | 2023-08-16 17:18:49 +0200 | [diff] [blame] | 24 | #This flag allows NBI to instantiate its own mariadb-galera cluster |
Andreas Geissler | f51bbef | 2023-03-31 12:07:23 +0200 | [diff] [blame] | 25 | #When changing it to "true", also set "globalCluster: false" |
| 26 | #as the dependency check will not work otherwise (Chart.yaml) |
Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 27 | localCluster: false |
Andreas Geissler | f51bbef | 2023-03-31 12:07:23 +0200 | [diff] [blame] | 28 | globalCluster: true |
Andreas Geissler | 576de2d | 2023-10-24 15:38:01 +0200 | [diff] [blame] | 29 | service: mariadb-galera |
Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 30 | internalPort: 3306 |
| 31 | nameOverride: mariadb-galera |
Andreas Geissler | 638330d | 2023-03-20 15:24:36 +0100 | [diff] [blame] | 32 | msbEnabled: false |
Andreas Geissler | cde4a78 | 2024-02-28 16:08:06 +0100 | [diff] [blame] | 33 | # 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 Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 42 | |
Krzysztof Opasiak | e383b32 | 2020-02-07 15:49:54 +0100 | [diff] [blame] | 43 | ################################################################# |
| 44 | # Secrets metaconfig |
| 45 | ################################################################# |
| 46 | secrets: |
| 47 | - uid: nbi-db-secret |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 48 | name: &dbUserSecretName '{{ include "common.release" . }}-nbi-db-secret' |
Krzysztof Opasiak | e383b32 | 2020-02-07 15:49:54 +0100 | [diff] [blame] | 49 | type: basicAuth |
| 50 | externalSecret: '{{ tpl (default "" .Values.config.db.userCredentialsExternalSecret) . }}' |
| 51 | login: '{{ .Values.config.db.userName }}' |
| 52 | password: '{{ .Values.config.db.userPassword }}' |
| 53 | |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 54 | subChartsOnly: |
| 55 | enabled: true |
| 56 | |
| 57 | # application image |
| 58 | repository: nexus3.onap.org:10001 |
Eric Debeau | c45c81f | 2022-05-10 12:05:12 +0200 | [diff] [blame] | 59 | image: onap/externalapi/nbi:10.0.0 |
Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 60 | pullPolicy: IfNotPresent |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 61 | sdc_authorization: Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU= |
| 62 | aai_authorization: Basic QUFJOkFBSQ== |
| 63 | so_authorization: |
| 64 | |
| 65 | # application configuration |
| 66 | config: |
| 67 | loglevel: INFO |
| 68 | logstashServiceName: log-ls |
| 69 | logstashPort: 5044 |
| 70 | cloudOwner: CloudOwner |
aleemraja | 40149d8 | 2020-10-16 17:48:17 +0530 | [diff] [blame] | 71 | k8sCloudRegionId: k8sregionfour |
| 72 | k8sCloudOwner: k8scloudowner4 |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 73 | ecompInstanceId: OOM |
| 74 | openStackRegion: RegionOne |
Sylvain Desbureaux | 33f8367 | 2018-06-01 14:28:39 +0200 | [diff] [blame] | 75 | openStackVNFTenantId: 31047205ce114b60833b23e400d6a535 |
Krzysztof Opasiak | e383b32 | 2020-02-07 15:49:54 +0100 | [diff] [blame] | 76 | db: |
Andreas Geissler | 72caf09 | 2023-12-14 13:37:39 +0100 | [diff] [blame] | 77 | userName: &dbuser rene |
Krzysztof Opasiak | e383b32 | 2020-02-07 15:49:54 +0100 | [diff] [blame] | 78 | # userPassword: password |
| 79 | # userCredentialsExternalSecret: some-secret |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 80 | |
Sylvain Desbureaux | 9e851c6 | 2019-10-28 15:52:05 +0100 | [diff] [blame] | 81 | mariadb-galera: |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 82 | db: |
Andreas Geissler | 72caf09 | 2023-12-14 13:37:39 +0100 | [diff] [blame] | 83 | user: *dbuser |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 84 | externalSecret: *dbUserSecretName |
| 85 | name: &mysqlDbName nbi |
andreasgeissler | b15b095 | 2021-06-10 16:21:09 +0200 | [diff] [blame] | 86 | service: |
| 87 | name: nbi-galera |
| 88 | portName: nbi-galera |
| 89 | internalPort: 3306 |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 90 | nameOverride: &nbi-galera nbi-galera |
Sylvain Desbureaux | 9e851c6 | 2019-10-28 15:52:05 +0100 | [diff] [blame] | 91 | replicaCount: 1 |
Andreas Geissler | cfd8434 | 2023-08-16 17:18:49 +0200 | [diff] [blame] | 92 | mariadbOperator: |
| 93 | galera: |
| 94 | enabled: false |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 95 | persistence: |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 96 | enabled: true |
Sylvain Desbureaux | 9e851c6 | 2019-10-28 15:52:05 +0100 | [diff] [blame] | 97 | mountSubPath: nbi/maria/data |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 98 | serviceAccount: |
| 99 | nameOverride: *nbi-galera |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 100 | |
Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 101 | mariadb-init: |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 102 | config: |
| 103 | userCredentialsExternalSecret: *dbUserSecretName |
| 104 | mysqlDatabase: *mysqlDbName |
Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 105 | nameOverride: nbi-config |
vladimir turok | d804418 | 2023-07-27 16:28:36 +0200 | [diff] [blame] | 106 | serviceAccount: |
| 107 | nameOverride: nbi-config |
Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 108 | |
Andreas Geissler | cde4a78 | 2024-02-28 16:08:06 +0100 | [diff] [blame] | 109 | mongodb: |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 110 | nameOverride: nbi-mongo |
| 111 | config: |
Andreas Geissler | cde4a78 | 2024-02-28 16:08:06 +0100 | [diff] [blame] | 112 | dbName: &mongoDBName ServiceOrderDB |
| 113 | auth: |
| 114 | enabled: false |
| 115 | databases: |
| 116 | - *mongoDBName |
| 117 | usernames: |
| 118 | - "nbi" |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 119 | service: |
Andreas Geissler | cde4a78 | 2024-02-28 16:08:06 +0100 | [diff] [blame] | 120 | nameOverride: nbi-mongohost |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 121 | internalPort: 27017 |
Andreas Geissler | 808e3eb | 2024-03-18 12:05:51 +0100 | [diff] [blame] | 122 | resources: |
| 123 | limits: |
| 124 | cpu: "1" |
| 125 | memory: "1Gi" |
| 126 | requests: |
| 127 | cpu: "500m" |
| 128 | memory: "1Gi" |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 129 | |
| 130 | # default number of instances |
| 131 | replicaCount: 1 |
| 132 | |
| 133 | nodeSelector: {} |
| 134 | |
| 135 | affinity: {} |
| 136 | |
| 137 | # probe configuration parameters |
| 138 | liveness: |
Sylvain Desbureaux | d82050c | 2020-03-17 10:43:40 +0100 | [diff] [blame] | 139 | path: /nbi/api/v4/status |
MatthieuGeerebaert | 89e3dc8 | 2018-10-08 14:02:08 +0200 | [diff] [blame] | 140 | initialDelaySeconds: 180 |
| 141 | periodSeconds: 30 |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 142 | # necessary to disable liveness probe when setting breakpoints |
| 143 | # in debugger so K8s doesn't restart unresponsive container |
| 144 | enabled: true |
| 145 | |
| 146 | readiness: |
Sylvain Desbureaux | d82050c | 2020-03-17 10:43:40 +0100 | [diff] [blame] | 147 | path: /nbi/api/v4/status |
MatthieuGeerebaert | 89e3dc8 | 2018-10-08 14:02:08 +0200 | [diff] [blame] | 148 | initialDelaySeconds: 185 |
| 149 | periodSeconds: 30 |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 150 | |
| 151 | service: |
| 152 | type: NodePort |
| 153 | portName: api |
| 154 | name: nbi |
Andreas Geissler | 638330d | 2023-03-20 15:24:36 +0100 | [diff] [blame] | 155 | internalPort: 8080 |
Andreas Geissler | b19c851 | 2022-10-13 13:15:29 +0200 | [diff] [blame] | 156 | ports: |
| 157 | - name: http |
Andreas Geissler | 638330d | 2023-03-20 15:24:36 +0100 | [diff] [blame] | 158 | port: 8080 |
Andreas Geissler | b19c851 | 2022-10-13 13:15:29 +0200 | [diff] [blame] | 159 | nodePort: '74' |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 160 | |
| 161 | ingress: |
| 162 | enabled: false |
Lucjan Bryndza | 0564965 | 2020-04-29 08:52:33 +0000 | [diff] [blame] | 163 | service: |
Andreas Geissler | 51900a9 | 2022-08-03 13:10:35 +0200 | [diff] [blame] | 164 | - baseaddr: "nbi-api" |
Lucjan Bryndza | 0564965 | 2020-04-29 08:52:33 +0000 | [diff] [blame] | 165 | name: "nbi" |
Andreas Geissler | 638330d | 2023-03-20 15:24:36 +0100 | [diff] [blame] | 166 | port: 8080 |
Lucjan Bryndza | 0564965 | 2020-04-29 08:52:33 +0000 | [diff] [blame] | 167 | config: |
| 168 | ssl: "redirect" |
Mandeep Khinda | de04571 | 2018-09-19 18:11:57 +0000 | [diff] [blame] | 169 | # Resource Limit flavor -By Default using small |
vaibhavjayas | 659fbae | 2018-09-19 08:58:10 +0000 | [diff] [blame] | 170 | flavor: small |
| 171 | # Segregation for Different environment (Small and Large) |
Eric Debeau | 33774ef | 2018-09-11 12:23:07 +0000 | [diff] [blame] | 172 | resources: |
vaibhavjayas | 659fbae | 2018-09-19 08:58:10 +0000 | [diff] [blame] | 173 | small: |
| 174 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 175 | cpu: "2" |
| 176 | memory: "1Gi" |
Mandeep Khinda | de04571 | 2018-09-19 18:11:57 +0000 | [diff] [blame] | 177 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 178 | cpu: "0.5" |
| 179 | memory: "1Gi" |
vaibhavjayas | 659fbae | 2018-09-19 08:58:10 +0000 | [diff] [blame] | 180 | large: |
| 181 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 182 | cpu: "4" |
| 183 | memory: "2Gi" |
vaibhavjayas | 659fbae | 2018-09-19 08:58:10 +0000 | [diff] [blame] | 184 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 185 | cpu: "1" |
| 186 | memory: "2Gi" |
MatthieuGeerebaert | a3adffd | 2018-10-05 14:52:50 +0200 | [diff] [blame] | 187 | unlimited: {} |
farida azmy | 37c9876 | 2021-10-18 13:06:52 +0200 | [diff] [blame] | 188 | |
| 189 | #Pods Service Account |
| 190 | serviceAccount: |
| 191 | nameOverride: nbi |
| 192 | roles: |
| 193 | - read |