Merge "[AAI] Add model-loader tracing config"
[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     # flag to enable the DB creation via mariadb-operator
23     useOperator: true
24     #This flag allows NBI to instantiate its own mariadb-galera cluster
25     #When changing it to "true", also set "globalCluster: false"
26     #as the dependency check will not work otherwise (Chart.yaml)
27     localCluster: false
28     globalCluster: true
29     service: mariadb-galera
30     internalPort: 3306
31     nameOverride: mariadb-galera
32   msbEnabled: false
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   # *************************************************
42
43 #################################################################
44 # Secrets metaconfig
45 #################################################################
46 secrets:
47   - uid: nbi-db-secret
48     name: &dbUserSecretName '{{ include "common.release" . }}-nbi-db-secret'
49     type: basicAuth
50     externalSecret: '{{ tpl (default "" .Values.config.db.userCredentialsExternalSecret) . }}'
51     login: '{{ .Values.config.db.userName }}'
52     password: '{{ .Values.config.db.userPassword }}'
53
54 subChartsOnly:
55   enabled: true
56
57 # application image
58 repository: nexus3.onap.org:10001
59 image: onap/externalapi/nbi:10.0.0
60 pullPolicy: IfNotPresent
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
71   k8sCloudRegionId: k8sregionfour
72   k8sCloudOwner: k8scloudowner4
73   ecompInstanceId: OOM
74   openStackRegion: RegionOne
75   openStackVNFTenantId: 31047205ce114b60833b23e400d6a535
76   db:
77     userName: &dbuser rene
78     # userPassword: password
79     # userCredentialsExternalSecret: some-secret
80
81 mariadb-galera:
82   db:
83     user: *dbuser
84     externalSecret: *dbUserSecretName
85     name: &mysqlDbName nbi
86   service:
87     name: nbi-galera
88     portName: nbi-galera
89     internalPort: 3306
90   nameOverride: &nbi-galera nbi-galera
91   replicaCount: 1
92   mariadbOperator:
93     galera:
94       enabled: false
95   persistence:
96     enabled: true
97     mountSubPath: nbi/maria/data
98   serviceAccount:
99     nameOverride: *nbi-galera
100
101 mariadb-init:
102   config:
103     userCredentialsExternalSecret: *dbUserSecretName
104     mysqlDatabase: *mysqlDbName
105   nameOverride: nbi-config
106   serviceAccount:
107     nameOverride: nbi-config
108
109 mongodb:
110   nameOverride: nbi-mongo
111   config:
112     dbName: &mongoDBName ServiceOrderDB
113   auth:
114     enabled: false
115     databases:
116     - *mongoDBName
117     usernames:
118     - "nbi"
119   service:
120     nameOverride: nbi-mongohost
121     internalPort: 27017
122   resources:
123     limits:
124       cpu: "1"
125       memory: "1Gi"
126     requests:
127       cpu: "500m"
128       memory: "1Gi"
129
130 # default number of instances
131 replicaCount: 1
132
133 nodeSelector: {}
134
135 affinity: {}
136
137 # probe configuration parameters
138 liveness:
139   path: /nbi/api/v4/status
140   initialDelaySeconds: 180
141   periodSeconds: 30
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:
147   path: /nbi/api/v4/status
148   initialDelaySeconds: 185
149   periodSeconds: 30
150
151 service:
152   type: NodePort
153   portName: api
154   name: nbi
155   internalPort: 8080
156   ports:
157     - name: http
158       port: 8080
159       nodePort: '74'
160
161 ingress:
162   enabled: false
163   service:
164     - baseaddr: "nbi-api"
165       name: "nbi"
166       port: 8080
167   config:
168     ssl: "redirect"
169 # Resource Limit flavor -By Default using small
170 flavor: small
171 # Segregation for Different environment (Small and Large)
172 resources:
173   small:
174     limits:
175       cpu: "2"
176       memory: "1Gi"
177     requests:
178       cpu: "0.5"
179       memory: "1Gi"
180   large:
181     limits:
182       cpu: "4"
183       memory: "2Gi"
184     requests:
185       cpu: "1"
186       memory: "2Gi"
187   unlimited: {}
188
189 #Pods Service Account
190 serviceAccount:
191   nameOverride: nbi
192   roles:
193     - read