blob: 727051563a7b1a7beca2039e90ce3ec2a3efc94f [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# Copyright © 2017 Amdocs, Bell Canada
jhhd4258672020-08-09 12:08:08 -05002# Modifications Copyright © 2018-2020 AT&T Intellectual Property
efiacorab235f42023-02-15 11:51:52 +00003# Modifications Copyright (C) 2021-2023 Nordix Foundation.
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00004#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
mayankg2703ced85142018-03-20 05:42:53 +000017#################################################################
18# Global configuration defaults.
19#################################################################
20global:
jhhd4258672020-08-09 12:08:08 -050021 aafEnabled: true
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +010022 mariadb:
23 # '&mariadbConfig' means we "store" the values for later use in the file
24 # with '*mariadbConfig' pointer.
25 config: &mariadbConfig
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +010026 mysqlDatabase: policyadmin
27 service: &mariadbService
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010028 name: &policy-mariadb policy-mariadb
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +010029 internalPort: 3306
Rashmi Pujarec452b52022-04-21 12:29:14 -040030 prometheusEnabled: false
waynedunican368aced2022-02-15 08:27:57 +000031 postgres:
32 localCluster: false
33 service:
34 name: pgset
35 name2: tcp-pgset-primary
36 name3: tcp-pgset-replica
37 container:
38 name: postgres
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +010039 kafkaBootstrap: strimzi-kafka-bootstrap
40 policyKafkaUser: policy-kafka-user
mayankg2703ced85142018-03-20 05:42:53 +000041
42#################################################################
Krzysztof Opasiak98a79cc2020-04-01 22:33:58 +020043# Secrets metaconfig
44#################################################################
45secrets:
46 - uid: db-root-password
47 name: &dbRootPassSecretName '{{ include "common.release" . }}-policy-db-root-password'
48 type: password
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010049 externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "rootUser" "externalSecret")) .) (hasSuffix "policy-db-root-password" (index .Values "mariadb-galera" "rootUser" "externalSecret"))}}'
50 password: '{{ (index .Values "mariadb-galera" "rootUser" "password") }}'
Krzysztof Opasiak98a79cc2020-04-01 22:33:58 +020051 policy: generate
52 - uid: db-secret
53 name: &dbSecretName '{{ include "common.release" . }}-policy-db-secret'
54 type: basicAuth
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010055 externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "db" "externalSecret")) .) (hasSuffix "policy-db-secret" (index .Values "mariadb-galera" "db" "externalSecret"))}}'
56 login: '{{ index .Values "mariadb-galera" "db" "user" }}'
57 password: '{{ index .Values "mariadb-galera" "db" "password" }}'
Krzysztof Opasiak98a79cc2020-04-01 22:33:58 +020058 passwordPolicy: generate
saul.gill7124a4b2021-09-09 12:02:49 +010059 - uid: policy-app-user-creds
60 name: &policyAppCredsSecret '{{ include "common.release" . }}-policy-app-user-creds'
61 type: basicAuth
62 externalSecret: '{{ tpl (default "" .Values.config.policyAppUserExternalSecret) . }}'
63 login: '{{ .Values.config.policyAppUserName }}'
64 password: '{{ .Values.config.policyAppUserPassword }}'
65 passwordPolicy: generate
rameshiyer27ff176652021-09-21 15:19:05 +010066 - uid: policy-pap-user-creds
67 name: &policyPapCredsSecret '{{ include "common.release" . }}-policy-pap-user-creds'
68 type: basicAuth
69 externalSecret: '{{ tpl (default "" .Values.restServer.policyPapUserExternalSecret) . }}'
70 login: '{{ .Values.restServer.policyPapUserName }}'
71 password: '{{ .Values.restServer.policyPapUserPassword }}'
72 passwordPolicy: required
73 - uid: policy-api-user-creds
74 name: &policyApiCredsSecret '{{ include "common.release" . }}-policy-api-user-creds'
75 type: basicAuth
76 externalSecret: '{{ tpl (default "" .Values.restServer.policyApiUserExternalSecret) . }}'
77 login: '{{ .Values.restServer.policyApiUserName }}'
78 password: '{{ .Values.restServer.policyApiUserPassword }}'
79 passwordPolicy: required
waynedunican368aced2022-02-15 08:27:57 +000080 - uid: pg-root-pass
81 name: &pgRootPassSecretName '{{ include "common.release" . }}-policy-pg-root-pass'
82 type: password
83 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "policy-pg-root-pass" .Values.postgres.config.pgRootPasswordExternalSecret) }}'
84 password: '{{ .Values.postgres.config.pgRootpassword }}'
85 policy: generate
86 - uid: pg-user-creds
87 name: &pgUserCredsSecretName '{{ include "common.release" . }}-policy-pg-user-creds'
88 type: basicAuth
89 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "policy-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
90 login: '{{ .Values.postgres.config.pgUserName }}'
91 password: '{{ .Values.postgres.config.pgUserPassword }}'
92 passwordPolicy: generate
Krzysztof Opasiak98a79cc2020-04-01 22:33:58 +020093
jhhd4258672020-08-09 12:08:08 -050094db: &dbSecretsHook
95 credsExternalSecret: *dbSecretName
96
97policy-api:
98 enabled: true
99 db: *dbSecretsHook
rameshiyer27ff176652021-09-21 15:19:05 +0100100 restServer:
101 apiUserExternalSecret: *policyApiCredsSecret
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100102 config:
103 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
jhhd4258672020-08-09 12:08:08 -0500104policy-pap:
105 enabled: true
106 db: *dbSecretsHook
rameshiyer27ff176652021-09-21 15:19:05 +0100107 restServer:
108 papUserExternalSecret: *policyPapCredsSecret
109 apiUserExternalSecret: *policyApiCredsSecret
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100110 config:
111 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
jhhd4258672020-08-09 12:08:08 -0500112policy-xacml-pdp:
113 enabled: true
114 db: *dbSecretsHook
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100115 config:
116 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
jhhd4258672020-08-09 12:08:08 -0500117policy-apex-pdp:
118 enabled: true
119 db: *dbSecretsHook
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100120 config:
121 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
jhhd4258672020-08-09 12:08:08 -0500122policy-drools-pdp:
123 enabled: true
124 db: *dbSecretsHook
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100125 config:
126 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
jhhd4258672020-08-09 12:08:08 -0500127policy-distribution:
128 enabled: true
129 db: *dbSecretsHook
FrancescoFioraEst9c79e262022-02-22 13:12:19 +0000130policy-clamp-ac-k8s-ppnt:
rameshiyer2701b8cc02021-09-21 15:07:50 +0100131 enabled: true
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100132 config:
133 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
FrancescoFioraEst9c79e262022-02-22 13:12:19 +0000134policy-clamp-ac-pf-ppnt:
rameshiyer27ff176652021-09-21 15:19:05 +0100135 enabled: true
136 restServer:
137 apiUserExternalSecret: *policyApiCredsSecret
138 papUserExternalSecret: *policyPapCredsSecret
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100139 config:
140 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
FrancescoFioraEst9c79e262022-02-22 13:12:19 +0000141policy-clamp-ac-http-ppnt:
rameshiyer273c3402d2021-09-21 15:14:39 +0100142 enabled: true
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100143 config:
144 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
aravind.est8d728302022-12-07 12:26:28 +0000145policy-clamp-ac-a1pms-ppnt:
146 enabled: true
147 config:
148 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
jhhd4258672020-08-09 12:08:08 -0500149policy-nexus:
jhhbf8d8a92020-09-10 14:01:49 -0500150 enabled: false
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100151 config:
152 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
FrancescoFioraEst9c79e262022-02-22 13:12:19 +0000153policy-clamp-runtime-acm:
saul.gill7124a4b2021-09-09 12:02:49 +0100154 enabled: true
155 db: *dbSecretsHook
156 config:
157 appUserExternalSecret: *policyAppCredsSecret
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100158 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
ktimoneyb3aef7b2021-09-13 08:27:58 +0100159policy-gui:
amatthews736bf372021-12-14 16:04:15 +0000160 enabled: false
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100161 config:
162 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
jhhd4258672020-08-09 12:08:08 -0500163
Krzysztof Opasiak98a79cc2020-04-01 22:33:58 +0200164#################################################################
jhhd4258672020-08-09 12:08:08 -0500165# DB configuration defaults.
mayankg2703ced85142018-03-20 05:42:53 +0000166#################################################################
jhhd4258672020-08-09 12:08:08 -0500167
jhhd74fe9f2021-04-15 11:04:39 -0500168dbmigrator:
liamfalloncbb72812022-10-21 18:13:29 +0100169 image: onap/policy-db-migrator:2.5.1
jhhd74fe9f2021-04-15 11:04:39 -0500170 schema: policyadmin
171 policy_home: "/opt/app/policy"
172
mayankg2703ced85142018-03-20 05:42:53 +0000173subChartsOnly:
174 enabled: true
BorislavG5f3b6192018-03-25 18:12:38 +0300175
mayankg2703ced85142018-03-20 05:42:53 +0000176# flag to enable debugging - application support required
177debugEnabled: false
178
mayankg2703ced85142018-03-20 05:42:53 +0000179# default number of instances
180replicaCount: 1
181
182nodeSelector: {}
183
184affinity: {}
185
186# probe configuration parameters
187liveness:
188 initialDelaySeconds: 10
189 periodSeconds: 10
190 # necessary to disable liveness probe when setting breakpoints
191 # in debugger so K8s doesn't restart unresponsive container
192 enabled: true
193
194readiness:
195 initialDelaySeconds: 10
196 periodSeconds: 10
197
saul.gill7124a4b2021-09-09 12:02:49 +0100198
199config:
200 policyAppUserName: runtimeUser
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100201 useStrimziKafka: true
202 acRuntimeTopic:
203 name: policy-acruntime-participant
204 partitions: 10
205 retentionMs: 7200000
206 segmentBytes: 1073741824
207 consumer:
208 groupId: policy-group
209 policyPdpPapTopic:
210 name: policy-pdp-pap
211 partitions: 10
212 retentionMs: 7200000
213 segmentBytes: 1073741824
214 consumer:
215 groupId: policy-group
216 policyHeartbeatTopic:
217 name: policy-heartbeat
218 partitions: 10
219 retentionMs: 7200000
220 segmentBytes: 1073741824
221 consumer:
222 groupId: policy-group
223 policyNotificationTopic:
224 name: policy-notification
225 partitions: 10
226 retentionMs: 7200000
227 segmentBytes: 1073741824
228 consumer:
229 groupId: policy-group
Sirisha_Manchikantib402a592022-09-09 12:01:20 +0100230 someConfig: blah
saul.gill7124a4b2021-09-09 12:02:49 +0100231
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +0100232mariadb-galera:
233 # mariadb-galera.config and global.mariadb.config must be equals
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +0100234 db:
235 user: policy_user
236 # password:
237 externalSecret: *dbSecretName
238 name: &mysqlDbName policyadmin
239 rootUser:
240 externalSecret: *dbRootPassSecretName
241 nameOverride: *policy-mariadb
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +0100242 # mariadb-galera.service and global.mariadb.service must be equals
243 service: *mariadbService
244 replicaCount: 1
245 persistence:
246 enabled: true
247 mountSubPath: policy/maria/data
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +0100248 serviceAccount:
249 nameOverride: *policy-mariadb
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +0100250
waynedunican368aced2022-02-15 08:27:57 +0000251postgresImage: library/postgres:latest
252# application configuration override for postgres
253postgres:
254 nameOverride: &postgresName policy-postgres
255 service:
256 name: *postgresName
257 name2: policy-pg-primary
258 name3: policy-pg-replica
259 container:
260 name:
261 primary: policy-pg-primary
262 replica: policy-pg-replica
263 persistence:
264 mountSubPath: policy/postgres/data
265 mountInitPath: policy
266 config:
267 pgUserName: policy_user
268 pgDatabase: policyadmin
269 pgUserExternalSecret: *pgUserCredsSecretName
270 pgRootPasswordExternalSecret: *pgRootPassSecretName
271
272readinessCheck:
273 wait_for:
274 - '{{ ternary .Values.postgres.service.name "postgres" .Values.global.postgres.localCluster }}'
275
rameshiyer27ff176652021-09-21 15:19:05 +0100276restServer:
adheli.tavaresf3656cd2021-11-10 14:54:32 +0000277 policyPapUserName: policyadmin
rameshiyer27ff176652021-09-21 15:19:05 +0100278 policyPapUserPassword: zb!XztG34
adheli.tavaresf3656cd2021-11-10 14:54:32 +0000279 policyApiUserName: policyadmin
rameshiyer27ff176652021-09-21 15:19:05 +0100280 policyApiUserPassword: zb!XztG34
281
jhhbf8d8a92020-09-10 14:01:49 -0500282# Resource Limit flavor -By Default using small
283# Segregation for Different environment (small, large, or unlimited)
284flavor: small
285resources:
286 small:
287 limits:
288 cpu: 1
289 memory: 4Gi
290 requests:
291 cpu: 100m
292 memory: 1Gi
293 large:
294 limits:
295 cpu: 2
296 memory: 8Gi
297 requests:
298 cpu: 200m
299 memory: 2Gi
300 unlimited: {}
301
farida azmyc1178372021-04-11 12:55:33 +0200302#Pods Service Account
303serviceAccount:
304 nameOverride: policy
305 roles:
306 - read