blob: 115bd257c68b1185c3ec144e88bcfe7e61562540 [file] [log] [blame]
Vijay Venkatesh Kumar27dc2e52021-05-21 21:54:13 -04001# ================================ LICENSE_START =============================
2# ============================================================================
Vijay Venkatesh Kumare39bad12023-01-09 13:21:19 -05003# Copyright (c) 2021-2023 AT&T Intellectual Property. All rights reserved.
Jack Lucas64da4e72023-03-03 14:46:05 -05004# Copyright (c) 2022-2023 J. F. Lucas. All rights reserved.
Vijay Venkatesh Kumar27dc2e52021-05-21 21:54:13 -04005# ============================================================================
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#################################################################
22global:
23 nodePortPrefix: 302
24 nodePortPrefixExt: 304
Maciej Wereski7000a7c2021-12-16 12:24:06 +010025 centralizedLoggingEnabled: true
Vijay Venkatesh Kumar27dc2e52021-05-21 21:54:13 -040026
27#################################################################
28# Filebeat Configuration Defaults.
29#################################################################
30filebeatConfig:
31 logstashServiceName: log-ls
32 logstashPort: 5044
33
34#################################################################
35# Secrets Configuration.
36#################################################################
37secrets:
Vijay Venkatesh Kumar27dc2e52021-05-21 21:54:13 -040038 - uid: &pgUserCredsSecretUid pg-user-creds
39 name: &pgUserCredsSecretName '{{ include "common.release" . }}-heartbeat-pg-user-creds'
40 type: basicAuth
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
45
46#################################################################
Vijay Venkatesh Kumar27dc2e52021-05-21 21:54:13 -040047# Application Configuration Defaults.
48#################################################################
49# Application Image
Vijay Venkatesh Kumare39bad12023-01-09 13:21:19 -050050image: onap/org.onap.dcaegen2.services.heartbeat:2.6.0
Vijay Venkatesh Kumar27dc2e52021-05-21 21:54:13 -040051pullPolicy: Always
52
53# Log directory where logging sidecar should look for log files
Maciej Wereski7000a7c2021-12-16 12:24:06 +010054# if path is set to null sidecar won't be deployed in spite of
55# global.centralizedLoggingEnabled setting.
56log:
57 path: /var/log/ONAP/dcaegen2/services/heartbeat
58logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
Vijay Venkatesh Kumar27dc2e52021-05-21 21:54:13 -040059
Vijay Venkatesh Kumar27dc2e52021-05-21 21:54:13 -040060# Dependencies
61readinessCheck:
62 wait_for:
Vijay Venkatesh Kumar27dc2e52021-05-21 21:54:13 -040063 - &postgresName dcae-heartbeat-postgres
rope2525a7fbee2022-07-25 20:00:36 +010064 - message-router
Vijay Venkatesh Kumar27dc2e52021-05-21 21:54:13 -040065
66# Probe Configuration
67readiness:
68 initialDelaySeconds: 10
69 periodSeconds: 15
70 timeoutSeconds: 1
71 path: /
72 scheme: HTTP
73 port: 10002
74
75# Service Configuration
76service:
77 type: ClusterIP
78 name: dcae-heartbeat
79 ports:
80 - name: http
81 port: 10002
82 port_protocol: http
83
Vijay Venkatesh Kumar27dc2e52021-05-21 21:54:13 -040084credentials:
Vijay Venkatesh Kumar27dc2e52021-05-21 21:54:13 -040085- name: HEARTBEAT_PG_USERNAME
86 uid: *pgUserCredsSecretUid
87 key: login
88- name: HEARTBEAT_PG_PASSWORD
89 uid: *pgUserCredsSecretUid
90 key: password
91
92
93# Initial Application Configuration
94applicationConfig:
95 CBS_polling_allowed: "True"
96 CBS_polling_interval: "300"
97 consumerID: "1"
98 groupID: "hbgrpID"
99 pg_ipAddress: dcae-heartbeat-pg-primary
100 pg_passwd: ${HEARTBEAT_PG_PASSWORD}
101 pg_portNum: 5432
102 pg_userName: ${HEARTBEAT_PG_USERNAME}
103 pg_dbName: heartbeat
104 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"}]}'
105 streams_publishes:
106 dcae_cl_out:
107 dmaap_info:
108 topic_url: "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT"
109 type: message_router
110 streams_subscribes:
111 ves-heartbeat:
112 dmaap_info:
113 topic_url: "http://message-router:3904/events/unauthenticated.SEC_HEARTBEAT_OUTPUT"
114 type: message_router
115
116#applicationEnv:
117# HEARTBEAT_PG_URL: &dcaeheartbeatPgPrimary dcae-heartbeat-pg-primary
118# HEARTBEAT_PG_USERNAME:
119# secretUid: *pgUserCredsSecretUid
120# key: login
121# HEARTBEAT_PG_PASSWORD:
122# secretUid: *pgUserCredsSecretUid
123# key: password
124
125# Resource Limit Flavor -By Default Using Small
126flavor: small
127
128# Segregation for Different Environment (Small and Large)
129resources:
130 small:
131 limits:
132 cpu: 1
133 memory: 1Gi
134 requests:
135 cpu: 1
136 memory: 1Gi
137 large:
138 limits:
139 cpu: 2
140 memory: 2Gi
141 requests:
142 cpu: 2
143 memory: 2Gi
144 unlimited: {}
145
146#################################################################
147# Application configuration Overriding Defaults in the Postgres.
148#################################################################
149postgres:
150 nameOverride: *postgresName
151 service:
152 name: *postgresName
153 name2: dcae-heartbeat-pg-primary
154 name3: dcae-heartbeat-pg-replica
155 container:
156 name:
157 primary: dcae-heartbeat-pg-primary
158 replica: dcae-heartbeat-pg-replica
159 persistence:
160 mountSubPath: heartbeat/data
161 mountInitPath: heartbeat
162 config:
163 pgUserName: heartbeat
164 pgDatabase: heartbeat
165 pgUserExternalSecret: *pgUserCredsSecretName
farida azmycb03ac72021-09-12 16:14:12 +0200166
167#Pods Service Account
168serviceAccount:
169 nameOverride: dcae-heartbeat
170 roles:
171 - read