Niranjana | 01463a9 | 2021-07-30 14:40:44 +0000 | [diff] [blame] | 1 | # ================================ LICENSE_START ============================= |
| 2 | # ============================================================================ |
| 3 | # Copyright (C) 2021 Wipro Limited. |
Jack Lucas | 64da4e7 | 2023-03-03 14:46:05 -0500 | [diff] [blame] | 4 | # Copyright (c) 2022-2023 J. F. Lucas. All rights reserved. |
Niranjana | 01463a9 | 2021-07-30 14:40:44 +0000 | [diff] [blame] | 5 | # ============================================================================ |
| 6 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | # you may not use this file except in compliance with the License. |
| 8 | # You may obtain a copy of the License at |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, software |
| 13 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | # See the License for the specific language governing permissions and |
| 16 | # limitations under the License. |
| 17 | # ================================= LICENSE_END ============================== |
| 18 | |
| 19 | ################################################################# |
| 20 | # Global Configuration Defaults. |
| 21 | ################################################################# |
| 22 | global: |
| 23 | nodePortPrefix: 302 |
| 24 | nodePortPrefixExt: 304 |
Maciej Wereski | 7000a7c | 2021-12-16 12:24:06 +0100 | [diff] [blame] | 25 | centralizedLoggingEnabled: true |
Niranjana | 01463a9 | 2021-07-30 14:40:44 +0000 | [diff] [blame] | 26 | |
| 27 | ################################################################# |
| 28 | # Filebeat Configuration Defaults. |
| 29 | ################################################################# |
| 30 | filebeatConfig: |
| 31 | logstashServiceName: log-ls |
| 32 | logstashPort: 5044 |
| 33 | |
| 34 | ################################################################# |
| 35 | # Secrets Configuration. |
| 36 | ################################################################# |
| 37 | secrets: |
Niranjana | 01463a9 | 2021-07-30 14:40:44 +0000 | [diff] [blame] | 38 | - uid: &pgUserCredsSecretUid pg-user-creds |
| 39 | name: &pgUserCredsSecretName '{{ include "common.release" . }}-datalake-pg-user-creds' |
| 40 | type: basicAuth |
| 41 | externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "datalake-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}' |
| 42 | login: '{{ .Values.postgres.config.pgUserName }}' |
| 43 | password: '{{ .Values.postgres.config.pgUserPassword }}' |
| 44 | passwordPolicy: generate |
| 45 | |
| 46 | ################################################################# |
Niranjana | 01463a9 | 2021-07-30 14:40:44 +0000 | [diff] [blame] | 47 | # Application Configuration Defaults. |
| 48 | ################################################################# |
| 49 | # Application Image |
| 50 | image: onap/org.onap.dcaegen2.services.datalakefeeder:1.1.1 |
| 51 | pullPolicy: Always |
| 52 | |
| 53 | # Log directory where logging sidecar should look for log files |
Maciej Wereski | 7000a7c | 2021-12-16 12:24:06 +0100 | [diff] [blame] | 54 | # if path is set to null sidecar won't be deployed in spite of |
| 55 | # global.centralizedLoggingEnabled setting. |
| 56 | log: |
| 57 | path: /var/log/ONAP/dcaegen2/services/datalake |
| 58 | logConfigMapNamePrefix: '{{ include "common.fullname" . }}' |
Niranjana | 01463a9 | 2021-07-30 14:40:44 +0000 | [diff] [blame] | 59 | |
Niranjana | 01463a9 | 2021-07-30 14:40:44 +0000 | [diff] [blame] | 60 | # Dependencies |
| 61 | readinessCheck: |
| 62 | wait_for: |
Niranjana | 01463a9 | 2021-07-30 14:40:44 +0000 | [diff] [blame] | 63 | - &postgresName dcae-datalake-postgres |
| 64 | |
| 65 | # Probe Configuration |
| 66 | readiness: |
| 67 | initialDelaySeconds: 90 |
| 68 | periodSeconds: 90 |
| 69 | timeoutSeconds: 10 |
| 70 | path: /datalake/v1/topics |
| 71 | scheme: HTTP |
| 72 | port: 1680 |
| 73 | |
| 74 | # Service Configuration |
| 75 | service: |
| 76 | type: ClusterIP |
| 77 | name: dl-feeder |
| 78 | ports: |
| 79 | - name: http |
| 80 | port: 1680 |
| 81 | port_protocol: http |
| 82 | |
AndrewLamb | bd6ff6b | 2023-05-04 15:56:49 +0100 | [diff] [blame] | 83 | serviceMesh: |
| 84 | authorizationPolicy: |
| 85 | authorizedPrincipals: |
| 86 | - serviceAccount: dcae-datalake-admin-ui-read |
| 87 | - serviceAccount: dcae-datalake-des-read |
| 88 | authorizedPrincipalsPostgres: |
| 89 | - serviceAccount: dcae-datalake-des-read |
| 90 | - serviceAccount: dcae-datalake-feeder-read |
| 91 | |
Niranjana | 01463a9 | 2021-07-30 14:40:44 +0000 | [diff] [blame] | 92 | credentials: |
| 93 | - name: PG_USER |
| 94 | uid: *pgUserCredsSecretUid |
| 95 | key: login |
| 96 | - name: PG_PASSWORD |
| 97 | uid: *pgUserCredsSecretUid |
| 98 | key: password |
| 99 | |
| 100 | # Initial Application Configuration |
| 101 | applicationConfig: |
| 102 | PG_HOST: dcae-datalake-pg-primary |
| 103 | PG_PORT: 5432 |
| 104 | PG_USER: ${PG_USER} |
| 105 | PG_PASSWORD: ${PG_PASSWORD} |
| 106 | PG_DB: datalake |
| 107 | HOSTNAME: dcae-datalake-feeder |
| 108 | CONSUL_HOST: consul |
| 109 | CONFIG_BINDING_SERVICE: 30408 |
| 110 | |
| 111 | applicationEnv: |
| 112 | PG_HOST: dcae-datalake-pg-primary |
| 113 | PG_PORT: '5432' |
| 114 | PG_USER: |
| 115 | secretUid: *pgUserCredsSecretUid |
| 116 | key: login |
| 117 | PG_PASSWORD: |
| 118 | secretUid: *pgUserCredsSecretUid |
| 119 | key: password |
| 120 | PG_DB: datalake |
| 121 | |
| 122 | # Resource Limit Flavor -By Default Using Small |
| 123 | flavor: small |
| 124 | |
| 125 | # Segregation for Different Environment (Small and Large) |
| 126 | resources: |
| 127 | small: |
| 128 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 129 | cpu: "2" |
| 130 | memory: "1Gi" |
Niranjana | 01463a9 | 2021-07-30 14:40:44 +0000 | [diff] [blame] | 131 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 132 | cpu: "1" |
| 133 | memory: "1Gi" |
Niranjana | 01463a9 | 2021-07-30 14:40:44 +0000 | [diff] [blame] | 134 | large: |
| 135 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 136 | cpu: "4" |
| 137 | memory: "2Gi" |
Niranjana | 01463a9 | 2021-07-30 14:40:44 +0000 | [diff] [blame] | 138 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 139 | cpu: "2" |
| 140 | memory: "2Gi" |
Niranjana | 01463a9 | 2021-07-30 14:40:44 +0000 | [diff] [blame] | 141 | unlimited: {} |
| 142 | |
| 143 | ################################################################# |
| 144 | # Application configuration Overriding Defaults in the Postgres. |
| 145 | ################################################################# |
| 146 | postgres: |
| 147 | nameOverride: *postgresName |
| 148 | service: |
| 149 | name: *postgresName |
| 150 | name2: dcae-datalake-pg-primary |
| 151 | name3: dcae-datalake-pg-replica |
| 152 | container: |
| 153 | name: |
| 154 | primary: dcae-datalake-pg-primary |
| 155 | replica: dcae-datalake-pg-replica |
| 156 | persistence: |
| 157 | mountSubPath: datalake/data |
| 158 | mountInitPath: datalake |
| 159 | config: |
| 160 | pgUserName: datalake |
| 161 | pgDatabase: datalake |
| 162 | pgUserExternalSecret: *pgUserCredsSecretName |
farida azmy | cb03ac7 | 2021-09-12 16:14:12 +0200 | [diff] [blame] | 163 | |
| 164 | #Pods Service Account |
| 165 | serviceAccount: |
| 166 | nameOverride: dcae-datalake-feeder |
| 167 | roles: |
| 168 | - read |