blob: 25b74d75025560aaf686ca9d23d4bb10b028a782 [file] [log] [blame]
Niranjana01463a92021-07-30 14:40:44 +00001# ================================ LICENSE_START =============================
2# ============================================================================
3# Copyright (C) 2021 Wipro Limited.
Jack Lucasc9797322022-03-18 12:32:59 -04004# Copyright (c) 2022 J. F. Lucas. All rights reserved.
Niranjana01463a92021-07-30 14:40:44 +00005# ============================================================================
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#################################################################
22global:
23 nodePortPrefix: 302
24 nodePortPrefixExt: 304
Maciej Wereski7000a7c2021-12-16 12:24:06 +010025 centralizedLoggingEnabled: true
Niranjana01463a92021-07-30 14:40:44 +000026
27#################################################################
28# Filebeat Configuration Defaults.
29#################################################################
30filebeatConfig:
31 logstashServiceName: log-ls
32 logstashPort: 5044
33
34#################################################################
35# Secrets Configuration.
36#################################################################
37secrets:
38 - uid: &aafCredsUID aafcreds
39 type: basicAuth
40 login: '{{ .Values.aafCreds.identity }}'
41 password: '{{ .Values.aafCreds.password }}'
42 passwordPolicy: required
43 - uid: &pgUserCredsSecretUid pg-user-creds
44 name: &pgUserCredsSecretName '{{ include "common.release" . }}-datalake-pg-user-creds'
45 type: basicAuth
46 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "datalake-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
47 login: '{{ .Values.postgres.config.pgUserName }}'
48 password: '{{ .Values.postgres.config.pgUserPassword }}'
49 passwordPolicy: generate
50
51#################################################################
52# InitContainer Images.
53#################################################################
54tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
Niranjana01463a92021-07-30 14:40:44 +000055
56#################################################################
57# Application Configuration Defaults.
58#################################################################
59# Application Image
60image: onap/org.onap.dcaegen2.services.datalakefeeder:1.1.1
61pullPolicy: Always
62
63# Log directory where logging sidecar should look for log files
Maciej Wereski7000a7c2021-12-16 12:24:06 +010064# if path is set to null sidecar won't be deployed in spite of
65# global.centralizedLoggingEnabled setting.
66log:
67 path: /var/log/ONAP/dcaegen2/services/datalake
68logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
Niranjana01463a92021-07-30 14:40:44 +000069
70# Directory where TLS certs should be stored
71# if absent, no certs will be retrieved and stored
72certDirectory: /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.
rope2525a7fbee2022-07-25 20:00:36 +010077tlsServer: false
Niranjana01463a92021-07-30 14:40:44 +000078
79# Dependencies
80readinessCheck:
81 wait_for:
Niranjana01463a92021-07-30 14:40:44 +000082 - &postgresName dcae-datalake-postgres
83
84# Probe Configuration
85readiness:
86 initialDelaySeconds: 90
87 periodSeconds: 90
88 timeoutSeconds: 10
89 path: /datalake/v1/topics
90 scheme: HTTP
91 port: 1680
92
93# Service Configuration
94service:
95 type: ClusterIP
96 name: dl-feeder
97 ports:
98 - name: http
99 port: 1680
100 port_protocol: http
101
102# AAF Credentials
103aafCreds:
104 identity: dcae@dcae.onap.org
105 password: demo123456!
106
107credentials:
108- name: PG_USER
109 uid: *pgUserCredsSecretUid
110 key: login
111- name: PG_PASSWORD
112 uid: *pgUserCredsSecretUid
113 key: password
114
115# Initial Application Configuration
116applicationConfig:
117 PG_HOST: dcae-datalake-pg-primary
118 PG_PORT: 5432
119 PG_USER: ${PG_USER}
120 PG_PASSWORD: ${PG_PASSWORD}
121 PG_DB: datalake
122 HOSTNAME: dcae-datalake-feeder
123 CONSUL_HOST: consul
124 CONFIG_BINDING_SERVICE: 30408
125
126applicationEnv:
127 PG_HOST: dcae-datalake-pg-primary
128 PG_PORT: '5432'
129 PG_USER:
130 secretUid: *pgUserCredsSecretUid
131 key: login
132 PG_PASSWORD:
133 secretUid: *pgUserCredsSecretUid
134 key: password
135 PG_DB: datalake
136
137# Resource Limit Flavor -By Default Using Small
138flavor: small
139
140# Segregation for Different Environment (Small and Large)
141resources:
142 small:
143 limits:
144 cpu: 1
145 memory: 1Gi
146 requests:
147 cpu: 1
148 memory: 1Gi
149 large:
150 limits:
151 cpu: 2
152 memory: 2Gi
153 requests:
154 cpu: 2
155 memory: 2Gi
156 unlimited: {}
157
158#################################################################
159# Application configuration Overriding Defaults in the Postgres.
160#################################################################
161postgres:
162 nameOverride: *postgresName
163 service:
164 name: *postgresName
165 name2: dcae-datalake-pg-primary
166 name3: dcae-datalake-pg-replica
167 container:
168 name:
169 primary: dcae-datalake-pg-primary
170 replica: dcae-datalake-pg-replica
171 persistence:
172 mountSubPath: datalake/data
173 mountInitPath: datalake
174 config:
175 pgUserName: datalake
176 pgDatabase: datalake
177 pgUserExternalSecret: *pgUserCredsSecretName
farida azmycb03ac72021-09-12 16:14:12 +0200178
179#Pods Service Account
180serviceAccount:
181 nameOverride: dcae-datalake-feeder
182 roles:
183 - read