blob: 59b0765f28d2a1a378921a5aeac9031050047900 [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: {}
Maciej Wereski9075b5c2021-11-04 14:01:26 +000022 centralizedLoggingEnabled: true
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +020023 mariadbGalera: &mariadbGalera
24 #This flag allows DMAAP-DR to instantiate its own mariadb-galera cluster
25 localCluster: false
26 service: mariadb-galera
27 internalPort: 3306
28 nameOverride: mariadb-galera
Fiachra Corcoranbe966552018-08-07 16:58:45 +010029
30#################################################################
Krzysztof Opasiake55b4d52020-02-07 22:54:20 +010031# Secrets metaconfig
32#################################################################
33secrets:
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +020034 - name: &dbUserSecretName '{{ include "common.release" . }}-dmaap-dr-db-user-credentials'
35 uid: 'dmaap-dr-db-user-credentials'
Krzysztof Opasiake55b4d52020-02-07 22:54:20 +010036 type: basicAuth
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +020037 externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "db" "externalSecret")) .) (hasSuffix "dmaap-dr-db-user-credentials" (index .Values "mariadb-galera" "db" "externalSecret"))}}'
38 login: '{{ index .Values "mariadb-galera" "db" "user" }}'
39 password: '{{ index .Values "mariadb-galera" "db" "password" }}'
Krzysztof Opasiake55b4d52020-02-07 22:54:20 +010040
41#################################################################
Fiachra Corcoranbe966552018-08-07 16:58:45 +010042# Application configuration defaults.
43#################################################################
44# application image
efiacorb66260d2022-09-26 10:28:43 +010045image: onap/dmaap/datarouter-prov:2.1.11
Fiachra Corcoranbe966552018-08-07 16:58:45 +010046pullPolicy: Always
47
48# flag to enable debugging - application support required
49debugEnabled: false
50
51# application configuration - see parent values chart
52
53# default number of instances
54replicaCount: 1
55
56nodeSelector: {}
57
58affinity: {}
59
60# probe configuration parameters
61liveness:
62 initialDelaySeconds: 30
63 periodSeconds: 10
64 # necessary to disable liveness probe when setting breakpoints
65 # in debugger so K8s doesn't restart unresponsive container
66 enabled: true
67
68readiness:
69 initialDelaySeconds: 30
70 periodSeconds: 10
71
72## Persist data to a persitent volume
73persistence:
Sylvain Desbureauxce3b4612020-03-10 08:45:42 +010074 enabled: true
efiacore62958b2019-09-27 16:54:36 +010075 volumeReclaimPolicy: Retain
76 accessMode: ReadWriteOnce
77 mountPath: /dockerdata-nfs
78
Fiachra Corcoranbe966552018-08-07 16:58:45 +010079ingress:
80 enabled: false
Lucjan Bryndza554759c2019-11-27 15:02:14 +010081 service:
Andreas Geissler51900a92022-08-03 13:10:35 +020082 - baseaddr: "dmaap-dr-prov-api"
Lucjan Bryndza554759c2019-11-27 15:02:14 +010083 name: "dmaap-dr-prov"
84 port: 8443
Andreas Geissler51900a92022-08-03 13:10:35 +020085 plain_port: 8080
Lucjan Bryndza554759c2019-11-27 15:02:14 +010086 config:
87 ssl: "redirect"
Fiachra Corcoranbe966552018-08-07 16:58:45 +010088
econwar28266fa2019-03-05 16:39:00 +000089config:
90 # dr provisioning server configuration
91 dmaapDrProv:
92 servicetype: NodePort
econwar28266fa2019-03-05 16:39:00 +000093 internalPort: 8080
94 internalPort2: 8443
95 portName: dr-prov-port
96 portName2: dr-prov-port2
97 nodePort: 59
98 nodePort2: 69
efiacor9ef176c2020-02-20 16:50:30 +000099 # dr uses the EELF Logging framework https://github.com/att/EELF
100 # and supports the following log levels: TRACE, DEBUG, INFO, WARN, ERROR, OFF
101 logLevel: "INFO"
102
econwar28266fa2019-03-05 16:39:00 +0000103# mariadb-galera configuration
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +0200104mariadb-galera:
105 nameOverride: &dbServer dmaap-dr-db
Sylvain Desbureaux85bc09f2021-06-21 16:11:39 +0200106 replicaCount: 1
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +0100107 db:
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +0200108 name: &mysqlDbName datarouter
109 user: datarouter
110 # password:
guillaume.lambert600dc982021-10-20 20:42:32 +0200111 externalSecret: *dbUserSecretName
econwar28266fa2019-03-05 16:39:00 +0000112 service:
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +0200113 name: *dbServer
econwar28266fa2019-03-05 16:39:00 +0000114 nfsprovisionerPrefix: dmaap-dr-db
115 persistence:
116 size: 1Gi
117 mountSubPath: data-router/dr-db-data
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +0100118 serviceAccount:
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +0200119 nameOverride: *dbServer
120
121mariadb-init:
122 config:
123 userCredentialsExternalSecret: *dbUserSecretName
124 mysqlDatabase: *mysqlDbName
125 nameOverride: dmaap-dr-mariadb-init
efiacore62958b2019-09-27 16:54:36 +0100126
Krzysztof Opasiak2df4a782020-05-08 22:50:24 +0200127#################################################################
128# AAF part
129#################################################################
130certInitializer:
131 nameOverride: dmaap-dr-prov-cert-initializer
efiacor6ca697d2020-03-06 16:30:05 +0000132 aafDeployFqi: deployer@people.osaaf.org
efiacore62958b2019-09-27 16:54:36 +0100133 aafDeployPass: demo123456!
Krzysztof Opasiak2df4a782020-05-08 22:50:24 +0200134# aafDeployCredsExternalSecret: some secret
efiacore62958b2019-09-27 16:54:36 +0100135 fqdn: dmaap-dr-prov
136 fqi: dmaap-dr-prov@dmaap-dr.onap.org
137 publicFqdn: dmaap-dr.onap.org
138 cadiLatitude: 0.0
139 cadiLongitude: 0.0
Krzysztof Opasiak2df4a782020-05-08 22:50:24 +0200140 app_ns: org.osaaf.aaf
141 credsPath: /opt/app/osaaf/local
142
efiacore62958b2019-09-27 16:54:36 +0100143
144# Resource Limit flavor -By Default using small
145flavor: small
rope252f2db5c12022-01-10 14:15:16 +0000146
147securityContext:
148 user_id: 1000
149 group_id: 1000
150
efiacore62958b2019-09-27 16:54:36 +0100151# Segregation for Different environment (Small and Large)
152resources:
153 small:
154 limits:
155 cpu: 2000m
156 memory: 4Gi
157 requests:
158 cpu: 500m
159 memory: 1Gi
160 large:
161 limits:
162 cpu: 4000m
163 memory: 8Gi
164 requests:
165 cpu: 1000m
166 memory: 2Gi
Krzysztof Opasiake55b4d52020-02-07 22:54:20 +0100167 unlimited: {}
farida azmy13388ba2021-03-17 11:33:28 +0200168
169#Pods Service Account
170serviceAccount:
171 nameOverride: dmaap-dr-prov
172 roles:
173 - read
Maciej Wereski9075b5c2021-11-04 14:01:26 +0000174
175#Log configuration
176log:
177 path: /var/log/onap