blob: c13ba57c834b2756edb2a06216bf7c14a055071f [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
Andreas Geissler2c1ba292024-01-10 22:20:05 +010020 # flag to enable the DB creation via mariadb-operator
21 useOperator: true
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +020022 #This flag allows DMAAP-DR to instantiate its own mariadb-galera cluster
23 localCluster: false
Andreas Geissler576de2d2023-10-24 15:38:01 +020024 service: mariadb-galera
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +020025 internalPort: 3306
26 nameOverride: mariadb-galera
Fiachra Corcoranbe966552018-08-07 16:58:45 +010027
28#################################################################
Krzysztof Opasiake55b4d52020-02-07 22:54:20 +010029# Secrets metaconfig
30#################################################################
31secrets:
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +020032 - name: &dbUserSecretName '{{ include "common.release" . }}-dmaap-dr-db-user-credentials'
33 uid: 'dmaap-dr-db-user-credentials'
Krzysztof Opasiake55b4d52020-02-07 22:54:20 +010034 type: basicAuth
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +020035 externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "db" "externalSecret")) .) (hasSuffix "dmaap-dr-db-user-credentials" (index .Values "mariadb-galera" "db" "externalSecret"))}}'
36 login: '{{ index .Values "mariadb-galera" "db" "user" }}'
37 password: '{{ index .Values "mariadb-galera" "db" "password" }}'
Krzysztof Opasiake55b4d52020-02-07 22:54:20 +010038
39#################################################################
Fiachra Corcoranbe966552018-08-07 16:58:45 +010040# Application configuration defaults.
41#################################################################
42# application image
Jack Lucasffd944b2023-08-18 11:13:05 -040043image: onap/dmaap/datarouter-prov:2.1.15
Fiachra Corcoranbe966552018-08-07 16:58:45 +010044pullPolicy: Always
45
Fiachra Corcoranbe966552018-08-07 16:58:45 +010046# default number of instances
47replicaCount: 1
48
49nodeSelector: {}
50
51affinity: {}
52
efiacor2123fec2022-12-09 13:40:55 +000053containerPort: &svc_port 8080
Fiachra Corcoranbe966552018-08-07 16:58:45 +010054
efiacor2123fec2022-12-09 13:40:55 +000055service:
56 type: ClusterIP
57 name: dmaap-dr-prov
58 ports:
59 - name: &port http
60 port: *svc_port
efiacore62958b2019-09-27 16:54:36 +010061
Fiachra Corcoranbe966552018-08-07 16:58:45 +010062ingress:
63 enabled: false
Lucjan Bryndza554759c2019-11-27 15:02:14 +010064 service:
Andreas Geissler51900a92022-08-03 13:10:35 +020065 - baseaddr: "dmaap-dr-prov-api"
Lucjan Bryndza554759c2019-11-27 15:02:14 +010066 name: "dmaap-dr-prov"
efiacor2123fec2022-12-09 13:40:55 +000067 port: *svc_port
Lucjan Bryndza554759c2019-11-27 15:02:14 +010068 config:
69 ssl: "redirect"
Fiachra Corcoranbe966552018-08-07 16:58:45 +010070
efiacor2123fec2022-12-09 13:40:55 +000071readinessCheck:
72 wait_for:
73 jobs:
74 - '{{ include "common.release" . }}-dmaap-dr-mariadb-init-config-job'
75
76# dr uses the EELF Logging framework https://github.com/att/EELF
77# and supports the following log levels: TRACE, DEBUG, INFO, WARN, ERROR, OFF
78logLevel: "DEBUG"
79
80# probe configuration parameters
81liveness:
82 initialDelaySeconds: 60
83 periodSeconds: 10
84 # necessary to disable liveness probe when setting breakpoints
85 # in debugger so K8s doesn't restart unresponsive container
86 enabled: true
87 port: *svc_port
88
89readiness:
90 initialDelaySeconds: 60
91 periodSeconds: 10
92 port: *svc_port
efiacor9ef176c2020-02-20 16:50:30 +000093
econwar28266fa2019-03-05 16:39:00 +000094# mariadb-galera configuration
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +020095mariadb-galera:
96 nameOverride: &dbServer dmaap-dr-db
Sylvain Desbureaux85bc09f2021-06-21 16:11:39 +020097 replicaCount: 1
Andreas Geisslercfd84342023-08-16 17:18:49 +020098 mariadbOperator:
99 galera:
100 enabled: false
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +0100101 db:
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +0200102 name: &mysqlDbName datarouter
103 user: datarouter
104 # password:
guillaume.lambert600dc982021-10-20 20:42:32 +0200105 externalSecret: *dbUserSecretName
econwar28266fa2019-03-05 16:39:00 +0000106 service:
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +0200107 name: *dbServer
econwar28266fa2019-03-05 16:39:00 +0000108 nfsprovisionerPrefix: dmaap-dr-db
109 persistence:
110 size: 1Gi
111 mountSubPath: data-router/dr-db-data
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +0100112 serviceAccount:
Mahmoud Abdelhamid7fc530c2021-09-15 20:27:19 +0200113 nameOverride: *dbServer
114
115mariadb-init:
116 config:
117 userCredentialsExternalSecret: *dbUserSecretName
118 mysqlDatabase: *mysqlDbName
119 nameOverride: dmaap-dr-mariadb-init
vladimir turokd8044182023-07-27 16:28:36 +0200120 serviceAccount:
121 nameOverride: dmaap-dr-mariadb-init
efiacore62958b2019-09-27 16:54:36 +0100122
efiacore62958b2019-09-27 16:54:36 +0100123# Resource Limit flavor -By Default using small
124flavor: small
rope252f2db5c12022-01-10 14:15:16 +0000125
efiacore62958b2019-09-27 16:54:36 +0100126# Segregation for Different environment (Small and Large)
127resources:
128 small:
129 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100130 cpu: "1"
131 memory: "1Gi"
efiacore62958b2019-09-27 16:54:36 +0100132 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100133 cpu: "0.5"
134 memory: "1Gi"
efiacore62958b2019-09-27 16:54:36 +0100135 large:
136 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100137 cpu: "2"
138 memory: "2Gi"
efiacore62958b2019-09-27 16:54:36 +0100139 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100140 cpu: "1"
141 memory: "2Gi"
Krzysztof Opasiake55b4d52020-02-07 22:54:20 +0100142 unlimited: {}
farida azmy13388ba2021-03-17 11:33:28 +0200143
efiacor2123fec2022-12-09 13:40:55 +0000144#Pods Security Context
145securityContext:
146 user_id: 1000
147 group_id: 1000
148
farida azmy13388ba2021-03-17 11:33:28 +0200149#Pods Service Account
150serviceAccount:
151 nameOverride: dmaap-dr-prov
152 roles:
153 - read