Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / dcaegen2-services / components / dcae-datalake-feeder / values.yaml
1 # ================================ LICENSE_START =============================
2 # ============================================================================
3 #  Copyright (C) 2021 Wipro Limited.
4 #  Copyright (c) 2022-2023 J. F. Lucas. All rights reserved.
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
25   centralizedLoggingEnabled: true
26
27 #################################################################
28 # Filebeat Configuration Defaults.
29 #################################################################
30 filebeatConfig:
31   logstashServiceName: log-ls
32   logstashPort: 5044
33
34 #################################################################
35 # Secrets Configuration.
36 #################################################################
37 secrets:
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 #################################################################
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
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" . }}'
59
60 # Probe Configuration
61 readiness:
62   initialDelaySeconds: 90
63   periodSeconds: 90
64   timeoutSeconds: 10
65   path: /datalake/v1/topics
66   scheme: HTTP
67   port: 1680
68
69 # Service Configuration
70 service:
71   type: ClusterIP
72   name: dl-feeder
73   ports:
74     - name: http
75       port: 1680
76       port_protocol: http
77
78 serviceMesh:
79   authorizationPolicy:
80     authorizedPrincipals:
81       - serviceAccount: dcae-datalake-admin-ui-read
82       - serviceAccount: dcae-datalake-des-read
83     authorizedPrincipalsPostgres:
84       - serviceAccount: dcae-datalake-des-read
85       - serviceAccount: dcae-datalake-feeder-read
86
87 credentials:
88 - name: PG_USER
89   uid:  *pgUserCredsSecretUid
90   key: login
91 - name: PG_PASSWORD
92   uid: *pgUserCredsSecretUid
93   key: password
94
95 # Initial Application Configuration
96 applicationConfig:
97   PG_HOST: dcae-datalake-pg-primary
98   PG_PORT: 5432
99   PG_USER: ${PG_USER}
100   PG_PASSWORD: ${PG_PASSWORD}
101   PG_DB: datalake
102   HOSTNAME: dcae-datalake-feeder
103   CONSUL_HOST: consul
104   CONFIG_BINDING_SERVICE: 30408
105
106 applicationEnv:
107   PG_HOST: dcae-datalake-pg-primary
108   PG_PORT: '5432'
109   PG_USER:
110     secretUid: *pgUserCredsSecretUid
111     key: login
112   PG_PASSWORD:
113     secretUid: *pgUserCredsSecretUid
114     key: password
115   PG_DB: datalake
116
117 # Resource Limit Flavor -By Default Using Small
118 flavor: small
119
120 # Segregation for Different Environment (Small and Large)
121 resources:
122   small:
123     limits:
124       cpu: "2"
125       memory: "1Gi"
126     requests:
127       cpu: "1"
128       memory: "1Gi"
129   large:
130     limits:
131       cpu: "4"
132       memory: "2Gi"
133     requests:
134       cpu: "2"
135       memory: "2Gi"
136   unlimited: {}
137
138 #################################################################
139 # Application configuration Overriding Defaults in the Postgres.
140 #################################################################
141 postgres:
142   nameOverride: &postgresName dcae-datalake-postgres
143   service:
144     name: *postgresName
145     name2: dcae-datalake-pg-primary
146     name3: dcae-datalake-pg-replica
147   container:
148     name:
149       primary: dcae-datalake-pg-primary
150       replica: dcae-datalake-pg-replica
151   persistence:
152     mountSubPath: datalake/data
153     mountInitPath: datalake
154   config:
155     pgUserName: datalake
156     pgDatabase: datalake
157     pgUserExternalSecret: *pgUserCredsSecretName
158
159 readinessCheck:
160   wait_for:
161     services:
162       - '{{ .Values.postgres.service.name2 }}'
163
164 #Pods Service Account
165 serviceAccount:
166   nameOverride: dcae-datalake-feeder
167   roles:
168     - read