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 |
vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 16 | ################################################################# |
| 17 | # Global configuration defaults. |
| 18 | ################################################################# |
| 19 | global: |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 20 | aafEnabled: true |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 21 | mariadb: |
| 22 | # '&mariadbConfig' means we "store" the values for later use in the file |
| 23 | # with '*mariadbConfig' pointer. |
| 24 | config: &mariadbConfig |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 25 | mysqlDatabase: policyadmin |
| 26 | service: &mariadbService |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 27 | name: &policy-mariadb policy-mariadb |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 28 | internalPort: 3306 |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 29 | |
| 30 | ################################################################# |
Krzysztof Opasiak | 98a79cc | 2020-04-01 22:33:58 +0200 | [diff] [blame] | 31 | # Secrets metaconfig |
| 32 | ################################################################# |
| 33 | secrets: |
| 34 | - uid: db-root-password |
| 35 | name: &dbRootPassSecretName '{{ include "common.release" . }}-policy-db-root-password' |
| 36 | type: password |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 37 | externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "rootUser" "externalSecret")) .) (hasSuffix "policy-db-root-password" (index .Values "mariadb-galera" "rootUser" "externalSecret"))}}' |
| 38 | password: '{{ (index .Values "mariadb-galera" "rootUser" "password") }}' |
Krzysztof Opasiak | 98a79cc | 2020-04-01 22:33:58 +0200 | [diff] [blame] | 39 | policy: generate |
| 40 | - uid: db-secret |
| 41 | name: &dbSecretName '{{ include "common.release" . }}-policy-db-secret' |
| 42 | type: basicAuth |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 43 | externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "db" "externalSecret")) .) (hasSuffix "policy-db-secret" (index .Values "mariadb-galera" "db" "externalSecret"))}}' |
| 44 | login: '{{ index .Values "mariadb-galera" "db" "user" }}' |
| 45 | password: '{{ index .Values "mariadb-galera" "db" "password" }}' |
Krzysztof Opasiak | 98a79cc | 2020-04-01 22:33:58 +0200 | [diff] [blame] | 46 | passwordPolicy: generate |
| 47 | |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 48 | db: &dbSecretsHook |
| 49 | credsExternalSecret: *dbSecretName |
| 50 | |
| 51 | policy-api: |
| 52 | enabled: true |
| 53 | db: *dbSecretsHook |
| 54 | policy-pap: |
| 55 | enabled: true |
| 56 | db: *dbSecretsHook |
| 57 | policy-xacml-pdp: |
| 58 | enabled: true |
| 59 | db: *dbSecretsHook |
| 60 | policy-apex-pdp: |
| 61 | enabled: true |
| 62 | db: *dbSecretsHook |
| 63 | policy-drools-pdp: |
| 64 | enabled: true |
| 65 | db: *dbSecretsHook |
| 66 | policy-distribution: |
| 67 | enabled: true |
| 68 | db: *dbSecretsHook |
| 69 | policy-nexus: |
jhh | bf8d8a9 | 2020-09-10 14:01:49 -0500 | [diff] [blame] | 70 | enabled: false |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 71 | |
Krzysztof Opasiak | 98a79cc | 2020-04-01 22:33:58 +0200 | [diff] [blame] | 72 | ################################################################# |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 73 | # DB configuration defaults. |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 74 | ################################################################# |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 75 | |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 76 | repository: nexus3.onap.org:10001 |
kerenj | 3b697f6 | 2017-08-23 11:21:21 +0000 | [diff] [blame] | 77 | pullPolicy: Always |
Alexis de Talhouët | df4db0b | 2017-12-11 08:36:25 -0500 | [diff] [blame] | 78 | |
Sylvain Desbureaux | 7c8c686 | 2020-11-19 18:02:37 +0100 | [diff] [blame] | 79 | mariadb: |
| 80 | image: mariadb:10.5.8 |
| 81 | |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 82 | subChartsOnly: |
| 83 | enabled: true |
BorislavG | 5f3b619 | 2018-03-25 18:12:38 +0300 | [diff] [blame] | 84 | |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 85 | # flag to enable debugging - application support required |
| 86 | debugEnabled: false |
| 87 | |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 88 | # default number of instances |
| 89 | replicaCount: 1 |
| 90 | |
| 91 | nodeSelector: {} |
| 92 | |
| 93 | affinity: {} |
| 94 | |
| 95 | # probe configuration parameters |
| 96 | liveness: |
| 97 | initialDelaySeconds: 10 |
| 98 | periodSeconds: 10 |
| 99 | # necessary to disable liveness probe when setting breakpoints |
| 100 | # in debugger so K8s doesn't restart unresponsive container |
| 101 | enabled: true |
| 102 | |
| 103 | readiness: |
| 104 | initialDelaySeconds: 10 |
| 105 | periodSeconds: 10 |
| 106 | |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 107 | mariadb-galera: |
| 108 | # mariadb-galera.config and global.mariadb.config must be equals |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 109 | db: |
| 110 | user: policy_user |
| 111 | # password: |
| 112 | externalSecret: *dbSecretName |
| 113 | name: &mysqlDbName policyadmin |
| 114 | rootUser: |
| 115 | externalSecret: *dbRootPassSecretName |
| 116 | nameOverride: *policy-mariadb |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 117 | # mariadb-galera.service and global.mariadb.service must be equals |
| 118 | service: *mariadbService |
| 119 | replicaCount: 1 |
| 120 | persistence: |
| 121 | enabled: true |
| 122 | mountSubPath: policy/maria/data |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 123 | serviceAccount: |
| 124 | nameOverride: *policy-mariadb |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 125 | |
jhh | bf8d8a9 | 2020-09-10 14:01:49 -0500 | [diff] [blame] | 126 | # Resource Limit flavor -By Default using small |
| 127 | # Segregation for Different environment (small, large, or unlimited) |
| 128 | flavor: small |
| 129 | resources: |
| 130 | small: |
| 131 | limits: |
| 132 | cpu: 1 |
| 133 | memory: 4Gi |
| 134 | requests: |
| 135 | cpu: 100m |
| 136 | memory: 1Gi |
| 137 | large: |
| 138 | limits: |
| 139 | cpu: 2 |
| 140 | memory: 8Gi |
| 141 | requests: |
| 142 | cpu: 200m |
| 143 | memory: 2Gi |
| 144 | unlimited: {} |
| 145 | |