blob: 4ed0a836775fdc1c0a689a07bd9996a0a4f88366 [file] [log] [blame]
Vijay Venkatesh Kumar27dc2e52021-05-21 21:54:13 -04001# ================================ LICENSE_START =============================
2# ============================================================================
3# Copyright (c) 2021 AT&T Intellectual Property. All rights reserved.
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
Maciej Wereski7000a7c2021-12-16 12:24:06 +010024 centralizedLoggingEnabled: true
Vijay Venkatesh Kumar27dc2e52021-05-21 21:54:13 -040025
26#################################################################
27# Filebeat Configuration Defaults.
28#################################################################
29filebeatConfig:
30 logstashServiceName: log-ls
31 logstashPort: 5044
32
33#################################################################
34# Secrets Configuration.
35#################################################################
36secrets:
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" . }}-heartbeat-pg-user-creds'
44 type: basicAuth
45 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "heartbeat-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#################################################################
53tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
Jack Lucasd263e692021-08-16 16:02:23 -040054consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.1.1
Vijay Venkatesh Kumar27dc2e52021-05-21 21:54:13 -040055
56#################################################################
57# Application Configuration Defaults.
58#################################################################
59# Application Image
Vijay Venkatesh Kumar8eeeecd2021-09-13 17:02:05 -040060image: onap/org.onap.dcaegen2.services.heartbeat:2.3.1
Vijay Venkatesh Kumar27dc2e52021-05-21 21:54:13 -040061pullPolicy: 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/heartbeat
68logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
Vijay Venkatesh Kumar27dc2e52021-05-21 21:54:13 -040069
70# Directory where TLS certs should be stored
71# if absent, no certs will be retrieved and stored
72certDirectory: /opt/app/heartbeat/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.
77tlsServer: true
78
79# Dependencies
80readinessCheck:
81 wait_for:
82 - dcae-config-binding-service
83 - aaf-cm
84 - &postgresName dcae-heartbeat-postgres
85
86# Probe Configuration
87readiness:
88 initialDelaySeconds: 10
89 periodSeconds: 15
90 timeoutSeconds: 1
91 path: /
92 scheme: HTTP
93 port: 10002
94
95# Service Configuration
96service:
97 type: ClusterIP
98 name: dcae-heartbeat
99 ports:
100 - name: http
101 port: 10002
102 port_protocol: http
103
104# AAF Credentials
105aafCreds:
106 identity: dcae@dcae.onap.org
107 password: demo123456!
108
109credentials:
110- name: AAF_IDENTITY
111 uid: *aafCredsUID
112 key: login
113- name: AAF_PASSWORD
114 uid: *aafCredsUID
115 key: password
116- name: HEARTBEAT_PG_USERNAME
117 uid: *pgUserCredsSecretUid
118 key: login
119- name: HEARTBEAT_PG_PASSWORD
120 uid: *pgUserCredsSecretUid
121 key: password
122
123
124# Initial Application Configuration
125applicationConfig:
126 CBS_polling_allowed: "True"
127 CBS_polling_interval: "300"
128 consumerID: "1"
129 groupID: "hbgrpID"
130 pg_ipAddress: dcae-heartbeat-pg-primary
131 pg_passwd: ${HEARTBEAT_PG_PASSWORD}
132 pg_portNum: 5432
133 pg_userName: ${HEARTBEAT_PG_USERNAME}
134 pg_dbName: heartbeat
135 heartbeat_config: '{"vnfs": [{"eventName": "Heartbeat_vDNS","heartbeatcountmissed": 3,"heartbeatinterval": 60,"closedLoopControlName": "ControlLoopEvent1", "policyVersion": "1.0.0.5", "policyName":"vFireWall","policyScope": "resource=sampleResource,type=sampletype,CLName=sampleCLName","target_type": "VNF", "target": "genVnfName", "version": "1.0"}, {"eventName": "Heartbeat_vFW","heartbeatcountmissed": 3, "heartbeatinterval": 60,"closedLoopControlName": "ControlLoopEvent1","policyVersion": "1.0.0.5","policyName": "vFireWall","policyScope": "resource=sampleResource,type=sampletype,CLName=sampleCLName", "target_type":"VNF", "target": "genVnfName", "version": "1.0"}, {"eventName": "Heartbeat_xx","heartbeatcountmissed": 3, "heartbeatinterval": 60,"closedLoopControlName": "ControlLoopEvent1","policyVersion": "1.0.0.5","policyName": "vFireWall", "policyScope": "resource=sampleResource,type=sampletype,CLName=sampleCLName","target_type": "VNF","target": "genVnfName","version": "1.0"}]}'
136 streams_publishes:
137 dcae_cl_out:
138 dmaap_info:
139 topic_url: "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT"
140 type: message_router
141 streams_subscribes:
142 ves-heartbeat:
143 dmaap_info:
144 topic_url: "http://message-router:3904/events/unauthenticated.SEC_HEARTBEAT_OUTPUT"
145 type: message_router
146
147#applicationEnv:
148# HEARTBEAT_PG_URL: &dcaeheartbeatPgPrimary dcae-heartbeat-pg-primary
149# HEARTBEAT_PG_USERNAME:
150# secretUid: *pgUserCredsSecretUid
151# key: login
152# HEARTBEAT_PG_PASSWORD:
153# secretUid: *pgUserCredsSecretUid
154# key: password
155
156# Resource Limit Flavor -By Default Using Small
157flavor: small
158
159# Segregation for Different Environment (Small and Large)
160resources:
161 small:
162 limits:
163 cpu: 1
164 memory: 1Gi
165 requests:
166 cpu: 1
167 memory: 1Gi
168 large:
169 limits:
170 cpu: 2
171 memory: 2Gi
172 requests:
173 cpu: 2
174 memory: 2Gi
175 unlimited: {}
176
177#################################################################
178# Application configuration Overriding Defaults in the Postgres.
179#################################################################
180postgres:
181 nameOverride: *postgresName
182 service:
183 name: *postgresName
184 name2: dcae-heartbeat-pg-primary
185 name3: dcae-heartbeat-pg-replica
186 container:
187 name:
188 primary: dcae-heartbeat-pg-primary
189 replica: dcae-heartbeat-pg-replica
190 persistence:
191 mountSubPath: heartbeat/data
192 mountInitPath: heartbeat
193 config:
194 pgUserName: heartbeat
195 pgDatabase: heartbeat
196 pgUserExternalSecret: *pgUserCredsSecretName
farida azmycb03ac72021-09-12 16:14:12 +0200197
198#Pods Service Account
199serviceAccount:
200 nameOverride: dcae-heartbeat
201 roles:
202 - read