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