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