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