vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
jhh | d2b9ed8 | 2019-12-10 17:15:28 -0600 | [diff] [blame] | 2 | # Modifications Copyright © 2018-2020 AT&T |
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: |
| 20 | nodePortPrefix: 302 |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 21 | readinessRepository: oomk8s |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 22 | readinessImage: readiness-check:2.0.2 |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 23 | loggingRepository: docker.elastic.co |
| 24 | loggingImage: beats/filebeat:5.5.0 |
Krzysztof Opasiak | 98a79cc | 2020-04-01 22:33:58 +0200 | [diff] [blame] | 25 | envsubstImage: dibi/envsubst |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 26 | ubuntuImage: ubuntu:16.04 |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 27 | pdp: |
| 28 | nameOverride: pdp |
| 29 | pap: |
k.kedron | 75da97d | 2020-03-10 16:09:06 +0100 | [diff] [blame] | 30 | nameOverride: pap |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 31 | drools: |
| 32 | nameOverride: drools |
| 33 | brmwgw: |
| 34 | nameOverride: brmsgw |
| 35 | nexus: |
| 36 | nameOverride: nexus |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 37 | mariadb: |
| 38 | # '&mariadbConfig' means we "store" the values for later use in the file |
| 39 | # with '*mariadbConfig' pointer. |
| 40 | config: &mariadbConfig |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 41 | mysqlDatabase: policyadmin |
| 42 | service: &mariadbService |
| 43 | name: policy-mariadb |
| 44 | portName: mysql-policy |
| 45 | internalPort: 3306 |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 46 | |
| 47 | ################################################################# |
Krzysztof Opasiak | 98a79cc | 2020-04-01 22:33:58 +0200 | [diff] [blame] | 48 | # Secrets metaconfig |
| 49 | ################################################################# |
| 50 | secrets: |
| 51 | - uid: db-root-password |
| 52 | name: &dbRootPassSecretName '{{ include "common.release" . }}-policy-db-root-password' |
| 53 | type: password |
| 54 | externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "config" "mariadbRootPasswordExternalSecret")) .) (hasSuffix "policy-db-root-password" (index .Values "mariadb-galera" "config" "mariadbRootPasswordExternalSecret"))}}' |
| 55 | password: '{{ (index .Values "mariadb-galera" "config" "mariadbRootPassword") }}' |
| 56 | policy: generate |
| 57 | - uid: db-secret |
| 58 | name: &dbSecretName '{{ include "common.release" . }}-policy-db-secret' |
| 59 | type: basicAuth |
| 60 | externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret")) .) (hasSuffix "policy-db-secret" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret"))}}' |
| 61 | login: '{{ index .Values "mariadb-galera" "config" "userName" }}' |
| 62 | password: '{{ index .Values "mariadb-galera" "config" "userPassword" }}' |
| 63 | passwordPolicy: generate |
| 64 | |
| 65 | ################################################################# |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 66 | # Application configuration defaults. |
| 67 | ################################################################# |
| 68 | # application image |
| 69 | repository: nexus3.onap.org:10001 |
jhh | 0ee08c0 | 2020-04-27 17:12:43 -0500 | [diff] [blame] | 70 | image: onap/policy-pe:1.6.3 |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 71 | mariadb_image: library/mariadb:10 |
kerenj | 3b697f6 | 2017-08-23 11:21:21 +0000 | [diff] [blame] | 72 | pullPolicy: Always |
Alexis de Talhouët | df4db0b | 2017-12-11 08:36:25 -0500 | [diff] [blame] | 73 | |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 74 | subChartsOnly: |
| 75 | enabled: true |
BorislavG | 5f3b619 | 2018-03-25 18:12:38 +0300 | [diff] [blame] | 76 | |
Krzysztof Opasiak | 98a79cc | 2020-04-01 22:33:58 +0200 | [diff] [blame] | 77 | db: &dbSecretsHook |
| 78 | credsExternalSecret: *dbSecretName |
| 79 | |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 80 | pap: |
| 81 | nameOverride: pap |
Krzysztof Opasiak | 98a79cc | 2020-04-01 22:33:58 +0200 | [diff] [blame] | 82 | db: *dbSecretsHook |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 83 | pdp: |
| 84 | nameOverride: pdp |
Krzysztof Opasiak | 98a79cc | 2020-04-01 22:33:58 +0200 | [diff] [blame] | 85 | db: *dbSecretsHook |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 86 | drools: |
| 87 | nameOverride: drools |
Krzysztof Opasiak | 98a79cc | 2020-04-01 22:33:58 +0200 | [diff] [blame] | 88 | db: *dbSecretsHook |
| 89 | brmsgw: |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 90 | nameOverride: brmsgw |
Krzysztof Opasiak | 98a79cc | 2020-04-01 22:33:58 +0200 | [diff] [blame] | 91 | db: *dbSecretsHook |
| 92 | policy-api: |
| 93 | db: *dbSecretsHook |
| 94 | policy-xacml-pdp: |
| 95 | db: *dbSecretsHook |
| 96 | |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 97 | nexus: |
| 98 | nameOverride: nexus |
| 99 | |
| 100 | # flag to enable debugging - application support required |
| 101 | debugEnabled: false |
| 102 | |
| 103 | # application configuration |
BorislavG | 5f3b619 | 2018-03-25 18:12:38 +0300 | [diff] [blame] | 104 | config: |
Jorge Hernandez | 823691f | 2018-04-30 19:53:29 -0500 | [diff] [blame] | 105 | preloadPolicies: false |
mayankg2703 | c798546 | 2018-03-29 14:24:23 +0000 | [diff] [blame] | 106 | pdpPort: 8081 |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 107 | |
| 108 | # default number of instances |
| 109 | replicaCount: 1 |
| 110 | |
| 111 | nodeSelector: {} |
| 112 | |
| 113 | affinity: {} |
| 114 | |
| 115 | # probe configuration parameters |
| 116 | liveness: |
| 117 | initialDelaySeconds: 10 |
| 118 | periodSeconds: 10 |
| 119 | # necessary to disable liveness probe when setting breakpoints |
| 120 | # in debugger so K8s doesn't restart unresponsive container |
| 121 | enabled: true |
| 122 | |
| 123 | readiness: |
| 124 | initialDelaySeconds: 10 |
| 125 | periodSeconds: 10 |
| 126 | |
| 127 | service: |
| 128 | type: NodePort |
| 129 | name: pap |
BorislavG | 1ffbd99 | 2018-04-24 07:56:27 +0000 | [diff] [blame] | 130 | portName: pap |
jhh | 59ce22d | 2019-05-14 17:59:36 -0500 | [diff] [blame] | 131 | internalPort: 8443 |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 132 | externalPort: 8443 |
| 133 | nodePort: 19 |
jhh | 59ce22d | 2019-05-14 17:59:36 -0500 | [diff] [blame] | 134 | internalPort2: 9091 |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 135 | externalPort2: 9091 |
| 136 | nodePort2: 18 |
| 137 | |
| 138 | ingress: |
| 139 | enabled: false |
Lucjan Bryndza | 0564965 | 2020-04-29 08:52:33 +0000 | [diff] [blame] | 140 | service: |
| 141 | - baseaddr: "policy.api" |
| 142 | name: "pap" |
| 143 | port: 8443 |
| 144 | config: |
| 145 | ssl: "redirect" |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 146 | |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 147 | mariadb-galera: |
| 148 | # mariadb-galera.config and global.mariadb.config must be equals |
Krzysztof Opasiak | 98a79cc | 2020-04-01 22:33:58 +0200 | [diff] [blame] | 149 | config: |
| 150 | <<: *mariadbConfig |
| 151 | userName: policy_user |
| 152 | mariadbRootPasswordExternalSecret: *dbRootPassSecretName |
| 153 | userCredentialsExternalSecret: *dbSecretName |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 154 | nameOverride: policy-mariadb |
| 155 | # mariadb-galera.service and global.mariadb.service must be equals |
| 156 | service: *mariadbService |
| 157 | replicaCount: 1 |
| 158 | persistence: |
| 159 | enabled: true |
| 160 | mountSubPath: policy/maria/data |
jhh | 6361494 | 2020-01-03 13:51:59 -0600 | [diff] [blame] | 161 | externalConfig: |- |
| 162 | [mysqld] |
| 163 | lower_case_table_names = 1 |
Sylvain Desbureaux | 4898dc0 | 2019-11-14 13:35:13 +0100 | [diff] [blame] | 164 | |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 165 | # Resource Limit flavor -By Default using small |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 166 | flavor: small |
| 167 | # Segregation for Different environment (Small and Large) |
| 168 | resources: |
| 169 | small: |
| 170 | limits: |
| 171 | cpu: 1 |
| 172 | memory: 4Gi |
| 173 | requests: |
| 174 | cpu: 10m |
| 175 | memory: 1Gi |
| 176 | large: |
| 177 | limits: |
| 178 | cpu: 2 |
| 179 | memory: 8Gi |
| 180 | requests: |
| 181 | cpu: 20m |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 182 | memory: 2Gi |
Jorge Hernandez | d128b20 | 2019-02-14 13:52:59 -0600 | [diff] [blame] | 183 | unlimited: {} |