blob: 552e00cfbd4f9769a39338e77b2f7d9851340d00 [file] [log] [blame]
Niranjana01463a92021-07-30 14:40:44 +00001# ================================ LICENSE_START =============================
2# ============================================================================
3# Copyright (C) 2021 Wipro Limited.
Jack Lucas64da4e72023-03-03 14:46:05 -05004# Copyright (c) 2022-2023 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:
Niranjana01463a92021-07-30 14:40:44 +000038 - 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#################################################################
Niranjana01463a92021-07-30 14:40:44 +000047# Application Configuration Defaults.
48#################################################################
49# Application Image
50image: onap/org.onap.dcaegen2.services.datalakefeeder:1.1.1
51pullPolicy: Always
52
53# Log directory where logging sidecar should look for log files
Maciej Wereski7000a7c2021-12-16 12:24:06 +010054# if path is set to null sidecar won't be deployed in spite of
55# global.centralizedLoggingEnabled setting.
56log:
57 path: /var/log/ONAP/dcaegen2/services/datalake
58logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
Niranjana01463a92021-07-30 14:40:44 +000059
Niranjana01463a92021-07-30 14:40:44 +000060# Dependencies
61readinessCheck:
62 wait_for:
Niranjana01463a92021-07-30 14:40:44 +000063 - &postgresName dcae-datalake-postgres
64
65# Probe Configuration
66readiness:
67 initialDelaySeconds: 90
68 periodSeconds: 90
69 timeoutSeconds: 10
70 path: /datalake/v1/topics
71 scheme: HTTP
72 port: 1680
73
74# Service Configuration
75service:
76 type: ClusterIP
77 name: dl-feeder
78 ports:
79 - name: http
80 port: 1680
81 port_protocol: http
82
Niranjana01463a92021-07-30 14:40:44 +000083credentials:
84- name: PG_USER
85 uid: *pgUserCredsSecretUid
86 key: login
87- name: PG_PASSWORD
88 uid: *pgUserCredsSecretUid
89 key: password
90
91# Initial Application Configuration
92applicationConfig:
93 PG_HOST: dcae-datalake-pg-primary
94 PG_PORT: 5432
95 PG_USER: ${PG_USER}
96 PG_PASSWORD: ${PG_PASSWORD}
97 PG_DB: datalake
98 HOSTNAME: dcae-datalake-feeder
99 CONSUL_HOST: consul
100 CONFIG_BINDING_SERVICE: 30408
101
102applicationEnv:
103 PG_HOST: dcae-datalake-pg-primary
104 PG_PORT: '5432'
105 PG_USER:
106 secretUid: *pgUserCredsSecretUid
107 key: login
108 PG_PASSWORD:
109 secretUid: *pgUserCredsSecretUid
110 key: password
111 PG_DB: datalake
112
113# Resource Limit Flavor -By Default Using Small
114flavor: small
115
116# Segregation for Different Environment (Small and Large)
117resources:
118 small:
119 limits:
120 cpu: 1
121 memory: 1Gi
122 requests:
123 cpu: 1
124 memory: 1Gi
125 large:
126 limits:
127 cpu: 2
128 memory: 2Gi
129 requests:
130 cpu: 2
131 memory: 2Gi
132 unlimited: {}
133
134#################################################################
135# Application configuration Overriding Defaults in the Postgres.
136#################################################################
137postgres:
138 nameOverride: *postgresName
139 service:
140 name: *postgresName
141 name2: dcae-datalake-pg-primary
142 name3: dcae-datalake-pg-replica
143 container:
144 name:
145 primary: dcae-datalake-pg-primary
146 replica: dcae-datalake-pg-replica
147 persistence:
148 mountSubPath: datalake/data
149 mountInitPath: datalake
150 config:
151 pgUserName: datalake
152 pgDatabase: datalake
153 pgUserExternalSecret: *pgUserCredsSecretName
farida azmycb03ac72021-09-12 16:14:12 +0200154
155#Pods Service Account
156serviceAccount:
157 nameOverride: dcae-datalake-feeder
158 roles:
159 - read