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