[COMMON][MARIADB] Upgrade Mariadb DB galera version
[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 Modeling to instantiate its own mariadb-galera cluster
26     localCluster: false
27     service: mariadb-galera
28     internalPort: 3306
29     nameOverride: mariadb-galera
30
31 readinessCheck:
32   wait_for:
33     msb:
34       name: msb
35       containers:
36           - msb-iag
37
38 #################################################################
39 # Secrets metaconfig
40 #################################################################
41 secrets:
42   - uid: modeling-db-secret
43     name: &dbSecretName '{{ include "common.release" . }}-modeling-db-secret'
44     type: basicAuth
45     externalSecret: '{{ tpl (default "" .Values.config.db.userCredentialsExternalSecret) . }}'
46     login: '{{ .Values.config.db.userName }}'
47     password: '{{ .Values.config.db.userPassword }}'
48
49 #################################################################
50 # Dependencies configuration
51 #################################################################
52
53 mariadb-galera:
54   db:
55     externalSecret: *dbSecretName
56     name: &mysqlDbName etsicatalog
57   nameOverride: &modeling-db modeling-db
58   service:
59     name: *modeling-db
60     internalPort: 3306
61   nfsprovisionerPrefix: modeling
62   persistence:
63     mountSubPath: modeling/data
64     enabled: true
65   disableNfsProvisioner: true
66   serviceAccount:
67     nameOverride: *modeling-db
68
69 mariadb-init:
70   config:
71     userCredentialsExternalSecret: *dbSecretName
72     mysqlDatabase: *mysqlDbName
73   # nameOverride should be the same with common.name
74   nameOverride: modeling-etsicatalog
75
76 #################################################################
77 # Application configuration defaults.
78 #################################################################
79 config:
80   #application configuration about  msb
81   ssl_enabled: false
82   msb_enabled: false
83   msbProtocol: https
84   msbServiceName: msb-iag
85   msbPort: 443
86   sdcProtocol: https
87   sdcServiceName: sdc-be
88   sdcPort: 8443
89   dmaap_enabled: false
90   dmaapProtocol: https
91   dmaapServiceName: message-router-external
92   dmaapPort: 3905
93
94   #application configuration user password about mariadb
95   db:
96     userName: etsicatalog
97     # userPassword: password
98     # userCredentialsExternalSecret: some-secret
99
100 # application image
101 flavor: small
102
103 image: onap/modeling/etsicatalog:1.0.9
104 pullPolicy: Always
105
106 #Istio sidecar injection policy
107 istioSidecar: true
108
109 # flag to enable debugging - application support required
110 debugEnabled: false
111
112 # default number of instances
113 replicaCount: 1
114
115 nodeSelector: {}
116
117 affinity: {}
118
119 # probe configuration parameters
120 liveness:
121   initialDelaySeconds: 120
122   periodSeconds: 10
123   # necessary to disable liveness probe when setting breakpoints
124   # in debugger so K8s doesn't restart unresponsive container
125   enabled: true
126
127 readiness:
128   initialDelaySeconds: 10
129   periodSeconds: 10
130
131 ## Persist data to a persitent volume
132 persistence:
133   enabled: true
134   ## A manually managed Persistent Volume and Claim
135   ## Requires persistence.enabled: true
136   ## If defined, PVC must be created manually before volume will be bound
137   # existingClaim:
138   volumeReclaimPolicy: Retain
139   ## database data Persistent Volume Storage Class
140   ## If defined, storageClassName: <storageClass>
141   ## If set to "-", storageClassName: "", which disables dynamic provisioning
142   ## If undefined (the default) or set to null, no storageClassName spec is
143   ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
144   ##   GKE, AWS & OpenStack)
145   ##
146   # storageClass: "-"
147   accessMode: ReadWriteOnce
148   size: 2Gi
149   mountPath: /dockerdata-nfs
150   mountSubPath: modeling/etsicatalog
151
152 service:
153   type: ClusterIP
154   name: modeling-etsicatalog
155   portName: modeling-etsicatalog
156   externalPort: 8806
157   internalPort: 8806
158 #  nodePort: 30806
159
160 ingress:
161   enabled: false
162
163 # Configure resource requests and limits
164 resources:
165   small:
166     limits:
167       cpu: 200m
168       memory: 500Mi
169     requests:
170       cpu: 100m
171       memory: 250Mi
172   large:
173     limits:
174       cpu: 400m
175       memory: 1000Mi
176     requests:
177       cpu: 200m
178       memory: 500Mi
179   unlimited: {}