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 |
sebdet | 5c44988 | 2021-01-13 11:35:56 +0100 | [diff] [blame] | 69 | policy-clamp-be: |
| 70 | enabled: true |
| 71 | db: *dbSecretsHook |
| 72 | policy-clamp-fe: |
| 73 | enabled: true |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 74 | policy-nexus: |
jhh | bf8d8a9 | 2020-09-10 14:01:49 -0500 | [diff] [blame] | 75 | enabled: false |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 76 | |
Krzysztof Opasiak | 98a79cc | 2020-04-01 22:33:58 +0200 | [diff] [blame] | 77 | ################################################################# |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 78 | # DB configuration defaults. |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 79 | ################################################################# |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 80 | |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 81 | repository: nexus3.onap.org:10001 |
kerenj | 3b697f6 | 2017-08-23 11:21:21 +0000 | [diff] [blame] | 82 | pullPolicy: Always |
Alexis de Talhouët | df4db0b | 2017-12-11 08:36:25 -0500 | [diff] [blame] | 83 | |
Sylvain Desbureaux | 7c8c686 | 2020-11-19 18:02:37 +0100 | [diff] [blame] | 84 | mariadb: |
| 85 | image: mariadb:10.5.8 |
| 86 | |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 87 | subChartsOnly: |
| 88 | enabled: true |
BorislavG | 5f3b619 | 2018-03-25 18:12:38 +0300 | [diff] [blame] | 89 | |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 90 | # flag to enable debugging - application support required |
| 91 | debugEnabled: false |
| 92 | |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 93 | # default number of instances |
| 94 | replicaCount: 1 |
| 95 | |
| 96 | nodeSelector: {} |
| 97 | |
| 98 | affinity: {} |
| 99 | |
| 100 | # probe configuration parameters |
| 101 | liveness: |
| 102 | initialDelaySeconds: 10 |
| 103 | periodSeconds: 10 |
| 104 | # necessary to disable liveness probe when setting breakpoints |
| 105 | # in debugger so K8s doesn't restart unresponsive container |
| 106 | enabled: true |
| 107 | |
| 108 | readiness: |
| 109 | initialDelaySeconds: 10 |
| 110 | periodSeconds: 10 |
| 111 | |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 112 | mariadb-galera: |
| 113 | # mariadb-galera.config and global.mariadb.config must be equals |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 114 | db: |
| 115 | user: policy_user |
| 116 | # password: |
| 117 | externalSecret: *dbSecretName |
| 118 | name: &mysqlDbName policyadmin |
| 119 | rootUser: |
| 120 | externalSecret: *dbRootPassSecretName |
| 121 | nameOverride: *policy-mariadb |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 122 | # mariadb-galera.service and global.mariadb.service must be equals |
| 123 | service: *mariadbService |
| 124 | replicaCount: 1 |
| 125 | persistence: |
| 126 | enabled: true |
| 127 | mountSubPath: policy/maria/data |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 128 | serviceAccount: |
| 129 | nameOverride: *policy-mariadb |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 130 | |
jhh | bf8d8a9 | 2020-09-10 14:01:49 -0500 | [diff] [blame] | 131 | # Resource Limit flavor -By Default using small |
| 132 | # Segregation for Different environment (small, large, or unlimited) |
| 133 | flavor: small |
| 134 | resources: |
| 135 | small: |
| 136 | limits: |
| 137 | cpu: 1 |
| 138 | memory: 4Gi |
| 139 | requests: |
| 140 | cpu: 100m |
| 141 | memory: 1Gi |
| 142 | large: |
| 143 | limits: |
| 144 | cpu: 2 |
| 145 | memory: 8Gi |
| 146 | requests: |
| 147 | cpu: 200m |
| 148 | memory: 2Gi |
| 149 | unlimited: {} |
| 150 | |
farida azmy | c117837 | 2021-04-11 12:55:33 +0200 | [diff] [blame] | 151 | #Pods Service Account |
| 152 | serviceAccount: |
| 153 | nameOverride: policy |
| 154 | roles: |
| 155 | - read |