blob: c9e236a65c42ead6d9df3d9704441be5f61a2344 [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
FrancescoFioraEst9c79e262022-02-22 13:12:19 +00003# Modifications Copyright (C) 2021-2022 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
efiacor3f7b3752022-11-28 10:38:56 +000041 policyDistKafkaUser: policy-dist-kafka-user
mayankg2703ced85142018-03-20 05:42:53 +000042
43#################################################################
Krzysztof Opasiak98a79cc2020-04-01 22:33:58 +020044# Secrets metaconfig
45#################################################################
46secrets:
47 - uid: db-root-password
48 name: &dbRootPassSecretName '{{ include "common.release" . }}-policy-db-root-password'
49 type: password
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010050 externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "rootUser" "externalSecret")) .) (hasSuffix "policy-db-root-password" (index .Values "mariadb-galera" "rootUser" "externalSecret"))}}'
51 password: '{{ (index .Values "mariadb-galera" "rootUser" "password") }}'
Krzysztof Opasiak98a79cc2020-04-01 22:33:58 +020052 policy: generate
53 - uid: db-secret
54 name: &dbSecretName '{{ include "common.release" . }}-policy-db-secret'
55 type: basicAuth
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010056 externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "db" "externalSecret")) .) (hasSuffix "policy-db-secret" (index .Values "mariadb-galera" "db" "externalSecret"))}}'
57 login: '{{ index .Values "mariadb-galera" "db" "user" }}'
58 password: '{{ index .Values "mariadb-galera" "db" "password" }}'
Krzysztof Opasiak98a79cc2020-04-01 22:33:58 +020059 passwordPolicy: generate
saul.gill7124a4b2021-09-09 12:02:49 +010060 - uid: policy-app-user-creds
61 name: &policyAppCredsSecret '{{ include "common.release" . }}-policy-app-user-creds'
62 type: basicAuth
63 externalSecret: '{{ tpl (default "" .Values.config.policyAppUserExternalSecret) . }}'
64 login: '{{ .Values.config.policyAppUserName }}'
65 password: '{{ .Values.config.policyAppUserPassword }}'
66 passwordPolicy: generate
rameshiyer27ff176652021-09-21 15:19:05 +010067 - uid: policy-pap-user-creds
68 name: &policyPapCredsSecret '{{ include "common.release" . }}-policy-pap-user-creds'
69 type: basicAuth
70 externalSecret: '{{ tpl (default "" .Values.restServer.policyPapUserExternalSecret) . }}'
71 login: '{{ .Values.restServer.policyPapUserName }}'
72 password: '{{ .Values.restServer.policyPapUserPassword }}'
73 passwordPolicy: required
74 - uid: policy-api-user-creds
75 name: &policyApiCredsSecret '{{ include "common.release" . }}-policy-api-user-creds'
76 type: basicAuth
77 externalSecret: '{{ tpl (default "" .Values.restServer.policyApiUserExternalSecret) . }}'
78 login: '{{ .Values.restServer.policyApiUserName }}'
79 password: '{{ .Values.restServer.policyApiUserPassword }}'
80 passwordPolicy: required
waynedunican368aced2022-02-15 08:27:57 +000081 - uid: pg-root-pass
82 name: &pgRootPassSecretName '{{ include "common.release" . }}-policy-pg-root-pass'
83 type: password
84 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "policy-pg-root-pass" .Values.postgres.config.pgRootPasswordExternalSecret) }}'
85 password: '{{ .Values.postgres.config.pgRootpassword }}'
86 policy: generate
87 - uid: pg-user-creds
88 name: &pgUserCredsSecretName '{{ include "common.release" . }}-policy-pg-user-creds'
89 type: basicAuth
90 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "policy-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
91 login: '{{ .Values.postgres.config.pgUserName }}'
92 password: '{{ .Values.postgres.config.pgUserPassword }}'
93 passwordPolicy: generate
Krzysztof Opasiak98a79cc2020-04-01 22:33:58 +020094
jhhd4258672020-08-09 12:08:08 -050095db: &dbSecretsHook
96 credsExternalSecret: *dbSecretName
97
98policy-api:
99 enabled: true
100 db: *dbSecretsHook
rameshiyer27ff176652021-09-21 15:19:05 +0100101 restServer:
102 apiUserExternalSecret: *policyApiCredsSecret
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100103 config:
104 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
jhhd4258672020-08-09 12:08:08 -0500105policy-pap:
106 enabled: true
107 db: *dbSecretsHook
rameshiyer27ff176652021-09-21 15:19:05 +0100108 restServer:
109 papUserExternalSecret: *policyPapCredsSecret
110 apiUserExternalSecret: *policyApiCredsSecret
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100111 config:
112 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
jhhd4258672020-08-09 12:08:08 -0500113policy-xacml-pdp:
114 enabled: true
115 db: *dbSecretsHook
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100116 config:
117 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
jhhd4258672020-08-09 12:08:08 -0500118policy-apex-pdp:
119 enabled: true
120 db: *dbSecretsHook
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100121 config:
122 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
jhhd4258672020-08-09 12:08:08 -0500123policy-drools-pdp:
124 enabled: true
125 db: *dbSecretsHook
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100126 config:
127 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
jhhd4258672020-08-09 12:08:08 -0500128policy-distribution:
129 enabled: true
130 db: *dbSecretsHook
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100131 config:
efiacor3f7b3752022-11-28 10:38:56 +0000132 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyDistKafkaUser }}'
FrancescoFioraEst9c79e262022-02-22 13:12:19 +0000133policy-clamp-ac-k8s-ppnt:
rameshiyer2701b8cc02021-09-21 15:07:50 +0100134 enabled: true
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100135 config:
136 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
FrancescoFioraEst9c79e262022-02-22 13:12:19 +0000137policy-clamp-ac-pf-ppnt:
rameshiyer27ff176652021-09-21 15:19:05 +0100138 enabled: true
139 restServer:
140 apiUserExternalSecret: *policyApiCredsSecret
141 papUserExternalSecret: *policyPapCredsSecret
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100142 config:
143 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
FrancescoFioraEst9c79e262022-02-22 13:12:19 +0000144policy-clamp-ac-http-ppnt:
rameshiyer273c3402d2021-09-21 15:14:39 +0100145 enabled: true
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100146 config:
147 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
aravind.est8d728302022-12-07 12:26:28 +0000148policy-clamp-ac-a1pms-ppnt:
149 enabled: true
150 config:
151 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
jhhd4258672020-08-09 12:08:08 -0500152policy-nexus:
jhhbf8d8a92020-09-10 14:01:49 -0500153 enabled: false
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100154 config:
155 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
FrancescoFioraEst9c79e262022-02-22 13:12:19 +0000156policy-clamp-runtime-acm:
saul.gill7124a4b2021-09-09 12:02:49 +0100157 enabled: true
158 db: *dbSecretsHook
159 config:
160 appUserExternalSecret: *policyAppCredsSecret
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100161 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
ktimoneyb3aef7b2021-09-13 08:27:58 +0100162policy-gui:
amatthews736bf372021-12-14 16:04:15 +0000163 enabled: false
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100164 config:
165 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
jhhd4258672020-08-09 12:08:08 -0500166
Krzysztof Opasiak98a79cc2020-04-01 22:33:58 +0200167#################################################################
jhhd4258672020-08-09 12:08:08 -0500168# DB configuration defaults.
mayankg2703ced85142018-03-20 05:42:53 +0000169#################################################################
jhhd4258672020-08-09 12:08:08 -0500170
mayankg2703ced85142018-03-20 05:42:53 +0000171repository: nexus3.onap.org:10001
kerenj3b697f62017-08-23 11:21:21 +0000172pullPolicy: Always
Alexis de Talhouëtdf4db0b2017-12-11 08:36:25 -0500173
Sylvain Desbureaux7c8c6862020-11-19 18:02:37 +0100174mariadb:
175 image: mariadb:10.5.8
176
jhhd74fe9f2021-04-15 11:04:39 -0500177dbmigrator:
liamfalloncbb72812022-10-21 18:13:29 +0100178 image: onap/policy-db-migrator:2.5.1
jhhd74fe9f2021-04-15 11:04:39 -0500179 schema: policyadmin
180 policy_home: "/opt/app/policy"
181
mayankg2703ced85142018-03-20 05:42:53 +0000182subChartsOnly:
183 enabled: true
BorislavG5f3b6192018-03-25 18:12:38 +0300184
mayankg2703ced85142018-03-20 05:42:53 +0000185# flag to enable debugging - application support required
186debugEnabled: false
187
mayankg2703ced85142018-03-20 05:42:53 +0000188# default number of instances
189replicaCount: 1
190
191nodeSelector: {}
192
193affinity: {}
194
195# probe configuration parameters
196liveness:
197 initialDelaySeconds: 10
198 periodSeconds: 10
199 # necessary to disable liveness probe when setting breakpoints
200 # in debugger so K8s doesn't restart unresponsive container
201 enabled: true
202
203readiness:
204 initialDelaySeconds: 10
205 periodSeconds: 10
206
saul.gill7124a4b2021-09-09 12:02:49 +0100207
208config:
209 policyAppUserName: runtimeUser
Sirisha_Manchikanti73c5f002022-07-25 17:04:45 +0100210 useStrimziKafka: true
211 acRuntimeTopic:
212 name: policy-acruntime-participant
213 partitions: 10
214 retentionMs: 7200000
215 segmentBytes: 1073741824
216 consumer:
217 groupId: policy-group
218 policyPdpPapTopic:
219 name: policy-pdp-pap
220 partitions: 10
221 retentionMs: 7200000
222 segmentBytes: 1073741824
223 consumer:
224 groupId: policy-group
225 policyHeartbeatTopic:
226 name: policy-heartbeat
227 partitions: 10
228 retentionMs: 7200000
229 segmentBytes: 1073741824
230 consumer:
231 groupId: policy-group
232 policyNotificationTopic:
233 name: policy-notification
234 partitions: 10
235 retentionMs: 7200000
236 segmentBytes: 1073741824
237 consumer:
238 groupId: policy-group
Sirisha_Manchikantib402a592022-09-09 12:01:20 +0100239 someConfig: blah
saul.gill7124a4b2021-09-09 12:02:49 +0100240
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +0100241mariadb-galera:
242 # mariadb-galera.config and global.mariadb.config must be equals
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +0100243 db:
244 user: policy_user
245 # password:
246 externalSecret: *dbSecretName
247 name: &mysqlDbName policyadmin
248 rootUser:
249 externalSecret: *dbRootPassSecretName
250 nameOverride: *policy-mariadb
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +0100251 # mariadb-galera.service and global.mariadb.service must be equals
252 service: *mariadbService
253 replicaCount: 1
254 persistence:
255 enabled: true
256 mountSubPath: policy/maria/data
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +0100257 serviceAccount:
258 nameOverride: *policy-mariadb
Sylvain Desbureaux4898dc02019-11-14 13:35:13 +0100259
waynedunican368aced2022-02-15 08:27:57 +0000260postgresImage: library/postgres:latest
261# application configuration override for postgres
262postgres:
263 nameOverride: &postgresName policy-postgres
264 service:
265 name: *postgresName
266 name2: policy-pg-primary
267 name3: policy-pg-replica
268 container:
269 name:
270 primary: policy-pg-primary
271 replica: policy-pg-replica
272 persistence:
273 mountSubPath: policy/postgres/data
274 mountInitPath: policy
275 config:
276 pgUserName: policy_user
277 pgDatabase: policyadmin
278 pgUserExternalSecret: *pgUserCredsSecretName
279 pgRootPasswordExternalSecret: *pgRootPassSecretName
280
281readinessCheck:
282 wait_for:
283 - '{{ ternary .Values.postgres.service.name "postgres" .Values.global.postgres.localCluster }}'
284
rameshiyer27ff176652021-09-21 15:19:05 +0100285restServer:
adheli.tavaresf3656cd2021-11-10 14:54:32 +0000286 policyPapUserName: policyadmin
rameshiyer27ff176652021-09-21 15:19:05 +0100287 policyPapUserPassword: zb!XztG34
adheli.tavaresf3656cd2021-11-10 14:54:32 +0000288 policyApiUserName: policyadmin
rameshiyer27ff176652021-09-21 15:19:05 +0100289 policyApiUserPassword: zb!XztG34
290
jhhbf8d8a92020-09-10 14:01:49 -0500291# Resource Limit flavor -By Default using small
292# Segregation for Different environment (small, large, or unlimited)
293flavor: small
294resources:
295 small:
296 limits:
297 cpu: 1
298 memory: 4Gi
299 requests:
300 cpu: 100m
301 memory: 1Gi
302 large:
303 limits:
304 cpu: 2
305 memory: 8Gi
306 requests:
307 cpu: 200m
308 memory: 2Gi
309 unlimited: {}
310
farida azmyc1178372021-04-11 12:55:33 +0200311#Pods Service Account
312serviceAccount:
313 nameOverride: policy
314 roles:
315 - read