Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | ################################################################# |
| 16 | # Global configuration defaults. |
| 17 | ################################################################# |
| 18 | global: |
| 19 | nodePortPrefix: 302 |
econwar | 28266fa | 2019-03-05 16:39:00 +0000 | [diff] [blame] | 20 | loggingDirectory: /opt/app/datartr/logs |
Sylvain Desbureaux | ce3b461 | 2020-03-10 08:45:42 +0100 | [diff] [blame] | 21 | persistence: {} |
Maciej Wereski | 9075b5c | 2021-11-04 14:01:26 +0000 | [diff] [blame] | 22 | centralizedLoggingEnabled: true |
Mahmoud Abdelhamid | 7fc530c | 2021-09-15 20:27:19 +0200 | [diff] [blame] | 23 | mariadbGalera: &mariadbGalera |
| 24 | #This flag allows DMAAP-DR to instantiate its own mariadb-galera cluster |
| 25 | localCluster: false |
| 26 | service: mariadb-galera |
| 27 | internalPort: 3306 |
| 28 | nameOverride: mariadb-galera |
Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 29 | |
| 30 | ################################################################# |
Krzysztof Opasiak | e55b4d5 | 2020-02-07 22:54:20 +0100 | [diff] [blame] | 31 | # Secrets metaconfig |
| 32 | ################################################################# |
| 33 | secrets: |
Mahmoud Abdelhamid | 7fc530c | 2021-09-15 20:27:19 +0200 | [diff] [blame] | 34 | - name: &dbUserSecretName '{{ include "common.release" . }}-dmaap-dr-db-user-credentials' |
| 35 | uid: 'dmaap-dr-db-user-credentials' |
Krzysztof Opasiak | e55b4d5 | 2020-02-07 22:54:20 +0100 | [diff] [blame] | 36 | type: basicAuth |
Mahmoud Abdelhamid | 7fc530c | 2021-09-15 20:27:19 +0200 | [diff] [blame] | 37 | externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "db" "externalSecret")) .) (hasSuffix "dmaap-dr-db-user-credentials" (index .Values "mariadb-galera" "db" "externalSecret"))}}' |
| 38 | login: '{{ index .Values "mariadb-galera" "db" "user" }}' |
| 39 | password: '{{ index .Values "mariadb-galera" "db" "password" }}' |
Krzysztof Opasiak | e55b4d5 | 2020-02-07 22:54:20 +0100 | [diff] [blame] | 40 | |
| 41 | ################################################################# |
Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 42 | # Application configuration defaults. |
| 43 | ################################################################# |
| 44 | # application image |
efiacor | e39d3f9 | 2022-03-15 09:45:07 +0000 | [diff] [blame^] | 45 | image: onap/dmaap/datarouter-prov:2.1.10 |
Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 46 | pullPolicy: Always |
| 47 | |
| 48 | # flag to enable debugging - application support required |
| 49 | debugEnabled: false |
| 50 | |
| 51 | # application configuration - see parent values chart |
| 52 | |
| 53 | # default number of instances |
| 54 | replicaCount: 1 |
| 55 | |
| 56 | nodeSelector: {} |
| 57 | |
| 58 | affinity: {} |
| 59 | |
| 60 | # probe configuration parameters |
| 61 | liveness: |
| 62 | initialDelaySeconds: 30 |
| 63 | periodSeconds: 10 |
| 64 | # necessary to disable liveness probe when setting breakpoints |
| 65 | # in debugger so K8s doesn't restart unresponsive container |
| 66 | enabled: true |
| 67 | |
| 68 | readiness: |
| 69 | initialDelaySeconds: 30 |
| 70 | periodSeconds: 10 |
| 71 | |
| 72 | ## Persist data to a persitent volume |
| 73 | persistence: |
Sylvain Desbureaux | ce3b461 | 2020-03-10 08:45:42 +0100 | [diff] [blame] | 74 | enabled: true |
efiacor | e62958b | 2019-09-27 16:54:36 +0100 | [diff] [blame] | 75 | volumeReclaimPolicy: Retain |
| 76 | accessMode: ReadWriteOnce |
| 77 | mountPath: /dockerdata-nfs |
| 78 | |
Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 79 | ingress: |
| 80 | enabled: false |
Lucjan Bryndza | 554759c | 2019-11-27 15:02:14 +0100 | [diff] [blame] | 81 | service: |
| 82 | - baseaddr: "dmaapdrprov" |
| 83 | name: "dmaap-dr-prov" |
| 84 | port: 8443 |
| 85 | config: |
| 86 | ssl: "redirect" |
Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 87 | |
econwar | 28266fa | 2019-03-05 16:39:00 +0000 | [diff] [blame] | 88 | config: |
| 89 | # dr provisioning server configuration |
| 90 | dmaapDrProv: |
| 91 | servicetype: NodePort |
econwar | 28266fa | 2019-03-05 16:39:00 +0000 | [diff] [blame] | 92 | internalPort: 8080 |
| 93 | internalPort2: 8443 |
| 94 | portName: dr-prov-port |
| 95 | portName2: dr-prov-port2 |
| 96 | nodePort: 59 |
| 97 | nodePort2: 69 |
efiacor | 9ef176c | 2020-02-20 16:50:30 +0000 | [diff] [blame] | 98 | # dr uses the EELF Logging framework https://github.com/att/EELF |
| 99 | # and supports the following log levels: TRACE, DEBUG, INFO, WARN, ERROR, OFF |
| 100 | logLevel: "INFO" |
| 101 | |
econwar | 28266fa | 2019-03-05 16:39:00 +0000 | [diff] [blame] | 102 | # mariadb-galera configuration |
Mahmoud Abdelhamid | 7fc530c | 2021-09-15 20:27:19 +0200 | [diff] [blame] | 103 | mariadb-galera: |
| 104 | nameOverride: &dbServer dmaap-dr-db |
Sylvain Desbureaux | 85bc09f | 2021-06-21 16:11:39 +0200 | [diff] [blame] | 105 | replicaCount: 1 |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 106 | db: |
Mahmoud Abdelhamid | 7fc530c | 2021-09-15 20:27:19 +0200 | [diff] [blame] | 107 | name: &mysqlDbName datarouter |
| 108 | user: datarouter |
| 109 | # password: |
guillaume.lambert | 600dc98 | 2021-10-20 20:42:32 +0200 | [diff] [blame] | 110 | externalSecret: *dbUserSecretName |
econwar | 28266fa | 2019-03-05 16:39:00 +0000 | [diff] [blame] | 111 | service: |
Mahmoud Abdelhamid | 7fc530c | 2021-09-15 20:27:19 +0200 | [diff] [blame] | 112 | name: *dbServer |
econwar | 28266fa | 2019-03-05 16:39:00 +0000 | [diff] [blame] | 113 | nfsprovisionerPrefix: dmaap-dr-db |
| 114 | persistence: |
| 115 | size: 1Gi |
| 116 | mountSubPath: data-router/dr-db-data |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 117 | serviceAccount: |
Mahmoud Abdelhamid | 7fc530c | 2021-09-15 20:27:19 +0200 | [diff] [blame] | 118 | nameOverride: *dbServer |
| 119 | |
| 120 | mariadb-init: |
| 121 | config: |
| 122 | userCredentialsExternalSecret: *dbUserSecretName |
| 123 | mysqlDatabase: *mysqlDbName |
| 124 | nameOverride: dmaap-dr-mariadb-init |
efiacor | e62958b | 2019-09-27 16:54:36 +0100 | [diff] [blame] | 125 | |
Krzysztof Opasiak | 2df4a78 | 2020-05-08 22:50:24 +0200 | [diff] [blame] | 126 | ################################################################# |
| 127 | # AAF part |
| 128 | ################################################################# |
| 129 | certInitializer: |
| 130 | nameOverride: dmaap-dr-prov-cert-initializer |
efiacor | 6ca697d | 2020-03-06 16:30:05 +0000 | [diff] [blame] | 131 | aafDeployFqi: deployer@people.osaaf.org |
efiacor | e62958b | 2019-09-27 16:54:36 +0100 | [diff] [blame] | 132 | aafDeployPass: demo123456! |
Krzysztof Opasiak | 2df4a78 | 2020-05-08 22:50:24 +0200 | [diff] [blame] | 133 | # aafDeployCredsExternalSecret: some secret |
efiacor | e62958b | 2019-09-27 16:54:36 +0100 | [diff] [blame] | 134 | fqdn: dmaap-dr-prov |
| 135 | fqi: dmaap-dr-prov@dmaap-dr.onap.org |
| 136 | publicFqdn: dmaap-dr.onap.org |
| 137 | cadiLatitude: 0.0 |
| 138 | cadiLongitude: 0.0 |
Krzysztof Opasiak | 2df4a78 | 2020-05-08 22:50:24 +0200 | [diff] [blame] | 139 | app_ns: org.osaaf.aaf |
| 140 | credsPath: /opt/app/osaaf/local |
| 141 | |
efiacor | e62958b | 2019-09-27 16:54:36 +0100 | [diff] [blame] | 142 | |
| 143 | # Resource Limit flavor -By Default using small |
| 144 | flavor: small |
rope252 | f2db5c1 | 2022-01-10 14:15:16 +0000 | [diff] [blame] | 145 | |
| 146 | securityContext: |
| 147 | user_id: 1000 |
| 148 | group_id: 1000 |
| 149 | |
efiacor | e62958b | 2019-09-27 16:54:36 +0100 | [diff] [blame] | 150 | # Segregation for Different environment (Small and Large) |
| 151 | resources: |
| 152 | small: |
| 153 | limits: |
| 154 | cpu: 2000m |
| 155 | memory: 4Gi |
| 156 | requests: |
| 157 | cpu: 500m |
| 158 | memory: 1Gi |
| 159 | large: |
| 160 | limits: |
| 161 | cpu: 4000m |
| 162 | memory: 8Gi |
| 163 | requests: |
| 164 | cpu: 1000m |
| 165 | memory: 2Gi |
Krzysztof Opasiak | e55b4d5 | 2020-02-07 22:54:20 +0100 | [diff] [blame] | 166 | unlimited: {} |
farida azmy | 13388ba | 2021-03-17 11:33:28 +0200 | [diff] [blame] | 167 | |
| 168 | #Pods Service Account |
| 169 | serviceAccount: |
| 170 | nameOverride: dmaap-dr-prov |
| 171 | roles: |
| 172 | - read |
Maciej Wereski | 9075b5c | 2021-11-04 14:01:26 +0000 | [diff] [blame] | 173 | |
| 174 | #Log configuration |
| 175 | log: |
| 176 | path: /var/log/onap |