blob: 1e234242ee33de51f23c0671089bb0e3f8558944 [file] [log] [blame]
Dominic Lunanuovae825fee2018-04-12 14:40:34 +00001# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
Durgpal7ad40692018-08-03 07:28:36 +00002# Modifications Copyright © 2018 Amdocs,Bell Canada
Dominic Lunanuovae825fee2018-04-12 14:40:34 +00003#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16#################################################################
17# Global configuration defaults.
18#################################################################
19global:
efiacor2123fec2022-12-09 13:40:55 +000020 persistence: {}
Krzysztof Opasiak03a125a2020-05-05 02:11:09 +020021
efiacor2123fec2022-12-09 13:40:55 +000022#################################################################
23# Secrets metaconfig
24#################################################################
Krzysztof Opasiak03a125a2020-05-05 02:11:09 +020025secrets:
26 - uid: pg-root-pass
27 name: &pgRootPassSecretName '{{ include "common.release" . }}-dmaap-bc-pg-root-pass'
28 type: password
29 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "dmaap-bc-pg-root-pass" .Values.postgres.config.pgRootPasswordExternalSecret) }}'
30 password: '{{ .Values.postgres.config.pgRootpassword }}'
31 policy: generate
32 - uid: pg-user-creds
33 name: &pgUserCredsSecretName '{{ include "common.release" . }}-dmaap-bc-pg-user-creds'
34 type: basicAuth
35 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "dmaap-bc-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
36 login: '{{ .Values.postgres.config.pgUserName }}'
37 password: '{{ .Values.postgres.config.pgUserPassword }}'
38 passwordPolicy: generate
Dominic Lunanuovae825fee2018-04-12 14:40:34 +000039
40#################################################################
41# Application configuration defaults.
42#################################################################
efiacor2123fec2022-12-09 13:40:55 +000043# application images
44image: onap/dmaap/dmaap-bc:2.0.11
Dominic Lunanuovae825fee2018-04-12 14:40:34 +000045pullPolicy: Always
46
efiacor2123fec2022-12-09 13:40:55 +000047#DMaaP Bus Controller client image for provisioning at deploy time
48dbcClientImage: onap/dmaap/dbc-client:2.0.11
Dominic Lunanuovae825fee2018-04-12 14:40:34 +000049
50# application configuration
efiacor2123fec2022-12-09 13:40:55 +000051dmaapMessageRouterService: &mr_name message-router
52dmaapDataRouterProvService: &dr_prov_name dmaap-dr-prov
53dmaapDataRouterNodeService: &dr_node_name dmaap-dr-node
dglFromAttfb58a9d2019-04-12 20:12:26 +000054
Dominic Lunanuovae825fee2018-04-12 14:40:34 +000055nodeSelector: {}
56
57affinity: {}
58
efiacor2123fec2022-12-09 13:40:55 +000059containerPort: &svc_port 8080
60
61service:
62 type: ClusterIP
63 name: &svc_name dmaap-bc
64 ports:
65 - name: &port http
66 port: *svc_port
67
68ingress:
69 enabled: false
70 service:
71 - baseaddr: "dmaap-bc-api"
72 name: *svc_name
73 port: *svc_port
74 config:
75 ssl: "redirect"
76
Dominic Lunanuovae825fee2018-04-12 14:40:34 +000077# probe configuration parameters
78liveness:
79 initialDelaySeconds: 10
80 periodSeconds: 10
81 # necessary to disable liveness probe when setting breakpoints
82 # in debugger so K8s doesn't restart unresponsive container
efiacor2123fec2022-12-09 13:40:55 +000083 port: *svc_port
Sylvain Desbureaux0de113e2020-03-10 09:57:25 +010084 enabled: true
Dominic Lunanuovae825fee2018-04-12 14:40:34 +000085
86readiness:
87 initialDelaySeconds: 10
88 periodSeconds: 10
efiacor2123fec2022-12-09 13:40:55 +000089 port: *svc_port
Dominic Lunanuovae825fee2018-04-12 14:40:34 +000090
efiacor2123fec2022-12-09 13:40:55 +000091usePostgres: &use_pg true
Dominic Lunanuovae825fee2018-04-12 14:40:34 +000092
Dominic Lunanuovae825fee2018-04-12 14:40:34 +000093postgres:
efiacor2123fec2022-12-09 13:40:55 +000094# For Dev deployments, use in memory DB
95# postgres
96# enabled: false
97 enabled: true
98 nameOverride: &pg_name dbc-postgres
Dominic Lunanuovae825fee2018-04-12 14:40:34 +000099 service:
efiacor2123fec2022-12-09 13:40:55 +0000100 name: *pg_name
Dominic Lunanuova1ba2b252018-04-30 19:01:31 +0000101 name2: dbc-pg-primary
102 name3: dbc-pg-replica
Dominic Lunanuovae825fee2018-04-12 14:40:34 +0000103 container:
104 name:
Dominic Lunanuova1ba2b252018-04-30 19:01:31 +0000105 primary: dbc-pg-primary
106 replica: dbc-pg-replica
Dominic Lunanuovae825fee2018-04-12 14:40:34 +0000107 config:
108 pgUserName: dmaap_admin
109 pgDatabase: dmaap
Krzysztof Opasiak03a125a2020-05-05 02:11:09 +0200110 pgUserExternalSecret: *pgUserCredsSecretName
111 pgRootPasswordExternalSecret: *pgRootPassSecretName
Dominic Lunanuova1ba2b252018-04-30 19:01:31 +0000112 persistence:
113 mountSubPath: dbc/data
114 mountInitPath: dbc
Dominic Lunanuovae825fee2018-04-12 14:40:34 +0000115
Prateekinlinux9f5dc042018-09-20 14:08:54 +0000116# Resource Limit flavor -By Default using small
117flavor: small
rope252f2db5c12022-01-10 14:15:16 +0000118
Prateekinlinux9f5dc042018-09-20 14:08:54 +0000119# Segregation for Different environment (Small and Large)
120resources:
121 small:
122 limits:
123 cpu: 2
124 memory: 4Gi
125 requests:
126 cpu: 1
127 memory: 1Gi
128 large:
129 limits:
130 cpu: 4
131 memory: 8Gi
132 requests:
133 cpu: 2
134 memory: 2Gi
135 unlimited: {}
farida azmy13388ba2021-03-17 11:33:28 +0200136
efiacor2123fec2022-12-09 13:40:55 +0000137securityContext:
138 user_id: 1000
139 group_id: 101
140
farida azmy13388ba2021-03-17 11:33:28 +0200141#Pods Service Account
142serviceAccount:
efiacor2123fec2022-12-09 13:40:55 +0000143 nameOverride: *svc_name
farida azmy13388ba2021-03-17 11:33:28 +0200144 roles:
145 - read
Andreas Geissler0d5c9172022-04-19 18:10:52 +0200146
efiacor2123fec2022-12-09 13:40:55 +0000147readinessCheck:
148 wait_for:
149 - *mr_name
150 - *dr_node_name
151
Andreas Geissler0d5c9172022-04-19 18:10:52 +0200152wait_for_job_container:
153 containers:
efiacor2123fec2022-12-09 13:40:55 +0000154 - 'dmaap-provisioning-job'