1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018-2020 AT&T Intellectual Property
3 # Modifications Copyright (C) 2021-2022 Nordix Foundation.
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
9 # http://www.apache.org/licenses/LICENSE-2.0
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.
17 #################################################################
18 # Global configuration defaults.
19 #################################################################
23 # '&mariadbConfig' means we "store" the values for later use in the file
24 # with '*mariadbConfig' pointer.
25 config: &mariadbConfig
26 mysqlDatabase: policyadmin
27 service: &mariadbService
28 name: &policy-mariadb policy-mariadb
30 prometheusEnabled: false
35 name2: tcp-pgset-primary
36 name3: tcp-pgset-replica
39 kafkaBootstrap: strimzi-kafka-bootstrap
40 policyKafkaUser: policy-kafka-user
42 #################################################################
44 #################################################################
46 - uid: db-root-password
47 name: &dbRootPassSecretName '{{ include "common.release" . }}-policy-db-root-password'
49 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") }}'
53 name: &dbSecretName '{{ include "common.release" . }}-policy-db-secret'
55 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" }}'
58 passwordPolicy: generate
59 - uid: policy-app-user-creds
60 name: &policyAppCredsSecret '{{ include "common.release" . }}-policy-app-user-creds'
62 externalSecret: '{{ tpl (default "" .Values.config.policyAppUserExternalSecret) . }}'
63 login: '{{ .Values.config.policyAppUserName }}'
64 password: '{{ .Values.config.policyAppUserPassword }}'
65 passwordPolicy: generate
66 - uid: policy-pap-user-creds
67 name: &policyPapCredsSecret '{{ include "common.release" . }}-policy-pap-user-creds'
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'
76 externalSecret: '{{ tpl (default "" .Values.restServer.policyApiUserExternalSecret) . }}'
77 login: '{{ .Values.restServer.policyApiUserName }}'
78 password: '{{ .Values.restServer.policyApiUserPassword }}'
79 passwordPolicy: required
81 name: &pgRootPassSecretName '{{ include "common.release" . }}-policy-pg-root-pass'
83 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "policy-pg-root-pass" .Values.postgres.config.pgRootPasswordExternalSecret) }}'
84 password: '{{ .Values.postgres.config.pgRootpassword }}'
87 name: &pgUserCredsSecretName '{{ include "common.release" . }}-policy-pg-user-creds'
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
95 credsExternalSecret: *dbSecretName
101 apiUserExternalSecret: *policyApiCredsSecret
103 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
108 papUserExternalSecret: *policyPapCredsSecret
109 apiUserExternalSecret: *policyApiCredsSecret
111 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
116 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
121 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
126 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
131 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
132 policy-clamp-ac-k8s-ppnt:
135 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
136 policy-clamp-ac-pf-ppnt:
139 apiUserExternalSecret: *policyApiCredsSecret
140 papUserExternalSecret: *policyPapCredsSecret
142 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
143 policy-clamp-ac-http-ppnt:
146 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
147 policy-clamp-ac-a1pms-ppnt:
150 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
154 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
155 policy-clamp-runtime-acm:
159 appUserExternalSecret: *policyAppCredsSecret
160 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
164 jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}'
166 #################################################################
167 # DB configuration defaults.
168 #################################################################
170 repository: nexus3.onap.org:10001
174 image: mariadb:10.5.8
177 image: onap/policy-db-migrator:2.5.1
179 policy_home: "/opt/app/policy"
184 # flag to enable debugging - application support required
187 # default number of instances
194 # probe configuration parameters
196 initialDelaySeconds: 10
198 # necessary to disable liveness probe when setting breakpoints
199 # in debugger so K8s doesn't restart unresponsive container
203 initialDelaySeconds: 10
208 policyAppUserName: runtimeUser
209 useStrimziKafka: true
211 name: policy-acruntime-participant
214 segmentBytes: 1073741824
216 groupId: policy-group
221 segmentBytes: 1073741824
223 groupId: policy-group
224 policyHeartbeatTopic:
225 name: policy-heartbeat
228 segmentBytes: 1073741824
230 groupId: policy-group
231 policyNotificationTopic:
232 name: policy-notification
235 segmentBytes: 1073741824
237 groupId: policy-group
241 # mariadb-galera.config and global.mariadb.config must be equals
245 externalSecret: *dbSecretName
246 name: &mysqlDbName policyadmin
248 externalSecret: *dbRootPassSecretName
249 nameOverride: *policy-mariadb
250 # mariadb-galera.service and global.mariadb.service must be equals
251 service: *mariadbService
255 mountSubPath: policy/maria/data
257 nameOverride: *policy-mariadb
259 postgresImage: library/postgres:latest
260 # application configuration override for postgres
262 nameOverride: &postgresName policy-postgres
265 name2: policy-pg-primary
266 name3: policy-pg-replica
269 primary: policy-pg-primary
270 replica: policy-pg-replica
272 mountSubPath: policy/postgres/data
273 mountInitPath: policy
275 pgUserName: policy_user
276 pgDatabase: policyadmin
277 pgUserExternalSecret: *pgUserCredsSecretName
278 pgRootPasswordExternalSecret: *pgRootPassSecretName
282 - '{{ ternary .Values.postgres.service.name "postgres" .Values.global.postgres.localCluster }}'
285 policyPapUserName: policyadmin
286 policyPapUserPassword: zb!XztG34
287 policyApiUserName: policyadmin
288 policyApiUserPassword: zb!XztG34
290 # Resource Limit flavor -By Default using small
291 # Segregation for Different environment (small, large, or unlimited)
310 #Pods Service Account