blob: 5d8c5e2691455bff011bb5209e52ca292c551513 [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:
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +020019 mariadbGalera: &mariadbGalera
20 #This flag allows DMAAP-DR to instantiate its own mariadb-galera cluster
21 localCluster: false
Andreas Geisslercfd84342023-08-16 17:18:49 +020022 service: mariadb-galera-primary
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +020023 internalPort: 3306
24 nameOverride: mariadb-galera
Fiachra Corcoranbe966552018-08-07 16:58:45 +010025
26#################################################################
Krzysztof Opasiake55b4d52020-02-07 22:54:20 +010027# Secrets metaconfig
28#################################################################
29secrets:
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +020030 - name: &dbUserSecretName '{{ include "common.release" . }}-dmaap-dr-db-user-credentials'
31 uid: 'dmaap-dr-db-user-credentials'
Krzysztof Opasiake55b4d52020-02-07 22:54:20 +010032 type: basicAuth
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +020033 externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "db" "externalSecret")) .) (hasSuffix "dmaap-dr-db-user-credentials" (index .Values "mariadb-galera" "db" "externalSecret"))}}'
34 login: '{{ index .Values "mariadb-galera" "db" "user" }}'
35 password: '{{ index .Values "mariadb-galera" "db" "password" }}'
Krzysztof Opasiake55b4d52020-02-07 22:54:20 +010036
37#################################################################
Fiachra Corcoranbe966552018-08-07 16:58:45 +010038# Application configuration defaults.
39#################################################################
40# application image
Jack Lucasffd944b2023-08-18 11:13:05 -040041image: onap/dmaap/datarouter-prov:2.1.15
Fiachra Corcoranbe966552018-08-07 16:58:45 +010042pullPolicy: Always
43
Fiachra Corcoranbe966552018-08-07 16:58:45 +010044# default number of instances
45replicaCount: 1
46
47nodeSelector: {}
48
49affinity: {}
50
efiacor2123fec2022-12-09 13:40:55 +000051containerPort: &svc_port 8080
Fiachra Corcoranbe966552018-08-07 16:58:45 +010052
efiacor2123fec2022-12-09 13:40:55 +000053service:
54 type: ClusterIP
55 name: dmaap-dr-prov
56 ports:
57 - name: &port http
58 port: *svc_port
efiacore62958b2019-09-27 16:54:36 +010059
Fiachra Corcoranbe966552018-08-07 16:58:45 +010060ingress:
61 enabled: false
Lucjan Bryndza554759c2019-11-27 15:02:14 +010062 service:
Andreas Geissler51900a92022-08-03 13:10:35 +020063 - baseaddr: "dmaap-dr-prov-api"
Lucjan Bryndza554759c2019-11-27 15:02:14 +010064 name: "dmaap-dr-prov"
efiacor2123fec2022-12-09 13:40:55 +000065 port: *svc_port
Lucjan Bryndza554759c2019-11-27 15:02:14 +010066 config:
67 ssl: "redirect"
Fiachra Corcoranbe966552018-08-07 16:58:45 +010068
efiacor2123fec2022-12-09 13:40:55 +000069readinessCheck:
70 wait_for:
71 jobs:
72 - '{{ include "common.release" . }}-dmaap-dr-mariadb-init-config-job'
73
74# dr uses the EELF Logging framework https://github.com/att/EELF
75# and supports the following log levels: TRACE, DEBUG, INFO, WARN, ERROR, OFF
76logLevel: "DEBUG"
77
78# probe configuration parameters
79liveness:
80 initialDelaySeconds: 60
81 periodSeconds: 10
82 # necessary to disable liveness probe when setting breakpoints
83 # in debugger so K8s doesn't restart unresponsive container
84 enabled: true
85 port: *svc_port
86
87readiness:
88 initialDelaySeconds: 60
89 periodSeconds: 10
90 port: *svc_port
efiacor9ef176c2020-02-20 16:50:30 +000091
econwar28266fa2019-03-05 16:39:00 +000092# mariadb-galera configuration
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +020093mariadb-galera:
94 nameOverride: &dbServer dmaap-dr-db
Sylvain Desbureaux85bc09f2021-06-21 16:11:39 +020095 replicaCount: 1
Andreas Geisslercfd84342023-08-16 17:18:49 +020096 mariadbOperator:
97 galera:
98 enabled: false
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010099 db:
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +0200100 name: &mysqlDbName datarouter
101 user: datarouter
102 # password:
guillaume.lambert600dc982021-10-20 20:42:32 +0200103 externalSecret: *dbUserSecretName
econwar28266fa2019-03-05 16:39:00 +0000104 service:
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +0200105 name: *dbServer
econwar28266fa2019-03-05 16:39:00 +0000106 nfsprovisionerPrefix: dmaap-dr-db
107 persistence:
108 size: 1Gi
109 mountSubPath: data-router/dr-db-data
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +0100110 serviceAccount:
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +0200111 nameOverride: *dbServer
112
113mariadb-init:
114 config:
115 userCredentialsExternalSecret: *dbUserSecretName
116 mysqlDatabase: *mysqlDbName
117 nameOverride: dmaap-dr-mariadb-init
vladimir turokd8044182023-07-27 16:28:36 +0200118 serviceAccount:
119 nameOverride: dmaap-dr-mariadb-init
efiacore62958b2019-09-27 16:54:36 +0100120
efiacore62958b2019-09-27 16:54:36 +0100121# Resource Limit flavor -By Default using small
122flavor: small
rope252f2db5c12022-01-10 14:15:16 +0000123
efiacore62958b2019-09-27 16:54:36 +0100124# Segregation for Different environment (Small and Large)
125resources:
126 small:
127 limits:
vladimir turokdb8167b2023-09-20 11:09:21 +0200128 cpu: 1
Andreas Geissler555db9c2023-06-20 11:38:39 +0200129 memory: 1Gi
efiacore62958b2019-09-27 16:54:36 +0100130 requests:
Andreas Geissler555db9c2023-06-20 11:38:39 +0200131 cpu: 0.5
efiacore62958b2019-09-27 16:54:36 +0100132 memory: 1Gi
133 large:
134 limits:
vladimir turokdb8167b2023-09-20 11:09:21 +0200135 cpu: 2
Andreas Geissler555db9c2023-06-20 11:38:39 +0200136 memory: 2Gi
efiacore62958b2019-09-27 16:54:36 +0100137 requests:
Andreas Geissler555db9c2023-06-20 11:38:39 +0200138 cpu: 1
efiacore62958b2019-09-27 16:54:36 +0100139 memory: 2Gi
Krzysztof Opasiake55b4d52020-02-07 22:54:20 +0100140 unlimited: {}
farida azmy13388ba2021-03-17 11:33:28 +0200141
efiacor2123fec2022-12-09 13:40:55 +0000142#Pods Security Context
143securityContext:
144 user_id: 1000
145 group_id: 1000
146
farida azmy13388ba2021-03-17 11:33:28 +0200147#Pods Service Account
148serviceAccount:
149 nameOverride: dmaap-dr-prov
150 roles:
151 - read