Dominic Lunanuova | e825fee | 2018-04-12 14:40:34 +0000 | [diff] [blame] | 1 | # Copyright © 2018 AT&T Intellectual Property. All rights reserved. |
Durgpal | 7ad4069 | 2018-08-03 07:28:36 +0000 | [diff] [blame] | 2 | # Modifications Copyright © 2018 Amdocs,Bell Canada |
Dominic Lunanuova | e825fee | 2018-04-12 14:40:34 +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 | |
| 16 | ################################################################# |
| 17 | # Global configuration defaults. |
| 18 | ################################################################# |
| 19 | global: |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 20 | persistence: {} |
Krzysztof Opasiak | 03a125a | 2020-05-05 02:11:09 +0200 | [diff] [blame] | 21 | |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 22 | ################################################################# |
| 23 | # Secrets metaconfig |
| 24 | ################################################################# |
Krzysztof Opasiak | 03a125a | 2020-05-05 02:11:09 +0200 | [diff] [blame] | 25 | secrets: |
| 26 | - uid: pg-root-pass |
| 27 | name: &pgRootPassSecretName '{{ include "common.release" . }}-dmaap-bc-pg-root-pass' |
| 28 | type: password |
| 29 | externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "dmaap-bc-pg-root-pass" .Values.postgres.config.pgRootPasswordExternalSecret) }}' |
| 30 | password: '{{ .Values.postgres.config.pgRootpassword }}' |
| 31 | policy: generate |
| 32 | - uid: pg-user-creds |
| 33 | name: &pgUserCredsSecretName '{{ include "common.release" . }}-dmaap-bc-pg-user-creds' |
| 34 | type: basicAuth |
| 35 | externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "dmaap-bc-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}' |
| 36 | login: '{{ .Values.postgres.config.pgUserName }}' |
| 37 | password: '{{ .Values.postgres.config.pgUserPassword }}' |
| 38 | passwordPolicy: generate |
Dominic Lunanuova | e825fee | 2018-04-12 14:40:34 +0000 | [diff] [blame] | 39 | |
| 40 | ################################################################# |
| 41 | # Application configuration defaults. |
| 42 | ################################################################# |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 43 | # application images |
efiacor | 501c7b6 | 2023-04-25 14:52:01 +0100 | [diff] [blame] | 44 | image: onap/dmaap/dmaap-bc:2.0.12 |
Dominic Lunanuova | e825fee | 2018-04-12 14:40:34 +0000 | [diff] [blame] | 45 | pullPolicy: Always |
| 46 | |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 47 | #DMaaP Bus Controller client image for provisioning at deploy time |
efiacor | 501c7b6 | 2023-04-25 14:52:01 +0100 | [diff] [blame] | 48 | dbcClientImage: onap/dmaap/dbc-client:2.0.12 |
Dominic Lunanuova | e825fee | 2018-04-12 14:40:34 +0000 | [diff] [blame] | 49 | |
| 50 | # application configuration |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 51 | dmaapMessageRouterService: &mr_name message-router |
| 52 | dmaapDataRouterProvService: &dr_prov_name dmaap-dr-prov |
| 53 | dmaapDataRouterNodeService: &dr_node_name dmaap-dr-node |
dglFromAtt | fb58a9d | 2019-04-12 20:12:26 +0000 | [diff] [blame] | 54 | |
Dominic Lunanuova | e825fee | 2018-04-12 14:40:34 +0000 | [diff] [blame] | 55 | nodeSelector: {} |
| 56 | |
| 57 | affinity: {} |
| 58 | |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 59 | containerPort: &svc_port 8080 |
| 60 | |
| 61 | service: |
| 62 | type: ClusterIP |
| 63 | name: &svc_name dmaap-bc |
| 64 | ports: |
| 65 | - name: &port http |
| 66 | port: *svc_port |
| 67 | |
| 68 | ingress: |
| 69 | enabled: false |
| 70 | service: |
| 71 | - baseaddr: "dmaap-bc-api" |
| 72 | name: *svc_name |
| 73 | port: *svc_port |
| 74 | config: |
| 75 | ssl: "redirect" |
| 76 | |
Dominic Lunanuova | e825fee | 2018-04-12 14:40:34 +0000 | [diff] [blame] | 77 | # probe configuration parameters |
| 78 | liveness: |
| 79 | initialDelaySeconds: 10 |
| 80 | periodSeconds: 10 |
| 81 | # necessary to disable liveness probe when setting breakpoints |
| 82 | # in debugger so K8s doesn't restart unresponsive container |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 83 | port: *svc_port |
Sylvain Desbureaux | 0de113e | 2020-03-10 09:57:25 +0100 | [diff] [blame] | 84 | enabled: true |
Dominic Lunanuova | e825fee | 2018-04-12 14:40:34 +0000 | [diff] [blame] | 85 | |
| 86 | readiness: |
| 87 | initialDelaySeconds: 10 |
| 88 | periodSeconds: 10 |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 89 | port: *svc_port |
Dominic Lunanuova | e825fee | 2018-04-12 14:40:34 +0000 | [diff] [blame] | 90 | |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 91 | usePostgres: &use_pg true |
Dominic Lunanuova | e825fee | 2018-04-12 14:40:34 +0000 | [diff] [blame] | 92 | |
Dominic Lunanuova | e825fee | 2018-04-12 14:40:34 +0000 | [diff] [blame] | 93 | postgres: |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 94 | # For Dev deployments, use in memory DB |
| 95 | # postgres |
| 96 | # enabled: false |
| 97 | enabled: true |
| 98 | nameOverride: &pg_name dbc-postgres |
Dominic Lunanuova | e825fee | 2018-04-12 14:40:34 +0000 | [diff] [blame] | 99 | service: |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 100 | name: *pg_name |
Dominic Lunanuova | 1ba2b25 | 2018-04-30 19:01:31 +0000 | [diff] [blame] | 101 | name2: dbc-pg-primary |
| 102 | name3: dbc-pg-replica |
Dominic Lunanuova | e825fee | 2018-04-12 14:40:34 +0000 | [diff] [blame] | 103 | container: |
| 104 | name: |
Dominic Lunanuova | 1ba2b25 | 2018-04-30 19:01:31 +0000 | [diff] [blame] | 105 | primary: dbc-pg-primary |
| 106 | replica: dbc-pg-replica |
Dominic Lunanuova | e825fee | 2018-04-12 14:40:34 +0000 | [diff] [blame] | 107 | config: |
| 108 | pgUserName: dmaap_admin |
| 109 | pgDatabase: dmaap |
Krzysztof Opasiak | 03a125a | 2020-05-05 02:11:09 +0200 | [diff] [blame] | 110 | pgUserExternalSecret: *pgUserCredsSecretName |
| 111 | pgRootPasswordExternalSecret: *pgRootPassSecretName |
Dominic Lunanuova | 1ba2b25 | 2018-04-30 19:01:31 +0000 | [diff] [blame] | 112 | persistence: |
| 113 | mountSubPath: dbc/data |
| 114 | mountInitPath: dbc |
Dominic Lunanuova | e825fee | 2018-04-12 14:40:34 +0000 | [diff] [blame] | 115 | |
Prateekinlinux | 9f5dc04 | 2018-09-20 14:08:54 +0000 | [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 | |
Prateekinlinux | 9f5dc04 | 2018-09-20 14:08:54 +0000 | [diff] [blame] | 119 | # Segregation for Different environment (Small and Large) |
| 120 | resources: |
| 121 | small: |
| 122 | limits: |
| 123 | cpu: 2 |
| 124 | memory: 4Gi |
| 125 | requests: |
| 126 | cpu: 1 |
| 127 | memory: 1Gi |
| 128 | large: |
| 129 | limits: |
| 130 | cpu: 4 |
| 131 | memory: 8Gi |
| 132 | requests: |
| 133 | cpu: 2 |
| 134 | memory: 2Gi |
| 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 | securityContext: |
| 138 | user_id: 1000 |
| 139 | group_id: 101 |
| 140 | |
farida azmy | 13388ba | 2021-03-17 11:33:28 +0200 | [diff] [blame] | 141 | #Pods Service Account |
| 142 | serviceAccount: |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 143 | nameOverride: *svc_name |
farida azmy | 13388ba | 2021-03-17 11:33:28 +0200 | [diff] [blame] | 144 | roles: |
| 145 | - read |
Andreas Geissler | 0d5c917 | 2022-04-19 18:10:52 +0200 | [diff] [blame] | 146 | |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 147 | readinessCheck: |
| 148 | wait_for: |
| 149 | - *mr_name |
| 150 | - *dr_node_name |
| 151 | |
Andreas Geissler | 0d5c917 | 2022-04-19 18:10:52 +0200 | [diff] [blame] | 152 | wait_for_job_container: |
| 153 | containers: |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 154 | - 'dmaap-provisioning-job' |