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: |
Sylvain Desbureaux | 1694e1d | 2020-08-21 09:58:25 +0200 | [diff] [blame] | 20 | readinessImage: onap/oom/readiness:3.0.1 |
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 |
| 28 | name: policy-mariadb |
| 29 | portName: mysql-policy |
| 30 | internalPort: 3306 |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 31 | |
| 32 | ################################################################# |
Krzysztof Opasiak | 98a79cc | 2020-04-01 22:33:58 +0200 | [diff] [blame] | 33 | # Secrets metaconfig |
| 34 | ################################################################# |
| 35 | secrets: |
| 36 | - uid: db-root-password |
| 37 | name: &dbRootPassSecretName '{{ include "common.release" . }}-policy-db-root-password' |
| 38 | type: password |
| 39 | externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "config" "mariadbRootPasswordExternalSecret")) .) (hasSuffix "policy-db-root-password" (index .Values "mariadb-galera" "config" "mariadbRootPasswordExternalSecret"))}}' |
| 40 | password: '{{ (index .Values "mariadb-galera" "config" "mariadbRootPassword") }}' |
| 41 | policy: generate |
| 42 | - uid: db-secret |
| 43 | name: &dbSecretName '{{ include "common.release" . }}-policy-db-secret' |
| 44 | type: basicAuth |
| 45 | externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret")) .) (hasSuffix "policy-db-secret" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret"))}}' |
| 46 | login: '{{ index .Values "mariadb-galera" "config" "userName" }}' |
| 47 | password: '{{ index .Values "mariadb-galera" "config" "userPassword" }}' |
| 48 | passwordPolicy: generate |
| 49 | |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 50 | db: &dbSecretsHook |
| 51 | credsExternalSecret: *dbSecretName |
| 52 | |
| 53 | policy-api: |
| 54 | enabled: true |
| 55 | db: *dbSecretsHook |
| 56 | policy-pap: |
| 57 | enabled: true |
| 58 | db: *dbSecretsHook |
| 59 | policy-xacml-pdp: |
| 60 | enabled: true |
| 61 | db: *dbSecretsHook |
| 62 | policy-apex-pdp: |
| 63 | enabled: true |
| 64 | db: *dbSecretsHook |
| 65 | policy-drools-pdp: |
| 66 | enabled: true |
| 67 | db: *dbSecretsHook |
| 68 | policy-distribution: |
| 69 | enabled: true |
| 70 | db: *dbSecretsHook |
| 71 | policy-nexus: |
jhh | bf8d8a9 | 2020-09-10 14:01:49 -0500 | [diff] [blame] | 72 | enabled: false |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 73 | |
Krzysztof Opasiak | 98a79cc | 2020-04-01 22:33:58 +0200 | [diff] [blame] | 74 | ################################################################# |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 75 | # DB configuration defaults. |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 76 | ################################################################# |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 77 | |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 78 | repository: nexus3.onap.org:10001 |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 79 | mariadb_image: library/mariadb:10 |
kerenj | 3b697f6 | 2017-08-23 11:21:21 +0000 | [diff] [blame] | 80 | pullPolicy: Always |
Alexis de Talhouët | df4db0b | 2017-12-11 08:36:25 -0500 | [diff] [blame] | 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 |
Krzysztof Opasiak | 98a79cc | 2020-04-01 22:33:58 +0200 | [diff] [blame] | 109 | config: |
| 110 | <<: *mariadbConfig |
| 111 | userName: policy_user |
| 112 | mariadbRootPasswordExternalSecret: *dbRootPassSecretName |
| 113 | userCredentialsExternalSecret: *dbSecretName |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 114 | nameOverride: policy-mariadb |
| 115 | # mariadb-galera.service and global.mariadb.service must be equals |
| 116 | service: *mariadbService |
| 117 | replicaCount: 1 |
| 118 | persistence: |
| 119 | enabled: true |
| 120 | mountSubPath: policy/maria/data |
jhh | 6361494 | 2020-01-03 13:51:59 -0600 | [diff] [blame] | 121 | externalConfig: |- |
| 122 | [mysqld] |
| 123 | lower_case_table_names = 1 |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 124 | |
jhh | bf8d8a9 | 2020-09-10 14:01:49 -0500 | [diff] [blame] | 125 | # Resource Limit flavor -By Default using small |
| 126 | # Segregation for Different environment (small, large, or unlimited) |
| 127 | flavor: small |
| 128 | resources: |
| 129 | small: |
| 130 | limits: |
| 131 | cpu: 1 |
| 132 | memory: 4Gi |
| 133 | requests: |
| 134 | cpu: 100m |
| 135 | memory: 1Gi |
| 136 | large: |
| 137 | limits: |
| 138 | cpu: 2 |
| 139 | memory: 8Gi |
| 140 | requests: |
| 141 | cpu: 200m |
| 142 | memory: 2Gi |
| 143 | unlimited: {} |
| 144 | |