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