vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 2 | # Modifications Copyright © 2018-2020 AT&T Intellectual Property |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 3 | # Modifications Copyright (C) 2021-2022 Nordix Foundation. |
vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 4 | # |
| 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 | |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 17 | ################################################################# |
| 18 | # Global configuration defaults. |
| 19 | ################################################################# |
| 20 | global: |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 21 | aafEnabled: true |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 22 | mariadb: |
| 23 | # '&mariadbConfig' means we "store" the values for later use in the file |
| 24 | # with '*mariadbConfig' pointer. |
| 25 | config: &mariadbConfig |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 26 | mysqlDatabase: policyadmin |
| 27 | service: &mariadbService |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 28 | name: &policy-mariadb policy-mariadb |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 29 | internalPort: 3306 |
Rashmi Pujar | ec452b5 | 2022-04-21 12:29:14 -0400 | [diff] [blame] | 30 | prometheusEnabled: false |
waynedunican | 368aced | 2022-02-15 08:27:57 +0000 | [diff] [blame] | 31 | 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_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 39 | kafkaBootstrap: strimzi-kafka-bootstrap |
| 40 | policyKafkaUser: policy-kafka-user |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 41 | |
| 42 | ################################################################# |
Krzysztof Opasiak | 98a79cc | 2020-04-01 22:33:58 +0200 | [diff] [blame] | 43 | # Secrets metaconfig |
| 44 | ################################################################# |
| 45 | secrets: |
| 46 | - uid: db-root-password |
| 47 | name: &dbRootPassSecretName '{{ include "common.release" . }}-policy-db-root-password' |
| 48 | type: password |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 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") }}' |
Krzysztof Opasiak | 98a79cc | 2020-04-01 22:33:58 +0200 | [diff] [blame] | 51 | policy: generate |
| 52 | - uid: db-secret |
| 53 | name: &dbSecretName '{{ include "common.release" . }}-policy-db-secret' |
| 54 | type: basicAuth |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 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" }}' |
Krzysztof Opasiak | 98a79cc | 2020-04-01 22:33:58 +0200 | [diff] [blame] | 58 | passwordPolicy: generate |
saul.gill | 7124a4b | 2021-09-09 12:02:49 +0100 | [diff] [blame] | 59 | - 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 |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 66 | - 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 |
waynedunican | 368aced | 2022-02-15 08:27:57 +0000 | [diff] [blame] | 80 | - 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 Opasiak | 98a79cc | 2020-04-01 22:33:58 +0200 | [diff] [blame] | 93 | |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 94 | db: &dbSecretsHook |
| 95 | credsExternalSecret: *dbSecretName |
| 96 | |
| 97 | policy-api: |
| 98 | enabled: true |
| 99 | db: *dbSecretsHook |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 100 | restServer: |
| 101 | apiUserExternalSecret: *policyApiCredsSecret |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 102 | config: |
| 103 | jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}' |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 104 | policy-pap: |
| 105 | enabled: true |
| 106 | db: *dbSecretsHook |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 107 | restServer: |
| 108 | papUserExternalSecret: *policyPapCredsSecret |
| 109 | apiUserExternalSecret: *policyApiCredsSecret |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 110 | config: |
| 111 | jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}' |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 112 | policy-xacml-pdp: |
| 113 | enabled: true |
| 114 | db: *dbSecretsHook |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 115 | config: |
| 116 | jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}' |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 117 | policy-apex-pdp: |
| 118 | enabled: true |
| 119 | db: *dbSecretsHook |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 120 | config: |
| 121 | jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}' |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 122 | policy-drools-pdp: |
| 123 | enabled: true |
| 124 | db: *dbSecretsHook |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 125 | config: |
| 126 | jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}' |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 127 | policy-distribution: |
| 128 | enabled: true |
| 129 | db: *dbSecretsHook |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 130 | config: |
| 131 | jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}' |
sebdet | 5c44988 | 2021-01-13 11:35:56 +0100 | [diff] [blame] | 132 | policy-clamp-be: |
| 133 | enabled: true |
| 134 | db: *dbSecretsHook |
saul.gill | 7124a4b | 2021-09-09 12:02:49 +0100 | [diff] [blame] | 135 | config: |
| 136 | appUserExternalSecret: *policyAppCredsSecret |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 137 | jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}' |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 138 | policy-clamp-ac-k8s-ppnt: |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 139 | enabled: true |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 140 | config: |
| 141 | jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}' |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 142 | policy-clamp-ac-pf-ppnt: |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 143 | enabled: true |
| 144 | restServer: |
| 145 | apiUserExternalSecret: *policyApiCredsSecret |
| 146 | papUserExternalSecret: *policyPapCredsSecret |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 147 | config: |
| 148 | jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}' |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 149 | policy-clamp-ac-http-ppnt: |
rameshiyer27 | 3c3402d | 2021-09-21 15:14:39 +0100 | [diff] [blame] | 150 | enabled: true |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 151 | config: |
| 152 | jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}' |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 153 | policy-nexus: |
jhh | bf8d8a9 | 2020-09-10 14:01:49 -0500 | [diff] [blame] | 154 | enabled: false |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 155 | config: |
| 156 | jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}' |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 157 | policy-clamp-runtime-acm: |
saul.gill | 7124a4b | 2021-09-09 12:02:49 +0100 | [diff] [blame] | 158 | enabled: true |
| 159 | db: *dbSecretsHook |
| 160 | config: |
| 161 | appUserExternalSecret: *policyAppCredsSecret |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 162 | jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}' |
ktimoney | b3aef7b | 2021-09-13 08:27:58 +0100 | [diff] [blame] | 163 | policy-gui: |
| 164 | enabled: true |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 165 | config: |
| 166 | jaasConfExternalSecret: '{{ include "common.release" . }}-{{ .Values.global.policyKafkaUser }}' |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 167 | |
Krzysztof Opasiak | 98a79cc | 2020-04-01 22:33:58 +0200 | [diff] [blame] | 168 | ################################################################# |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 169 | # DB configuration defaults. |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 170 | ################################################################# |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 171 | |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 172 | repository: nexus3.onap.org:10001 |
kerenj | 3b697f6 | 2017-08-23 11:21:21 +0000 | [diff] [blame] | 173 | pullPolicy: Always |
Alexis de Talhouët | df4db0b | 2017-12-11 08:36:25 -0500 | [diff] [blame] | 174 | |
Sylvain Desbureaux | 7c8c686 | 2020-11-19 18:02:37 +0100 | [diff] [blame] | 175 | mariadb: |
| 176 | image: mariadb:10.5.8 |
| 177 | |
jhh | d74fe9f | 2021-04-15 11:04:39 -0500 | [diff] [blame] | 178 | dbmigrator: |
jhh | 2a5d1bb | 2022-05-04 13:44:26 -0500 | [diff] [blame] | 179 | image: onap/policy-db-migrator:2.4.3 |
jhh | d74fe9f | 2021-04-15 11:04:39 -0500 | [diff] [blame] | 180 | schema: policyadmin |
| 181 | policy_home: "/opt/app/policy" |
| 182 | |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 183 | subChartsOnly: |
| 184 | enabled: true |
BorislavG | 5f3b619 | 2018-03-25 18:12:38 +0300 | [diff] [blame] | 185 | |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 186 | # flag to enable debugging - application support required |
| 187 | debugEnabled: false |
| 188 | |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 189 | # default number of instances |
| 190 | replicaCount: 1 |
| 191 | |
| 192 | nodeSelector: {} |
| 193 | |
| 194 | affinity: {} |
| 195 | |
| 196 | # probe configuration parameters |
| 197 | liveness: |
| 198 | initialDelaySeconds: 10 |
| 199 | periodSeconds: 10 |
| 200 | # necessary to disable liveness probe when setting breakpoints |
| 201 | # in debugger so K8s doesn't restart unresponsive container |
| 202 | enabled: true |
| 203 | |
| 204 | readiness: |
| 205 | initialDelaySeconds: 10 |
| 206 | periodSeconds: 10 |
| 207 | |
saul.gill | 7124a4b | 2021-09-09 12:02:49 +0100 | [diff] [blame] | 208 | |
| 209 | config: |
| 210 | policyAppUserName: runtimeUser |
Sirisha_Manchikanti | 73c5f00 | 2022-07-25 17:04:45 +0100 | [diff] [blame] | 211 | useStrimziKafka: true |
| 212 | acRuntimeTopic: |
| 213 | name: policy-acruntime-participant |
| 214 | partitions: 10 |
| 215 | retentionMs: 7200000 |
| 216 | segmentBytes: 1073741824 |
| 217 | consumer: |
| 218 | groupId: policy-group |
| 219 | policyPdpPapTopic: |
| 220 | name: policy-pdp-pap |
| 221 | partitions: 10 |
| 222 | retentionMs: 7200000 |
| 223 | segmentBytes: 1073741824 |
| 224 | consumer: |
| 225 | groupId: policy-group |
| 226 | policyHeartbeatTopic: |
| 227 | name: policy-heartbeat |
| 228 | partitions: 10 |
| 229 | retentionMs: 7200000 |
| 230 | segmentBytes: 1073741824 |
| 231 | consumer: |
| 232 | groupId: policy-group |
| 233 | policyNotificationTopic: |
| 234 | name: policy-notification |
| 235 | partitions: 10 |
| 236 | retentionMs: 7200000 |
| 237 | segmentBytes: 1073741824 |
| 238 | consumer: |
| 239 | groupId: policy-group |
saul.gill | 7124a4b | 2021-09-09 12:02:49 +0100 | [diff] [blame] | 240 | |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 241 | mariadb-galera: |
| 242 | # mariadb-galera.config and global.mariadb.config must be equals |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 243 | db: |
| 244 | user: policy_user |
| 245 | # password: |
| 246 | externalSecret: *dbSecretName |
| 247 | name: &mysqlDbName policyadmin |
| 248 | rootUser: |
| 249 | externalSecret: *dbRootPassSecretName |
| 250 | nameOverride: *policy-mariadb |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 251 | # 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 Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 257 | serviceAccount: |
| 258 | nameOverride: *policy-mariadb |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 259 | |
waynedunican | 368aced | 2022-02-15 08:27:57 +0000 | [diff] [blame] | 260 | postgresImage: library/postgres:latest |
| 261 | # application configuration override for postgres |
| 262 | postgres: |
| 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 | |
| 281 | readinessCheck: |
| 282 | wait_for: |
| 283 | - '{{ ternary .Values.postgres.service.name "postgres" .Values.global.postgres.localCluster }}' |
| 284 | |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 285 | restServer: |
adheli.tavares | f3656cd | 2021-11-10 14:54:32 +0000 | [diff] [blame] | 286 | policyPapUserName: policyadmin |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 287 | policyPapUserPassword: zb!XztG34 |
adheli.tavares | f3656cd | 2021-11-10 14:54:32 +0000 | [diff] [blame] | 288 | policyApiUserName: policyadmin |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 289 | policyApiUserPassword: zb!XztG34 |
| 290 | |
jhh | bf8d8a9 | 2020-09-10 14:01:49 -0500 | [diff] [blame] | 291 | # Resource Limit flavor -By Default using small |
| 292 | # Segregation for Different environment (small, large, or unlimited) |
| 293 | flavor: small |
| 294 | resources: |
| 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 azmy | c117837 | 2021-04-11 12:55:33 +0200 | [diff] [blame] | 311 | #Pods Service Account |
| 312 | serviceAccount: |
| 313 | nameOverride: policy |
| 314 | roles: |
| 315 | - read |