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