[EXTAPI] Make NBI ServiceMesh compatible
[oom.git] / kubernetes / nbi / values.yaml
1 # Copyright © 2018 Orange
2 # Modifications Copyright © 2018  Amdocs, Bell Canada
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
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
27   aafEnabled: true
28   msbEnabled: true
29
30 #################################################################
31 # AAF part
32 #################################################################
33 certInitializer:
34   nameOverride: nbi-cert-initializer
35   aafDeployFqi: deployer@people.osaaf.org
36   aafDeployPass: demo123456!
37   # aafDeployCredsExternalSecret: some secret
38   fqdn: nbi
39   fqi: nbi@nbi.onap.org
40   public_fqdn: nbi.onap.org
41   cadi_longitude: "0.0"
42   cadi_latitude: "0.0"
43   app_ns: org.osaaf.aaf
44   credsPath: /opt/app/osaaf/local
45   aaf_add_config: >
46     echo "cadi_keystore_password_p12=$cadi_keystore_password_p12" > {{ .Values.credsPath }}/mycreds.prop
47     echo "cadi_truststore_password=$cadi_truststore_password" >> {{ .Values.credsPath }}/mycreds.prop
48
49 aafConfig:
50   permission_user: 1000
51   permission_group: 999
52
53 #################################################################
54 # Secrets metaconfig
55 #################################################################
56 secrets:
57   - uid: nbi-db-secret
58     name: &dbUserSecretName '{{ include "common.release" . }}-nbi-db-secret'
59     type: basicAuth
60     externalSecret: '{{ tpl (default "" .Values.config.db.userCredentialsExternalSecret) . }}'
61     login: '{{ .Values.config.db.userName }}'
62     password: '{{ .Values.config.db.userPassword }}'
63
64 subChartsOnly:
65   enabled: true
66
67 # application image
68 repository: nexus3.onap.org:10001
69 image: onap/externalapi/nbi:10.0.0
70 pullPolicy: IfNotPresent
71 sdc_authorization: Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=
72 aai_authorization: Basic QUFJOkFBSQ==
73 so_authorization:
74
75 # application configuration
76 config:
77   loglevel: INFO
78   logstashServiceName: log-ls
79   logstashPort: 5044
80   cloudOwner: CloudOwner
81   k8sCloudRegionId: k8sregionfour
82   k8sCloudOwner: k8scloudowner4
83   ecompInstanceId: OOM
84   openStackRegion: RegionOne
85   openStackVNFTenantId: 31047205ce114b60833b23e400d6a535
86   db:
87     userName: rene
88     # userPassword: password
89     # userCredentialsExternalSecret: some-secret
90
91 mariadb-galera:
92   db:
93     externalSecret: *dbUserSecretName
94     name: &mysqlDbName nbi
95   service:
96     name: nbi-galera
97     portName: nbi-galera
98     internalPort: 3306
99   nameOverride: &nbi-galera nbi-galera
100   replicaCount: 1
101   persistence:
102     enabled: true
103     mountSubPath: nbi/maria/data
104   serviceAccount:
105     nameOverride: *nbi-galera
106
107 mariadb-init:
108   config:
109     userCredentialsExternalSecret: *dbUserSecretName
110     mysqlDatabase: *mysqlDbName
111   nameOverride: nbi-config
112
113 mongo:
114   nameOverride: nbi-mongo
115   config:
116     dbName: ServiceOrderDB
117   service:
118     name: nbi-mongohost
119     internalPort: 27017
120   nfsprovisionerPrefix: nbi
121   sdnctlPrefix: nbi
122   persistence:
123     mountSubPath: nbi/mongo/data
124     enabled: true
125   disableNfsProvisioner: true
126
127
128 # default number of instances
129 replicaCount: 1
130
131 nodeSelector: {}
132
133 affinity: {}
134
135 # probe configuration parameters
136 liveness:
137   path: /nbi/api/v4/status
138   initialDelaySeconds: 180
139   periodSeconds: 30
140   # necessary to disable liveness probe when setting breakpoints
141   # in debugger so K8s doesn't restart unresponsive container
142   enabled: true
143
144 readiness:
145   path: /nbi/api/v4/status
146   initialDelaySeconds: 185
147   periodSeconds: 30
148
149 service:
150   type: NodePort
151   portName: api
152   name: nbi
153   internalPort: 8443
154   internalPlainPort: 8080
155   ports:
156     - name: http
157       port: 8443
158       plain_port: 8080
159       nodePort: '74'
160
161 ingress:
162   enabled: false
163   service:
164     - baseaddr: "nbi.api"
165       name: "nbi"
166       port: 8443
167       plain_port: 8080
168   config:
169     ssl: "redirect"
170 # Resource Limit flavor -By Default using small
171 flavor: small
172 # Segregation for Different environment (Small and Large)
173 resources:
174   small:
175     limits:
176       cpu: 1
177       memory: 2Gi
178     requests:
179       cpu: 100m
180       memory: 1Gi
181   large:
182     limits:
183       cpu: 2
184       memory: 4Gi
185     requests:
186       cpu: 200m
187       memory: 2Gi
188   unlimited: {}
189
190 #Pods Service Account
191 serviceAccount:
192   nameOverride: nbi
193   roles:
194     - read