blob: a1833568e9a71a0c14334354092ea4f40c5d5461 [file] [log] [blame]
Fiachra Corcoranbe966552018-08-07 16:58:45 +01001# 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
econwar28266fa2019-03-05 16:39:00 +000020 loggingDirectory: /opt/app/datartr/logs
Sylvain Desbureauxce3b4612020-03-10 08:45:42 +010021 persistence: {}
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +020022 mariadbGalera: &mariadbGalera
23 #This flag allows DMAAP-DR to instantiate its own mariadb-galera cluster
24 localCluster: false
25 service: mariadb-galera
26 internalPort: 3306
27 nameOverride: mariadb-galera
Fiachra Corcoranbe966552018-08-07 16:58:45 +010028
29#################################################################
Krzysztof Opasiake55b4d52020-02-07 22:54:20 +010030# Secrets metaconfig
31#################################################################
32secrets:
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +020033 - name: &dbUserSecretName '{{ include "common.release" . }}-dmaap-dr-db-user-credentials'
34 uid: 'dmaap-dr-db-user-credentials'
Krzysztof Opasiake55b4d52020-02-07 22:54:20 +010035 type: basicAuth
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +020036 externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "db" "externalSecret")) .) (hasSuffix "dmaap-dr-db-user-credentials" (index .Values "mariadb-galera" "db" "externalSecret"))}}'
37 login: '{{ index .Values "mariadb-galera" "db" "user" }}'
38 password: '{{ index .Values "mariadb-galera" "db" "password" }}'
Krzysztof Opasiake55b4d52020-02-07 22:54:20 +010039
40#################################################################
Fiachra Corcoranbe966552018-08-07 16:58:45 +010041# Application configuration defaults.
42#################################################################
43# application image
efiacorfde53362021-07-22 14:19:38 +010044image: onap/dmaap/datarouter-prov:2.1.9
Fiachra Corcoranbe966552018-08-07 16:58:45 +010045pullPolicy: Always
46
47# flag to enable debugging - application support required
48debugEnabled: false
49
50# application configuration - see parent values chart
51
52# default number of instances
53replicaCount: 1
54
55nodeSelector: {}
56
57affinity: {}
58
59# probe configuration parameters
60liveness:
61 initialDelaySeconds: 30
62 periodSeconds: 10
63 # necessary to disable liveness probe when setting breakpoints
64 # in debugger so K8s doesn't restart unresponsive container
65 enabled: true
66
67readiness:
68 initialDelaySeconds: 30
69 periodSeconds: 10
70
71## Persist data to a persitent volume
72persistence:
Sylvain Desbureauxce3b4612020-03-10 08:45:42 +010073 enabled: true
efiacore62958b2019-09-27 16:54:36 +010074 volumeReclaimPolicy: Retain
75 accessMode: ReadWriteOnce
76 mountPath: /dockerdata-nfs
77
Fiachra Corcoranbe966552018-08-07 16:58:45 +010078ingress:
79 enabled: false
Lucjan Bryndza554759c2019-11-27 15:02:14 +010080 service:
81 - baseaddr: "dmaapdrprov"
82 name: "dmaap-dr-prov"
83 port: 8443
84 config:
85 ssl: "redirect"
Fiachra Corcoranbe966552018-08-07 16:58:45 +010086
econwar28266fa2019-03-05 16:39:00 +000087config:
88 # dr provisioning server configuration
89 dmaapDrProv:
90 servicetype: NodePort
econwar28266fa2019-03-05 16:39:00 +000091 internalPort: 8080
92 internalPort2: 8443
93 portName: dr-prov-port
94 portName2: dr-prov-port2
95 nodePort: 59
96 nodePort2: 69
efiacor9ef176c2020-02-20 16:50:30 +000097 # dr uses the EELF Logging framework https://github.com/att/EELF
98 # and supports the following log levels: TRACE, DEBUG, INFO, WARN, ERROR, OFF
99 logLevel: "INFO"
100
econwar28266fa2019-03-05 16:39:00 +0000101# mariadb-galera configuration
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +0200102mariadb-galera:
103 nameOverride: &dbServer dmaap-dr-db
Sylvain Desbureaux85bc09f2021-06-21 16:11:39 +0200104 replicaCount: 1
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +0100105 db:
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +0200106 name: &mysqlDbName datarouter
107 user: datarouter
108 # password:
guillaume.lambert600dc982021-10-20 20:42:32 +0200109 externalSecret: *dbUserSecretName
econwar28266fa2019-03-05 16:39:00 +0000110 service:
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +0200111 name: *dbServer
econwar28266fa2019-03-05 16:39:00 +0000112 nfsprovisionerPrefix: dmaap-dr-db
113 persistence:
114 size: 1Gi
115 mountSubPath: data-router/dr-db-data
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +0100116 serviceAccount:
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +0200117 nameOverride: *dbServer
118
119mariadb-init:
120 config:
121 userCredentialsExternalSecret: *dbUserSecretName
122 mysqlDatabase: *mysqlDbName
123 nameOverride: dmaap-dr-mariadb-init
efiacore62958b2019-09-27 16:54:36 +0100124
Krzysztof Opasiak2df4a782020-05-08 22:50:24 +0200125#################################################################
126# AAF part
127#################################################################
128certInitializer:
129 nameOverride: dmaap-dr-prov-cert-initializer
efiacor6ca697d2020-03-06 16:30:05 +0000130 aafDeployFqi: deployer@people.osaaf.org
efiacore62958b2019-09-27 16:54:36 +0100131 aafDeployPass: demo123456!
Krzysztof Opasiak2df4a782020-05-08 22:50:24 +0200132# aafDeployCredsExternalSecret: some secret
efiacore62958b2019-09-27 16:54:36 +0100133 fqdn: dmaap-dr-prov
134 fqi: dmaap-dr-prov@dmaap-dr.onap.org
135 publicFqdn: dmaap-dr.onap.org
136 cadiLatitude: 0.0
137 cadiLongitude: 0.0
Krzysztof Opasiak2df4a782020-05-08 22:50:24 +0200138 app_ns: org.osaaf.aaf
139 credsPath: /opt/app/osaaf/local
140
efiacore62958b2019-09-27 16:54:36 +0100141
142# Resource Limit flavor -By Default using small
143flavor: small
144# Segregation for Different environment (Small and Large)
145resources:
146 small:
147 limits:
148 cpu: 2000m
149 memory: 4Gi
150 requests:
151 cpu: 500m
152 memory: 1Gi
153 large:
154 limits:
155 cpu: 4000m
156 memory: 8Gi
157 requests:
158 cpu: 1000m
159 memory: 2Gi
Krzysztof Opasiake55b4d52020-02-07 22:54:20 +0100160 unlimited: {}
farida azmy13388ba2021-03-17 11:33:28 +0200161
162#Pods Service Account
163serviceAccount:
164 nameOverride: dmaap-dr-prov
165 roles:
166 - read