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