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