[MARIADB] Fix db/user creation in operator
[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 NBI 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: &dbuser rene
67     # userPassword: password
68     # userCredentialsExternalSecret: some-secret
69
70 mariadb-galera:
71   db:
72     user: *dbuser
73     externalSecret: *dbUserSecretName
74     name: &mysqlDbName nbi
75   service:
76     name: nbi-galera
77     portName: nbi-galera
78     internalPort: 3306
79   nameOverride: &nbi-galera nbi-galera
80   replicaCount: 1
81   mariadbOperator:
82     galera:
83       enabled: false
84   persistence:
85     enabled: true
86     mountSubPath: nbi/maria/data
87   serviceAccount:
88     nameOverride: *nbi-galera
89
90 mariadb-init:
91   config:
92     userCredentialsExternalSecret: *dbUserSecretName
93     mysqlDatabase: *mysqlDbName
94   nameOverride: nbi-config
95   serviceAccount:
96     nameOverride: nbi-config
97
98 mongo:
99   nameOverride: nbi-mongo
100   config:
101     dbName: ServiceOrderDB
102   service:
103     name: nbi-mongohost
104     internalPort: 27017
105   nfsprovisionerPrefix: nbi
106   sdnctlPrefix: nbi
107   persistence:
108     mountSubPath: nbi/mongo/data
109     enabled: true
110   disableNfsProvisioner: true
111
112
113 # default number of instances
114 replicaCount: 1
115
116 nodeSelector: {}
117
118 affinity: {}
119
120 # probe configuration parameters
121 liveness:
122   path: /nbi/api/v4/status
123   initialDelaySeconds: 180
124   periodSeconds: 30
125   # necessary to disable liveness probe when setting breakpoints
126   # in debugger so K8s doesn't restart unresponsive container
127   enabled: true
128
129 readiness:
130   path: /nbi/api/v4/status
131   initialDelaySeconds: 185
132   periodSeconds: 30
133
134 service:
135   type: NodePort
136   portName: api
137   name: nbi
138   internalPort: 8080
139   ports:
140     - name: http
141       port: 8080
142       nodePort: '74'
143
144 ingress:
145   enabled: false
146   service:
147     - baseaddr: "nbi-api"
148       name: "nbi"
149       port: 8080
150   config:
151     ssl: "redirect"
152 # Resource Limit flavor -By Default using small
153 flavor: small
154 # Segregation for Different environment (Small and Large)
155 resources:
156   small:
157     limits:
158       cpu: 2
159       memory: 1Gi
160     requests:
161       cpu: 0.5
162       memory: 1Gi
163   large:
164     limits:
165       cpu: 4
166       memory: 2Gi
167     requests:
168       cpu: 1
169       memory: 2Gi
170   unlimited: {}
171
172 #Pods Service Account
173 serviceAccount:
174   nameOverride: nbi
175   roles:
176     - read