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 |
jhh | d74fe9f | 2021-04-15 11:04:39 -0500 | [diff] [blame] | 3 | # Modifications Copyright (C) 2021 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 |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 30 | |
| 31 | ################################################################# |
Krzysztof Opasiak | 98a79cc | 2020-04-01 22:33:58 +0200 | [diff] [blame] | 32 | # Secrets metaconfig |
| 33 | ################################################################# |
| 34 | secrets: |
| 35 | - uid: db-root-password |
| 36 | name: &dbRootPassSecretName '{{ include "common.release" . }}-policy-db-root-password' |
| 37 | type: password |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 38 | externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "rootUser" "externalSecret")) .) (hasSuffix "policy-db-root-password" (index .Values "mariadb-galera" "rootUser" "externalSecret"))}}' |
| 39 | password: '{{ (index .Values "mariadb-galera" "rootUser" "password") }}' |
Krzysztof Opasiak | 98a79cc | 2020-04-01 22:33:58 +0200 | [diff] [blame] | 40 | policy: generate |
| 41 | - uid: db-secret |
| 42 | name: &dbSecretName '{{ include "common.release" . }}-policy-db-secret' |
| 43 | type: basicAuth |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 44 | externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "db" "externalSecret")) .) (hasSuffix "policy-db-secret" (index .Values "mariadb-galera" "db" "externalSecret"))}}' |
| 45 | login: '{{ index .Values "mariadb-galera" "db" "user" }}' |
| 46 | password: '{{ index .Values "mariadb-galera" "db" "password" }}' |
Krzysztof Opasiak | 98a79cc | 2020-04-01 22:33:58 +0200 | [diff] [blame] | 47 | passwordPolicy: generate |
| 48 | |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 49 | db: &dbSecretsHook |
| 50 | credsExternalSecret: *dbSecretName |
| 51 | |
| 52 | policy-api: |
| 53 | enabled: true |
| 54 | db: *dbSecretsHook |
| 55 | policy-pap: |
| 56 | enabled: true |
| 57 | db: *dbSecretsHook |
| 58 | policy-xacml-pdp: |
| 59 | enabled: true |
| 60 | db: *dbSecretsHook |
| 61 | policy-apex-pdp: |
| 62 | enabled: true |
| 63 | db: *dbSecretsHook |
| 64 | policy-drools-pdp: |
| 65 | enabled: true |
| 66 | db: *dbSecretsHook |
| 67 | policy-distribution: |
| 68 | enabled: true |
| 69 | db: *dbSecretsHook |
sebdet | 5c44988 | 2021-01-13 11:35:56 +0100 | [diff] [blame] | 70 | policy-clamp-be: |
| 71 | enabled: true |
| 72 | db: *dbSecretsHook |
| 73 | policy-clamp-fe: |
| 74 | enabled: true |
rameshiyer27 | 01b8cc0 | 2021-09-21 15:07:50 +0100 | [diff] [blame] | 75 | policy-clamp-cl-k8s-ppnt: |
| 76 | enabled: true |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 77 | policy-nexus: |
jhh | bf8d8a9 | 2020-09-10 14:01:49 -0500 | [diff] [blame] | 78 | enabled: false |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 79 | |
Krzysztof Opasiak | 98a79cc | 2020-04-01 22:33:58 +0200 | [diff] [blame] | 80 | ################################################################# |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 81 | # DB configuration defaults. |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 82 | ################################################################# |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 83 | |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 84 | repository: nexus3.onap.org:10001 |
kerenj | 3b697f6 | 2017-08-23 11:21:21 +0000 | [diff] [blame] | 85 | pullPolicy: Always |
Alexis de Talhouët | df4db0b | 2017-12-11 08:36:25 -0500 | [diff] [blame] | 86 | |
Sylvain Desbureaux | 7c8c686 | 2020-11-19 18:02:37 +0100 | [diff] [blame] | 87 | mariadb: |
| 88 | image: mariadb:10.5.8 |
| 89 | |
jhh | d74fe9f | 2021-04-15 11:04:39 -0500 | [diff] [blame] | 90 | dbmigrator: |
| 91 | image: onap/policy-db-migrator:2.3.0 |
| 92 | schema: policyadmin |
| 93 | policy_home: "/opt/app/policy" |
| 94 | |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 95 | subChartsOnly: |
| 96 | enabled: true |
BorislavG | 5f3b619 | 2018-03-25 18:12:38 +0300 | [diff] [blame] | 97 | |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 98 | # flag to enable debugging - application support required |
| 99 | debugEnabled: false |
| 100 | |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 101 | # default number of instances |
| 102 | replicaCount: 1 |
| 103 | |
| 104 | nodeSelector: {} |
| 105 | |
| 106 | affinity: {} |
| 107 | |
| 108 | # probe configuration parameters |
| 109 | liveness: |
| 110 | initialDelaySeconds: 10 |
| 111 | periodSeconds: 10 |
| 112 | # necessary to disable liveness probe when setting breakpoints |
| 113 | # in debugger so K8s doesn't restart unresponsive container |
| 114 | enabled: true |
| 115 | |
| 116 | readiness: |
| 117 | initialDelaySeconds: 10 |
| 118 | periodSeconds: 10 |
| 119 | |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 120 | mariadb-galera: |
| 121 | # mariadb-galera.config and global.mariadb.config must be equals |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 122 | db: |
| 123 | user: policy_user |
| 124 | # password: |
| 125 | externalSecret: *dbSecretName |
| 126 | name: &mysqlDbName policyadmin |
| 127 | rootUser: |
| 128 | externalSecret: *dbRootPassSecretName |
| 129 | nameOverride: *policy-mariadb |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 130 | # mariadb-galera.service and global.mariadb.service must be equals |
| 131 | service: *mariadbService |
| 132 | replicaCount: 1 |
| 133 | persistence: |
| 134 | enabled: true |
| 135 | mountSubPath: policy/maria/data |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 136 | serviceAccount: |
| 137 | nameOverride: *policy-mariadb |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 138 | |
jhh | bf8d8a9 | 2020-09-10 14:01:49 -0500 | [diff] [blame] | 139 | # Resource Limit flavor -By Default using small |
| 140 | # Segregation for Different environment (small, large, or unlimited) |
| 141 | flavor: small |
| 142 | resources: |
| 143 | small: |
| 144 | limits: |
| 145 | cpu: 1 |
| 146 | memory: 4Gi |
| 147 | requests: |
| 148 | cpu: 100m |
| 149 | memory: 1Gi |
| 150 | large: |
| 151 | limits: |
| 152 | cpu: 2 |
| 153 | memory: 8Gi |
| 154 | requests: |
| 155 | cpu: 200m |
| 156 | memory: 2Gi |
| 157 | unlimited: {} |
| 158 | |
farida azmy | c117837 | 2021-04-11 12:55:33 +0200 | [diff] [blame] | 159 | #Pods Service Account |
| 160 | serviceAccount: |
| 161 | nameOverride: policy |
| 162 | roles: |
| 163 | - read |