[COMMON] Harmonize resource settings
[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
34 #################################################################
35 # Secrets metaconfig
36 #################################################################
37 secrets:
38   - uid: nbi-db-secret
39     name: &dbUserSecretName '{{ include "common.release" . }}-nbi-db-secret'
40     type: basicAuth
41     externalSecret: '{{ tpl (default "" .Values.config.db.userCredentialsExternalSecret) . }}'
42     login: '{{ .Values.config.db.userName }}'
43     password: '{{ .Values.config.db.userPassword }}'
44
45 subChartsOnly:
46   enabled: true
47
48 # application image
49 repository: nexus3.onap.org:10001
50 image: onap/externalapi/nbi:10.0.0
51 pullPolicy: IfNotPresent
52 sdc_authorization: Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=
53 aai_authorization: Basic QUFJOkFBSQ==
54 so_authorization:
55
56 # application configuration
57 config:
58   loglevel: INFO
59   logstashServiceName: log-ls
60   logstashPort: 5044
61   cloudOwner: CloudOwner
62   k8sCloudRegionId: k8sregionfour
63   k8sCloudOwner: k8scloudowner4
64   ecompInstanceId: OOM
65   openStackRegion: RegionOne
66   openStackVNFTenantId: 31047205ce114b60833b23e400d6a535
67   db:
68     userName: &dbuser rene
69     # userPassword: password
70     # userCredentialsExternalSecret: some-secret
71
72 mariadb-galera:
73   db:
74     user: *dbuser
75     externalSecret: *dbUserSecretName
76     name: &mysqlDbName nbi
77   service:
78     name: nbi-galera
79     portName: nbi-galera
80     internalPort: 3306
81   nameOverride: &nbi-galera nbi-galera
82   replicaCount: 1
83   mariadbOperator:
84     galera:
85       enabled: false
86   persistence:
87     enabled: true
88     mountSubPath: nbi/maria/data
89   serviceAccount:
90     nameOverride: *nbi-galera
91
92 mariadb-init:
93   config:
94     userCredentialsExternalSecret: *dbUserSecretName
95     mysqlDatabase: *mysqlDbName
96   nameOverride: nbi-config
97   serviceAccount:
98     nameOverride: nbi-config
99
100 mongo:
101   nameOverride: nbi-mongo
102   config:
103     dbName: ServiceOrderDB
104   service:
105     name: nbi-mongohost
106     internalPort: 27017
107   nfsprovisionerPrefix: nbi
108   sdnctlPrefix: nbi
109   persistence:
110     mountSubPath: nbi/mongo/data
111     enabled: true
112   disableNfsProvisioner: true
113
114
115 # default number of instances
116 replicaCount: 1
117
118 nodeSelector: {}
119
120 affinity: {}
121
122 # probe configuration parameters
123 liveness:
124   path: /nbi/api/v4/status
125   initialDelaySeconds: 180
126   periodSeconds: 30
127   # necessary to disable liveness probe when setting breakpoints
128   # in debugger so K8s doesn't restart unresponsive container
129   enabled: true
130
131 readiness:
132   path: /nbi/api/v4/status
133   initialDelaySeconds: 185
134   periodSeconds: 30
135
136 service:
137   type: NodePort
138   portName: api
139   name: nbi
140   internalPort: 8080
141   ports:
142     - name: http
143       port: 8080
144       nodePort: '74'
145
146 ingress:
147   enabled: false
148   service:
149     - baseaddr: "nbi-api"
150       name: "nbi"
151       port: 8080
152   config:
153     ssl: "redirect"
154 # Resource Limit flavor -By Default using small
155 flavor: small
156 # Segregation for Different environment (Small and Large)
157 resources:
158   small:
159     limits:
160       cpu: "2"
161       memory: "1Gi"
162     requests:
163       cpu: "0.5"
164       memory: "1Gi"
165   large:
166     limits:
167       cpu: "4"
168       memory: "2Gi"
169     requests:
170       cpu: "1"
171       memory: "2Gi"
172   unlimited: {}
173
174 #Pods Service Account
175 serviceAccount:
176   nameOverride: nbi
177   roles:
178     - read