1 # ================================ 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
9 # http://www.apache.org/licenses/LICENSE-2.0
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 ==============================
18 #################################################################
19 # Global Configuration Defaults.
20 #################################################################
23 nodePortPrefixExt: 304
24 centralizedLoggingEnabled: true
26 #################################################################
27 # Filebeat Configuration Defaults.
28 #################################################################
30 logstashServiceName: log-ls
33 #################################################################
34 # Secrets Configuration.
35 #################################################################
37 - uid: &aafCredsUID aafcreds
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'
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
50 #################################################################
51 # InitContainer Images.
52 #################################################################
53 tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
54 consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.1.1
56 #################################################################
57 # Application Configuration Defaults.
58 #################################################################
60 image: onap/org.onap.dcaegen2.services.heartbeat:2.3.1
63 # Log directory where logging sidecar should look for log files
64 # if path is set to null sidecar won't be deployed in spite of
65 # global.centralizedLoggingEnabled setting.
67 path: /var/log/ONAP/dcaegen2/services/heartbeat
68 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
70 # Directory where TLS certs should be stored
71 # if absent, no certs will be retrieved and stored
72 certDirectory: /opt/app/heartbeat/etc/certs
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.
83 - &postgresName dcae-heartbeat-postgres
87 initialDelaySeconds: 10
94 # Service Configuration
105 identity: dcae@dcae.onap.org
106 password: demo123456!
115 - name: HEARTBEAT_PG_USERNAME
116 uid: *pgUserCredsSecretUid
118 - name: HEARTBEAT_PG_PASSWORD
119 uid: *pgUserCredsSecretUid
123 # Initial Application Configuration
125 CBS_polling_allowed: "True"
126 CBS_polling_interval: "300"
129 pg_ipAddress: dcae-heartbeat-pg-primary
130 pg_passwd: ${HEARTBEAT_PG_PASSWORD}
132 pg_userName: ${HEARTBEAT_PG_USERNAME}
134 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"}]}'
138 topic_url: "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT"
143 topic_url: "http://message-router:3904/events/unauthenticated.SEC_HEARTBEAT_OUTPUT"
147 # HEARTBEAT_PG_URL: &dcaeheartbeatPgPrimary dcae-heartbeat-pg-primary
148 # HEARTBEAT_PG_USERNAME:
149 # secretUid: *pgUserCredsSecretUid
151 # HEARTBEAT_PG_PASSWORD:
152 # secretUid: *pgUserCredsSecretUid
155 # Resource Limit Flavor -By Default Using Small
158 # Segregation for Different Environment (Small and Large)
176 #################################################################
177 # Application configuration Overriding Defaults in the Postgres.
178 #################################################################
180 nameOverride: *postgresName
183 name2: dcae-heartbeat-pg-primary
184 name3: dcae-heartbeat-pg-replica
187 primary: dcae-heartbeat-pg-primary
188 replica: dcae-heartbeat-pg-replica
190 mountSubPath: heartbeat/data
191 mountInitPath: heartbeat
193 pgUserName: heartbeat
194 pgDatabase: heartbeat
195 pgUserExternalSecret: *pgUserCredsSecretName
197 #Pods Service Account
199 nameOverride: dcae-heartbeat