blob: 6c1cae268721a55e7b78c3a7590d3e0cde4f81b9 [file] [log] [blame]
yangyanyjb6ad3cb2019-05-05 23:54:08 +08001# 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#################################################################
18global:
19 nodePortPrefix: 302
yangyanyjb6ad3cb2019-05-05 23:54:08 +080020
Krzysztof Opasiak43893f52020-01-31 14:26:54 +010021 persistence:
22 mountPath: /dockerdata-nfs
23
dengyh9cb24cf2020-09-01 08:53:59 +080024 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
31readinessCheck:
32 wait_for:
33 msb:
34 name: msb
35 containers:
36 - msb-iag
37
Krzysztof Opasiak43893f52020-01-31 14:26:54 +010038#################################################################
Krzysztof Opasiak894aafb2020-01-31 23:28:25 +010039# Secrets metaconfig
40#################################################################
41secrets:
dengyh9cb24cf2020-09-01 08:53:59 +080042 - 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 }}'
Krzysztof Opasiak894aafb2020-01-31 23:28:25 +010048
49#################################################################
Krzysztof Opasiak43893f52020-01-31 14:26:54 +010050# Dependencies configuration
51#################################################################
52
53mariadb-galera:
dengyh9cb24cf2020-09-01 08:53:59 +080054 config: &mariadbConfig
55 userCredentialsExternalSecret: *dbSecretName
56 mysqlDatabase: etsicatalog
57 nameOverride: modeling-db
Krzysztof Opasiak43893f52020-01-31 14:26:54 +010058 service:
59 name: modeling-db
60 portName: modeling-db
Krzysztof Opasiak894aafb2020-01-31 23:28:25 +010061 internalPort: 3306
Krzysztof Opasiak43893f52020-01-31 14:26:54 +010062 nfsprovisionerPrefix: modeling
63 persistence:
64 mountSubPath: modeling/data
65 enabled: true
66 disableNfsProvisioner: true
67
dengyh9cb24cf2020-09-01 08:53:59 +080068mariadb-init:
69 config: *mariadbConfig
70 # nameOverride should be the same with common.name
71 nameOverride: modeling-etsicatalog
72
yangyanyjb6ad3cb2019-05-05 23:54:08 +080073#################################################################
74# Application configuration defaults.
75#################################################################
dengyh9cb24cf2020-09-01 08:53:59 +080076config:
77 #application configuration about msb
78 ssl_enabled: false
dengyhd64fec42020-10-26 15:23:42 +080079 msb_enabled: false
dengyh9cb24cf2020-09-01 08:53:59 +080080 msbProtocol: https
81 msbServiceName: msb-iag
82 msbPort: 443
dengyhd64fec42020-10-26 15:23:42 +080083 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
dengyh9cb24cf2020-09-01 08:53:59 +080091 #application configuration user password about mariadb
92 db:
93 userName: etsicatalog
94 # userPassword: password
95 # userCredentialsExternalSecret: some-secret
96
yangyanyjb6ad3cb2019-05-05 23:54:08 +080097# application image
98flavor: small
99
dyh81e83ae2020-11-04 10:52:48 +0800100image: onap/modeling/etsicatalog:1.0.9
yangyanyjb6ad3cb2019-05-05 23:54:08 +0800101pullPolicy: Always
102
103#Istio sidecar injection policy
104istioSidecar: true
105
106# flag to enable debugging - application support required
107debugEnabled: false
108
yangyanyjb6ad3cb2019-05-05 23:54:08 +0800109# default number of instances
110replicaCount: 1
111
112nodeSelector: {}
113
114affinity: {}
115
116# probe configuration parameters
117liveness:
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
124readiness:
125 initialDelaySeconds: 10
126 periodSeconds: 10
127
128## Persist data to a persitent volume
129persistence:
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: "-"
Sylvain Desbureaux3bcc5102019-09-02 15:03:59 +0200144 accessMode: ReadWriteOnce
yangyanyjb6ad3cb2019-05-05 23:54:08 +0800145 size: 2Gi
146 mountPath: /dockerdata-nfs
dyh7d604452019-09-23 15:54:48 +0800147 mountSubPath: modeling/etsicatalog
yangyanyjb6ad3cb2019-05-05 23:54:08 +0800148
149service:
150 type: ClusterIP
dyh7d604452019-09-23 15:54:48 +0800151 name: modeling-etsicatalog
152 portName: modeling-etsicatalog
yangyanyjb6ad3cb2019-05-05 23:54:08 +0800153 externalPort: 8806
154 internalPort: 8806
155# nodePort: 30806
156
157ingress:
158 enabled: false
159
160# Configure resource requests and limits
161resources:
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: {}