blob: 9e6effac8ba51f14e534bdd0dbbafc7f14176e3a [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
efiacorfde53362021-07-22 14:19:38 +010045image: onap/dmaap/datarouter-prov:2.1.9
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:
82 - baseaddr: "dmaapdrprov"
83 name: "dmaap-dr-prov"
84 port: 8443
85 config:
86 ssl: "redirect"
Fiachra Corcoranbe966552018-08-07 16:58:45 +010087
econwar28266fa2019-03-05 16:39:00 +000088config:
89 # dr provisioning server configuration
90 dmaapDrProv:
91 servicetype: NodePort
econwar28266fa2019-03-05 16:39:00 +000092 internalPort: 8080
93 internalPort2: 8443
94 portName: dr-prov-port
95 portName2: dr-prov-port2
96 nodePort: 59
97 nodePort2: 69
efiacor9ef176c2020-02-20 16:50:30 +000098 # dr uses the EELF Logging framework https://github.com/att/EELF
99 # and supports the following log levels: TRACE, DEBUG, INFO, WARN, ERROR, OFF
100 logLevel: "INFO"
101
econwar28266fa2019-03-05 16:39:00 +0000102# mariadb-galera configuration
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +0200103mariadb-galera:
104 nameOverride: &dbServer dmaap-dr-db
Sylvain Desbureaux85bc09f2021-06-21 16:11:39 +0200105 replicaCount: 1
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +0100106 db:
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +0200107 name: &mysqlDbName datarouter
108 user: datarouter
109 # password:
guillaume.lambert600dc982021-10-20 20:42:32 +0200110 externalSecret: *dbUserSecretName
econwar28266fa2019-03-05 16:39:00 +0000111 service:
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +0200112 name: *dbServer
econwar28266fa2019-03-05 16:39:00 +0000113 nfsprovisionerPrefix: dmaap-dr-db
114 persistence:
115 size: 1Gi
116 mountSubPath: data-router/dr-db-data
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +0100117 serviceAccount:
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +0200118 nameOverride: *dbServer
119
120mariadb-init:
121 config:
122 userCredentialsExternalSecret: *dbUserSecretName
123 mysqlDatabase: *mysqlDbName
124 nameOverride: dmaap-dr-mariadb-init
efiacore62958b2019-09-27 16:54:36 +0100125
Krzysztof Opasiak2df4a782020-05-08 22:50:24 +0200126#################################################################
127# AAF part
128#################################################################
129certInitializer:
130 nameOverride: dmaap-dr-prov-cert-initializer
efiacor6ca697d2020-03-06 16:30:05 +0000131 aafDeployFqi: deployer@people.osaaf.org
efiacore62958b2019-09-27 16:54:36 +0100132 aafDeployPass: demo123456!
Krzysztof Opasiak2df4a782020-05-08 22:50:24 +0200133# aafDeployCredsExternalSecret: some secret
efiacore62958b2019-09-27 16:54:36 +0100134 fqdn: dmaap-dr-prov
135 fqi: dmaap-dr-prov@dmaap-dr.onap.org
136 publicFqdn: dmaap-dr.onap.org
137 cadiLatitude: 0.0
138 cadiLongitude: 0.0
Krzysztof Opasiak2df4a782020-05-08 22:50:24 +0200139 app_ns: org.osaaf.aaf
140 credsPath: /opt/app/osaaf/local
141
efiacore62958b2019-09-27 16:54:36 +0100142
143# Resource Limit flavor -By Default using small
144flavor: small
rope252f2db5c12022-01-10 14:15:16 +0000145
146securityContext:
147 user_id: 1000
148 group_id: 1000
149
efiacore62958b2019-09-27 16:54:36 +0100150# Segregation for Different environment (Small and Large)
151resources:
152 small:
153 limits:
154 cpu: 2000m
155 memory: 4Gi
156 requests:
157 cpu: 500m
158 memory: 1Gi
159 large:
160 limits:
161 cpu: 4000m
162 memory: 8Gi
163 requests:
164 cpu: 1000m
165 memory: 2Gi
Krzysztof Opasiake55b4d52020-02-07 22:54:20 +0100166 unlimited: {}
farida azmy13388ba2021-03-17 11:33:28 +0200167
168#Pods Service Account
169serviceAccount:
170 nameOverride: dmaap-dr-prov
171 roles:
172 - read
Maciej Wereski9075b5c2021-11-04 14:01:26 +0000173
174#Log configuration
175log:
176 path: /var/log/onap