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 |
| 22 | #This flag allows SO to instantiate its own mariadb-galera cluster |
| 23 | localCluster: false |
| 24 | service: mariadb-galera |
| 25 | internalPort: 3306 |
| 26 | nameOverride: mariadb-galera |
Sylvain Desbureaux | d82050c | 2020-03-17 10:43:40 +0100 | [diff] [blame] | 27 | aafEnabled: true |
Sylvain Desbureaux | d82050c | 2020-03-17 10:43:40 +0100 | [diff] [blame] | 28 | |
| 29 | ################################################################# |
| 30 | # AAF part |
| 31 | ################################################################# |
Krzysztof Opasiak | 020cdb9 | 2020-05-01 01:46:37 +0200 | [diff] [blame] | 32 | certInitializer: |
| 33 | nameOverride: nbi-cert-initializer |
Sylvain Desbureaux | d82050c | 2020-03-17 10:43:40 +0100 | [diff] [blame] | 34 | aafDeployFqi: deployer@people.osaaf.org |
| 35 | aafDeployPass: demo123456! |
| 36 | # aafDeployCredsExternalSecret: some secret |
| 37 | fqdn: nbi |
| 38 | fqi: nbi@nbi.onap.org |
| 39 | public_fqdn: nbi.onap.org |
| 40 | cadi_longitude: "0.0" |
| 41 | cadi_latitude: "0.0" |
Sylvain Desbureaux | d82050c | 2020-03-17 10:43:40 +0100 | [diff] [blame] | 42 | app_ns: org.osaaf.aaf |
Krzysztof Opasiak | 020cdb9 | 2020-05-01 01:46:37 +0200 | [diff] [blame] | 43 | credsPath: /opt/app/osaaf/local |
| 44 | aaf_add_config: > |
Sylvain Desbureaux | b28e76c | 2021-02-23 16:21:19 +0100 | [diff] [blame] | 45 | echo "cadi_keystore_password_p12=$cadi_keystore_password_p12" > {{ .Values.credsPath }}/mycreds.prop |
| 46 | echo "cadi_truststore_password=$cadi_truststore_password" >> {{ .Values.credsPath }}/mycreds.prop |
Krzysztof Opasiak | 020cdb9 | 2020-05-01 01:46:37 +0200 | [diff] [blame] | 47 | |
| 48 | aafConfig: |
Sylvain Desbureaux | d82050c | 2020-03-17 10:43:40 +0100 | [diff] [blame] | 49 | permission_user: 1000 |
| 50 | permission_group: 999 |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 51 | |
Krzysztof Opasiak | e383b32 | 2020-02-07 15:49:54 +0100 | [diff] [blame] | 52 | ################################################################# |
| 53 | # Secrets metaconfig |
| 54 | ################################################################# |
| 55 | secrets: |
| 56 | - uid: nbi-db-secret |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 57 | name: &dbUserSecretName '{{ include "common.release" . }}-nbi-db-secret' |
Krzysztof Opasiak | e383b32 | 2020-02-07 15:49:54 +0100 | [diff] [blame] | 58 | type: basicAuth |
| 59 | externalSecret: '{{ tpl (default "" .Values.config.db.userCredentialsExternalSecret) . }}' |
| 60 | login: '{{ .Values.config.db.userName }}' |
| 61 | password: '{{ .Values.config.db.userPassword }}' |
| 62 | |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 63 | subChartsOnly: |
| 64 | enabled: true |
| 65 | |
| 66 | # application image |
| 67 | repository: nexus3.onap.org:10001 |
aosull01 | 6202fd2 | 2021-02-23 17:59:34 +0000 | [diff] [blame] | 68 | image: onap/externalapi/nbi:8.0.1 |
Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 69 | pullPolicy: IfNotPresent |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 70 | sdc_authorization: Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU= |
| 71 | aai_authorization: Basic QUFJOkFBSQ== |
| 72 | so_authorization: |
| 73 | |
| 74 | # application configuration |
| 75 | config: |
| 76 | loglevel: INFO |
| 77 | logstashServiceName: log-ls |
| 78 | logstashPort: 5044 |
| 79 | cloudOwner: CloudOwner |
aleemraja | 40149d8 | 2020-10-16 17:48:17 +0530 | [diff] [blame] | 80 | k8sCloudRegionId: k8sregionfour |
| 81 | k8sCloudOwner: k8scloudowner4 |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 82 | ecompInstanceId: OOM |
| 83 | openStackRegion: RegionOne |
Sylvain Desbureaux | 33f8367 | 2018-06-01 14:28:39 +0200 | [diff] [blame] | 84 | openStackVNFTenantId: 31047205ce114b60833b23e400d6a535 |
Krzysztof Opasiak | e383b32 | 2020-02-07 15:49:54 +0100 | [diff] [blame] | 85 | db: |
| 86 | userName: rene |
| 87 | # userPassword: password |
| 88 | # userCredentialsExternalSecret: some-secret |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 89 | |
Sylvain Desbureaux | 9e851c6 | 2019-10-28 15:52:05 +0100 | [diff] [blame] | 90 | mariadb-galera: |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 91 | db: |
| 92 | externalSecret: *dbUserSecretName |
| 93 | name: &mysqlDbName nbi |
| 94 | nameOverride: &nbi-galera nbi-galera |
Sylvain Desbureaux | 9e851c6 | 2019-10-28 15:52:05 +0100 | [diff] [blame] | 95 | replicaCount: 1 |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 96 | persistence: |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 97 | enabled: true |
Sylvain Desbureaux | 9e851c6 | 2019-10-28 15:52:05 +0100 | [diff] [blame] | 98 | mountSubPath: nbi/maria/data |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 99 | serviceAccount: |
| 100 | nameOverride: *nbi-galera |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 101 | |
Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 102 | mariadb-init: |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 103 | config: |
| 104 | userCredentialsExternalSecret: *dbUserSecretName |
| 105 | mysqlDatabase: *mysqlDbName |
Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 106 | nameOverride: nbi-config |
| 107 | |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 108 | mongo: |
| 109 | nameOverride: nbi-mongo |
| 110 | config: |
| 111 | dbName: ServiceOrderDB |
| 112 | service: |
| 113 | name: nbi-mongohost |
| 114 | internalPort: 27017 |
| 115 | nfsprovisionerPrefix: nbi |
| 116 | sdnctlPrefix: nbi |
| 117 | persistence: |
| 118 | mountSubPath: nbi/mongo/data |
| 119 | enabled: true |
| 120 | disableNfsProvisioner: true |
| 121 | |
| 122 | |
| 123 | # default number of instances |
| 124 | replicaCount: 1 |
| 125 | |
| 126 | nodeSelector: {} |
| 127 | |
| 128 | affinity: {} |
| 129 | |
| 130 | # probe configuration parameters |
| 131 | liveness: |
Sylvain Desbureaux | d82050c | 2020-03-17 10:43:40 +0100 | [diff] [blame] | 132 | path: /nbi/api/v4/status |
| 133 | port: 8443 |
MatthieuGeerebaert | 89e3dc8 | 2018-10-08 14:02:08 +0200 | [diff] [blame] | 134 | initialDelaySeconds: 180 |
| 135 | periodSeconds: 30 |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 136 | # necessary to disable liveness probe when setting breakpoints |
| 137 | # in debugger so K8s doesn't restart unresponsive container |
| 138 | enabled: true |
| 139 | |
| 140 | readiness: |
Sylvain Desbureaux | d82050c | 2020-03-17 10:43:40 +0100 | [diff] [blame] | 141 | path: /nbi/api/v4/status |
| 142 | port: 8443 |
MatthieuGeerebaert | 89e3dc8 | 2018-10-08 14:02:08 +0200 | [diff] [blame] | 143 | initialDelaySeconds: 185 |
| 144 | periodSeconds: 30 |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 145 | |
| 146 | service: |
| 147 | type: NodePort |
| 148 | portName: api |
| 149 | name: nbi |
Mandeep Khinda | 9ef4d43 | 2018-05-17 20:16:06 +0000 | [diff] [blame] | 150 | nodePort: 74 |
Sylvain Desbureaux | d82050c | 2020-03-17 10:43:40 +0100 | [diff] [blame] | 151 | internalPort: 8443 |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 152 | |
| 153 | ingress: |
| 154 | enabled: false |
Lucjan Bryndza | 0564965 | 2020-04-29 08:52:33 +0000 | [diff] [blame] | 155 | service: |
| 156 | - baseaddr: "nbi.api" |
| 157 | name: "nbi" |
| 158 | port: 8443 |
| 159 | config: |
| 160 | ssl: "redirect" |
Mandeep Khinda | de04571 | 2018-09-19 18:11:57 +0000 | [diff] [blame] | 161 | # Resource Limit flavor -By Default using small |
vaibhavjayas | 659fbae | 2018-09-19 08:58:10 +0000 | [diff] [blame] | 162 | flavor: small |
| 163 | # Segregation for Different environment (Small and Large) |
Eric Debeau | 33774ef | 2018-09-11 12:23:07 +0000 | [diff] [blame] | 164 | resources: |
vaibhavjayas | 659fbae | 2018-09-19 08:58:10 +0000 | [diff] [blame] | 165 | small: |
| 166 | limits: |
Mandeep Khinda | de04571 | 2018-09-19 18:11:57 +0000 | [diff] [blame] | 167 | cpu: 1 |
| 168 | memory: 2Gi |
| 169 | requests: |
| 170 | cpu: 100m |
| 171 | memory: 1Gi |
vaibhavjayas | 659fbae | 2018-09-19 08:58:10 +0000 | [diff] [blame] | 172 | large: |
| 173 | limits: |
| 174 | cpu: 2 |
| 175 | memory: 4Gi |
| 176 | requests: |
| 177 | cpu: 200m |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 178 | memory: 2Gi |
MatthieuGeerebaert | a3adffd | 2018-10-05 14:52:50 +0200 | [diff] [blame] | 179 | unlimited: {} |