[MARIADB] Make the MariaDB service Operator aware
[oom.git] / kubernetes / modeling / components / modeling-etsicatalog / values.yaml
1 # Copyright © 2017 Amdocs, Bell Canada
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 #################################################################
16 # Global configuration defaults.
17 #################################################################
18 global:
19   nodePortPrefix: 302
20
21   persistence:
22     mountPath: /dockerdata-nfs
23
24   mariadbGalera:
25     #This flag allows SO to instantiate its own mariadb-galera cluster
26     #When changing it to "true", also set "globalCluster: false"
27     #as the dependency check will not work otherwise (Chart.yaml)
28     localCluster: false
29     globalCluster: true
30     service: mariadb-galera
31     internalPort: 3306
32     nameOverride: mariadb-galera
33
34   centralizedLoggingEnabled: true
35
36 readinessCheck:
37   wait_for:
38     msb:
39       name: msb
40       containers:
41           - msb-iag
42
43 #################################################################
44 # Secrets metaconfig
45 #################################################################
46 secrets:
47   - uid: modeling-db-secret
48     name: &dbSecretName '{{ include "common.release" . }}-modeling-db-secret'
49     type: basicAuth
50     externalSecret: '{{ tpl (default "" .Values.config.db.userCredentialsExternalSecret) . }}'
51     login: '{{ .Values.config.db.userName }}'
52     password: '{{ .Values.config.db.userPassword }}'
53
54 #################################################################
55 # Dependencies configuration
56 #################################################################
57
58 mariadb-galera:
59   db:
60     externalSecret: *dbSecretName
61     name: &mysqlDbName etsicatalog
62   nameOverride: &modeling-db modeling-db
63   service:
64     name: *modeling-db
65     internalPort: 3306
66   nfsprovisionerPrefix: modeling
67   persistence:
68     mountSubPath: modeling/data
69     enabled: true
70   disableNfsProvisioner: true
71   serviceAccount:
72     nameOverride: *modeling-db
73   replicaCount: 1
74   mariadbOperator:
75     galera:
76       enabled: false
77
78 mariadb-init:
79   config:
80     userCredentialsExternalSecret: *dbSecretName
81     mysqlDatabase: *mysqlDbName
82   # nameOverride should be the same with common.name
83   nameOverride: etsicatalog-db
84   serviceAccount:
85     nameOverride: etsicatalog-db
86
87 #################################################################
88 # Application configuration defaults.
89 #################################################################
90 config:
91   #application configuration about  msb
92   ssl_enabled: false
93   msb_enabled: false
94   msbProtocol: http
95   msbServiceName: msb-iag
96   msbPort: 443
97   msbPlainPort: 80
98   sdcProtocol: http
99   sdcServiceName: sdc-be
100   sdcPort: 8443
101   sdcPlainPort: 8080
102   dmaap_enabled: false
103   dmaapProtocol: http
104   dmaapServiceName: message-router-external
105   dmaapPort: 3905
106
107   #application configuration user password about mariadb
108   db:
109     userName: etsicatalog
110     # userPassword: password
111     # userCredentialsExternalSecret: some-secret
112
113 # application image
114 flavor: small
115
116 image: onap/modeling/etsicatalog:1.0.14
117 pullPolicy: Always
118
119 #Istio sidecar injection policy
120 istioSidecar: true
121
122 # flag to enable debugging - application support required
123 debugEnabled: false
124
125 # default number of instances
126 replicaCount: 1
127
128 nodeSelector: {}
129
130 affinity: {}
131
132 # probe configuration parameters
133 liveness:
134   initialDelaySeconds: 120
135   periodSeconds: 10
136   # necessary to disable liveness probe when setting breakpoints
137   # in debugger so K8s doesn't restart unresponsive container
138   enabled: true
139
140 readiness:
141   initialDelaySeconds: 10
142   periodSeconds: 10
143
144 ## Persist data to a persitent volume
145 persistence:
146   enabled: true
147   ## A manually managed Persistent Volume and Claim
148   ## Requires persistence.enabled: true
149   ## If defined, PVC must be created manually before volume will be bound
150   # existingClaim:
151   volumeReclaimPolicy: Retain
152   ## database data Persistent Volume Storage Class
153   ## If defined, storageClassName: <storageClass>
154   ## If set to "-", storageClassName: "", which disables dynamic provisioning
155   ## If undefined (the default) or set to null, no storageClassName spec is
156   ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
157   ##   GKE, AWS & OpenStack)
158   ##
159   # storageClass: "-"
160   accessMode: ReadWriteOnce
161   size: 2Gi
162   mountPath: /dockerdata-nfs
163   mountSubPath: modeling/etsicatalog
164
165 service:
166   type: ClusterIP
167   name: modeling-etsicatalog
168   portName: http
169   externalPort: 8806
170   internalPort: 8806
171 #  nodePort: 30806
172
173 ingress:
174   enabled: false
175
176 # Configure resource requests and limits
177 resources:
178   small:
179     limits:
180       cpu: 200m
181       memory: 500Mi
182     requests:
183       cpu: 100m
184       memory: 250Mi
185   large:
186     limits:
187       cpu: 400m
188       memory: 1000Mi
189     requests:
190       cpu: 200m
191       memory: 500Mi
192   unlimited: {}
193
194 #Pods Service Account
195 serviceAccount:
196   nameOverride: modeling-etsicatalog
197   roles:
198     - read
199
200 #Log configuration
201 log:
202   path: /var/log/onap