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: |
Mahmoud Abdelhamid | 7fc530c | 2021-09-15 20:27:19 +0200 | [diff] [blame] | 19 | mariadbGalera: &mariadbGalera |
| 20 | #This flag allows DMAAP-DR to instantiate its own mariadb-galera cluster |
| 21 | localCluster: false |
| 22 | service: mariadb-galera |
| 23 | internalPort: 3306 |
| 24 | nameOverride: mariadb-galera |
Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 25 | |
| 26 | ################################################################# |
Krzysztof Opasiak | e55b4d5 | 2020-02-07 22:54:20 +0100 | [diff] [blame] | 27 | # Secrets metaconfig |
| 28 | ################################################################# |
| 29 | secrets: |
Mahmoud Abdelhamid | 7fc530c | 2021-09-15 20:27:19 +0200 | [diff] [blame] | 30 | - name: &dbUserSecretName '{{ include "common.release" . }}-dmaap-dr-db-user-credentials' |
| 31 | uid: 'dmaap-dr-db-user-credentials' |
Krzysztof Opasiak | e55b4d5 | 2020-02-07 22:54:20 +0100 | [diff] [blame] | 32 | type: basicAuth |
Mahmoud Abdelhamid | 7fc530c | 2021-09-15 20:27:19 +0200 | [diff] [blame] | 33 | externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "db" "externalSecret")) .) (hasSuffix "dmaap-dr-db-user-credentials" (index .Values "mariadb-galera" "db" "externalSecret"))}}' |
| 34 | login: '{{ index .Values "mariadb-galera" "db" "user" }}' |
| 35 | password: '{{ index .Values "mariadb-galera" "db" "password" }}' |
Krzysztof Opasiak | e55b4d5 | 2020-02-07 22:54:20 +0100 | [diff] [blame] | 36 | |
| 37 | ################################################################# |
Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 38 | # Application configuration defaults. |
| 39 | ################################################################# |
| 40 | # application image |
efiacor | 501c7b6 | 2023-04-25 14:52:01 +0100 | [diff] [blame^] | 41 | image: onap/dmaap/datarouter-prov:2.1.13 |
Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 42 | pullPolicy: Always |
| 43 | |
Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 44 | # default number of instances |
| 45 | replicaCount: 1 |
| 46 | |
| 47 | nodeSelector: {} |
| 48 | |
| 49 | affinity: {} |
| 50 | |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 51 | containerPort: &svc_port 8080 |
Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 52 | |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 53 | service: |
| 54 | type: ClusterIP |
| 55 | name: dmaap-dr-prov |
| 56 | ports: |
| 57 | - name: &port http |
| 58 | port: *svc_port |
efiacor | e62958b | 2019-09-27 16:54:36 +0100 | [diff] [blame] | 59 | |
Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 60 | ingress: |
| 61 | enabled: false |
Lucjan Bryndza | 554759c | 2019-11-27 15:02:14 +0100 | [diff] [blame] | 62 | service: |
Andreas Geissler | 51900a9 | 2022-08-03 13:10:35 +0200 | [diff] [blame] | 63 | - baseaddr: "dmaap-dr-prov-api" |
Lucjan Bryndza | 554759c | 2019-11-27 15:02:14 +0100 | [diff] [blame] | 64 | name: "dmaap-dr-prov" |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 65 | port: *svc_port |
Lucjan Bryndza | 554759c | 2019-11-27 15:02:14 +0100 | [diff] [blame] | 66 | config: |
| 67 | ssl: "redirect" |
Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 68 | |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 69 | readinessCheck: |
| 70 | wait_for: |
| 71 | jobs: |
| 72 | - '{{ include "common.release" . }}-dmaap-dr-mariadb-init-config-job' |
| 73 | |
| 74 | # dr uses the EELF Logging framework https://github.com/att/EELF |
| 75 | # and supports the following log levels: TRACE, DEBUG, INFO, WARN, ERROR, OFF |
| 76 | logLevel: "DEBUG" |
| 77 | |
| 78 | # probe configuration parameters |
| 79 | liveness: |
| 80 | initialDelaySeconds: 60 |
| 81 | periodSeconds: 10 |
| 82 | # necessary to disable liveness probe when setting breakpoints |
| 83 | # in debugger so K8s doesn't restart unresponsive container |
| 84 | enabled: true |
| 85 | port: *svc_port |
| 86 | |
| 87 | readiness: |
| 88 | initialDelaySeconds: 60 |
| 89 | periodSeconds: 10 |
| 90 | port: *svc_port |
efiacor | 9ef176c | 2020-02-20 16:50:30 +0000 | [diff] [blame] | 91 | |
econwar | 28266fa | 2019-03-05 16:39:00 +0000 | [diff] [blame] | 92 | # mariadb-galera configuration |
Mahmoud Abdelhamid | 7fc530c | 2021-09-15 20:27:19 +0200 | [diff] [blame] | 93 | mariadb-galera: |
| 94 | nameOverride: &dbServer dmaap-dr-db |
Sylvain Desbureaux | 85bc09f | 2021-06-21 16:11:39 +0200 | [diff] [blame] | 95 | replicaCount: 1 |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 96 | db: |
Mahmoud Abdelhamid | 7fc530c | 2021-09-15 20:27:19 +0200 | [diff] [blame] | 97 | name: &mysqlDbName datarouter |
| 98 | user: datarouter |
| 99 | # password: |
guillaume.lambert | 600dc98 | 2021-10-20 20:42:32 +0200 | [diff] [blame] | 100 | externalSecret: *dbUserSecretName |
econwar | 28266fa | 2019-03-05 16:39:00 +0000 | [diff] [blame] | 101 | service: |
Mahmoud Abdelhamid | 7fc530c | 2021-09-15 20:27:19 +0200 | [diff] [blame] | 102 | name: *dbServer |
econwar | 28266fa | 2019-03-05 16:39:00 +0000 | [diff] [blame] | 103 | nfsprovisionerPrefix: dmaap-dr-db |
| 104 | persistence: |
| 105 | size: 1Gi |
| 106 | mountSubPath: data-router/dr-db-data |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 107 | serviceAccount: |
Mahmoud Abdelhamid | 7fc530c | 2021-09-15 20:27:19 +0200 | [diff] [blame] | 108 | nameOverride: *dbServer |
| 109 | |
| 110 | mariadb-init: |
| 111 | config: |
| 112 | userCredentialsExternalSecret: *dbUserSecretName |
| 113 | mysqlDatabase: *mysqlDbName |
| 114 | nameOverride: dmaap-dr-mariadb-init |
efiacor | e62958b | 2019-09-27 16:54:36 +0100 | [diff] [blame] | 115 | |
efiacor | e62958b | 2019-09-27 16:54:36 +0100 | [diff] [blame] | 116 | # Resource Limit flavor -By Default using small |
| 117 | flavor: small |
rope252 | f2db5c1 | 2022-01-10 14:15:16 +0000 | [diff] [blame] | 118 | |
efiacor | e62958b | 2019-09-27 16:54:36 +0100 | [diff] [blame] | 119 | # Segregation for Different environment (Small and Large) |
| 120 | resources: |
| 121 | small: |
| 122 | limits: |
| 123 | cpu: 2000m |
| 124 | memory: 4Gi |
| 125 | requests: |
| 126 | cpu: 500m |
| 127 | memory: 1Gi |
| 128 | large: |
| 129 | limits: |
| 130 | cpu: 4000m |
| 131 | memory: 8Gi |
| 132 | requests: |
| 133 | cpu: 1000m |
| 134 | memory: 2Gi |
Krzysztof Opasiak | e55b4d5 | 2020-02-07 22:54:20 +0100 | [diff] [blame] | 135 | unlimited: {} |
farida azmy | 13388ba | 2021-03-17 11:33:28 +0200 | [diff] [blame] | 136 | |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 137 | #Pods Security Context |
| 138 | securityContext: |
| 139 | user_id: 1000 |
| 140 | group_id: 1000 |
| 141 | |
farida azmy | 13388ba | 2021-03-17 11:33:28 +0200 | [diff] [blame] | 142 | #Pods Service Account |
| 143 | serviceAccount: |
| 144 | nameOverride: dmaap-dr-prov |
| 145 | roles: |
| 146 | - read |