blob: 2452dc8a18ec9e47361cdb31d3de93838b5095c5 [file] [log] [blame]
Niranjana01463a92021-07-30 14:40:44 +00001# ================================ 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#################################################################
21global:
22 nodePortPrefix: 302
23 nodePortPrefixExt: 304
24
25#################################################################
26# Filebeat Configuration Defaults.
27#################################################################
28filebeatConfig:
29 logstashServiceName: log-ls
30 logstashPort: 5044
31
32#################################################################
33# Secrets Configuration.
34#################################################################
35secrets:
36 - uid: &aafCredsUID aafcreds
37 type: basicAuth
38 login: '{{ .Values.aafCreds.identity }}'
39 password: '{{ .Values.aafCreds.password }}'
40 passwordPolicy: required
41 - uid: &pgUserCredsSecretUid pg-user-creds
42 name: &pgUserCredsSecretName '{{ include "common.release" . }}-datalake-pg-user-creds'
43 type: basicAuth
44 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "datalake-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
45 login: '{{ .Values.postgres.config.pgUserName }}'
46 password: '{{ .Values.postgres.config.pgUserPassword }}'
47 passwordPolicy: generate
48
49#################################################################
50# InitContainer Images.
51#################################################################
52tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
Jack Lucasd263e692021-08-16 16:02:23 -040053consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.1.1
Niranjana01463a92021-07-30 14:40:44 +000054
55#################################################################
56# Application Configuration Defaults.
57#################################################################
58# Application Image
59image: onap/org.onap.dcaegen2.services.datalakefeeder:1.1.1
60pullPolicy: Always
61
62# Log directory where logging sidecar should look for log files
63# if absent, no sidecar will be deployed
64logDirectory: /var/log/ONAP/dcaegen2/services/datalake
65
66# Directory where TLS certs should be stored
67# if absent, no certs will be retrieved and stored
68certDirectory: /opt/app/datalake/etc/certs
69
70# TLS role -- set to true if microservice acts as server
71# If true, an init container will retrieve a server cert
72# and key from AAF and mount them in certDirectory.
73tlsServer: true
74
75# Dependencies
76readinessCheck:
77 wait_for:
78 - dcae-config-binding-service
79 - aaf-cm
80 - &postgresName dcae-datalake-postgres
81
82# Probe Configuration
83readiness:
84 initialDelaySeconds: 90
85 periodSeconds: 90
86 timeoutSeconds: 10
87 path: /datalake/v1/topics
88 scheme: HTTP
89 port: 1680
90
91# Service Configuration
92service:
93 type: ClusterIP
94 name: dl-feeder
95 ports:
96 - name: http
97 port: 1680
98 port_protocol: http
99
100# AAF Credentials
101aafCreds:
102 identity: dcae@dcae.onap.org
103 password: demo123456!
104
105credentials:
106- name: PG_USER
107 uid: *pgUserCredsSecretUid
108 key: login
109- name: PG_PASSWORD
110 uid: *pgUserCredsSecretUid
111 key: password
112
113# Initial Application Configuration
114applicationConfig:
115 PG_HOST: dcae-datalake-pg-primary
116 PG_PORT: 5432
117 PG_USER: ${PG_USER}
118 PG_PASSWORD: ${PG_PASSWORD}
119 PG_DB: datalake
120 HOSTNAME: dcae-datalake-feeder
121 CONSUL_HOST: consul
122 CONFIG_BINDING_SERVICE: 30408
123
124applicationEnv:
125 PG_HOST: dcae-datalake-pg-primary
126 PG_PORT: '5432'
127 PG_USER:
128 secretUid: *pgUserCredsSecretUid
129 key: login
130 PG_PASSWORD:
131 secretUid: *pgUserCredsSecretUid
132 key: password
133 PG_DB: datalake
134
135# Resource Limit Flavor -By Default Using Small
136flavor: small
137
138# Segregation for Different Environment (Small and Large)
139resources:
140 small:
141 limits:
142 cpu: 1
143 memory: 1Gi
144 requests:
145 cpu: 1
146 memory: 1Gi
147 large:
148 limits:
149 cpu: 2
150 memory: 2Gi
151 requests:
152 cpu: 2
153 memory: 2Gi
154 unlimited: {}
155
156#################################################################
157# Application configuration Overriding Defaults in the Postgres.
158#################################################################
159postgres:
160 nameOverride: *postgresName
161 service:
162 name: *postgresName
163 name2: dcae-datalake-pg-primary
164 name3: dcae-datalake-pg-replica
165 container:
166 name:
167 primary: dcae-datalake-pg-primary
168 replica: dcae-datalake-pg-replica
169 persistence:
170 mountSubPath: datalake/data
171 mountInitPath: datalake
172 config:
173 pgUserName: datalake
174 pgDatabase: datalake
175 pgUserExternalSecret: *pgUserCredsSecretName
farida azmycb03ac72021-09-12 16:14:12 +0200176
177#Pods Service Account
178serviceAccount:
179 nameOverride: dcae-datalake-feeder
180 roles:
181 - read