1 # ================================ LICENSE_START =============================
2 # ============================================================================
3 # Copyright (c) 2021-2023 AT&T Intellectual Property. All rights reserved.
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
10 # http://www.apache.org/licenses/LICENSE-2.0
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 ==============================
19 #################################################################
20 # Global Configuration Defaults.
21 #################################################################
24 nodePortPrefixExt: 304
25 centralizedLoggingEnabled: true
27 #################################################################
28 # Filebeat Configuration Defaults.
29 #################################################################
31 logstashServiceName: log-ls
34 #################################################################
35 # Secrets Configuration.
36 #################################################################
38 - uid: &pgUserCredsSecretUid pg-user-creds
39 name: &pgUserCredsSecretName '{{ include "common.release" . }}-heartbeat-pg-user-creds'
41 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "heartbeat-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
42 login: '{{ .Values.postgres.config.pgUserName }}'
43 password: '{{ .Values.postgres.config.pgUserPassword }}'
44 passwordPolicy: generate
46 #################################################################
47 # Application Configuration Defaults.
48 #################################################################
50 image: onap/org.onap.dcaegen2.services.heartbeat:2.6.1
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.
57 path: /var/log/ONAP/dcaegen2/services/heartbeat
58 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
62 initialDelaySeconds: 10
69 # Service Configuration
81 - serviceAccount: message-router-read
82 authorizedPrincipalsPostgres:
83 - serviceAccount: dcae-heartbeat-read
86 - name: HEARTBEAT_PG_USERNAME
87 uid: *pgUserCredsSecretUid
89 - name: HEARTBEAT_PG_PASSWORD
90 uid: *pgUserCredsSecretUid
94 # Initial Application Configuration
96 CBS_polling_allowed: "True"
97 CBS_polling_interval: "300"
100 pg_ipAddress: dcae-heartbeat-pg-primary
101 pg_passwd: ${HEARTBEAT_PG_PASSWORD}
103 pg_userName: ${HEARTBEAT_PG_USERNAME}
105 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"}]}'
109 topic_url: "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT"
114 topic_url: "http://message-router:3904/events/unauthenticated.SEC_HEARTBEAT_OUTPUT"
118 # HEARTBEAT_PG_URL: &dcaeheartbeatPgPrimary dcae-heartbeat-pg-primary
119 # HEARTBEAT_PG_USERNAME:
120 # secretUid: *pgUserCredsSecretUid
122 # HEARTBEAT_PG_PASSWORD:
123 # secretUid: *pgUserCredsSecretUid
126 # Resource Limit Flavor -By Default Using Small
129 # Segregation for Different Environment (Small and Large)
147 #################################################################
148 # Application configuration Overriding Defaults in the Postgres.
149 #################################################################
151 nameOverride: &postgresName dcae-heartbeat-postgres
154 name2: dcae-heartbeat-pg-primary
155 name3: dcae-heartbeat-pg-replica
158 primary: dcae-heartbeat-pg-primary
159 replica: dcae-heartbeat-pg-replica
161 mountSubPath: heartbeat/data
162 mountInitPath: heartbeat
164 pgUserName: heartbeat
165 pgDatabase: heartbeat
166 pgUserExternalSecret: *pgUserCredsSecretName
172 - '{{ .Values.postgres.service.name2 }}'
175 #Pods Service Account
177 nameOverride: dcae-heartbeat