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