blob: da8f2c65617c5c8b270c3dd5f1f748be03999be9 [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 Kumar2f2794a2023-03-30 09:17:33 -040050image: onap/org.onap.dcaegen2.services.heartbeat:2.6.1
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# Probe Configuration
61readiness:
62 initialDelaySeconds: 10
63 periodSeconds: 15
64 timeoutSeconds: 1
65 path: /
66 scheme: HTTP
67 port: 10002
68
69# Service Configuration
70service:
71 type: ClusterIP
72 name: dcae-heartbeat
73 ports:
74 - name: http
75 port: 10002
76 port_protocol: http
77
AndrewLambbd6ff6b2023-05-04 15:56:49 +010078serviceMesh:
79 authorizationPolicy:
80 authorizedPrincipals:
81 - serviceAccount: message-router-read
82 authorizedPrincipalsPostgres:
83 - serviceAccount: dcae-heartbeat-read
84
Vijay Venkatesh Kumar27dc2e52021-05-21 21:54:13 -040085credentials:
Vijay Venkatesh Kumar27dc2e52021-05-21 21:54:13 -040086- name: HEARTBEAT_PG_USERNAME
87 uid: *pgUserCredsSecretUid
88 key: login
89- name: HEARTBEAT_PG_PASSWORD
90 uid: *pgUserCredsSecretUid
91 key: password
92
93
94# Initial Application Configuration
95applicationConfig:
96 CBS_polling_allowed: "True"
97 CBS_polling_interval: "300"
98 consumerID: "1"
99 groupID: "hbgrpID"
100 pg_ipAddress: dcae-heartbeat-pg-primary
101 pg_passwd: ${HEARTBEAT_PG_PASSWORD}
102 pg_portNum: 5432
103 pg_userName: ${HEARTBEAT_PG_USERNAME}
104 pg_dbName: heartbeat
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"}]}'
106 streams_publishes:
107 dcae_cl_out:
108 dmaap_info:
109 topic_url: "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT"
110 type: message_router
111 streams_subscribes:
112 ves-heartbeat:
113 dmaap_info:
114 topic_url: "http://message-router:3904/events/unauthenticated.SEC_HEARTBEAT_OUTPUT"
115 type: message_router
116
117#applicationEnv:
118# HEARTBEAT_PG_URL: &dcaeheartbeatPgPrimary dcae-heartbeat-pg-primary
119# HEARTBEAT_PG_USERNAME:
120# secretUid: *pgUserCredsSecretUid
121# key: login
122# HEARTBEAT_PG_PASSWORD:
123# secretUid: *pgUserCredsSecretUid
124# key: password
125
126# Resource Limit Flavor -By Default Using Small
127flavor: small
128
129# Segregation for Different Environment (Small and Large)
130resources:
131 small:
132 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100133 cpu: "2"
134 memory: "1Gi"
Vijay Venkatesh Kumar27dc2e52021-05-21 21:54:13 -0400135 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100136 cpu: "1"
137 memory: "1Gi"
Vijay Venkatesh Kumar27dc2e52021-05-21 21:54:13 -0400138 large:
139 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100140 cpu: "4"
141 memory: "2Gi"
Vijay Venkatesh Kumar27dc2e52021-05-21 21:54:13 -0400142 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100143 cpu: "2"
144 memory: "2Gi"
Vijay Venkatesh Kumar27dc2e52021-05-21 21:54:13 -0400145 unlimited: {}
146
147#################################################################
148# Application configuration Overriding Defaults in the Postgres.
149#################################################################
150postgres:
Andreas Geissleree119102024-04-11 13:53:39 +0200151 nameOverride: &postgresName dcae-heartbeat-postgres
Vijay Venkatesh Kumar27dc2e52021-05-21 21:54:13 -0400152 service:
153 name: *postgresName
154 name2: dcae-heartbeat-pg-primary
155 name3: dcae-heartbeat-pg-replica
156 container:
157 name:
158 primary: dcae-heartbeat-pg-primary
159 replica: dcae-heartbeat-pg-replica
160 persistence:
161 mountSubPath: heartbeat/data
162 mountInitPath: heartbeat
163 config:
164 pgUserName: heartbeat
165 pgDatabase: heartbeat
166 pgUserExternalSecret: *pgUserCredsSecretName
farida azmycb03ac72021-09-12 16:14:12 +0200167
Andreas Geissleree119102024-04-11 13:53:39 +0200168# Dependencies
169readinessCheck:
170 wait_for:
171 services:
172 - '{{ .Values.postgres.service.name2 }}'
173 - message-router
174
farida azmycb03ac72021-09-12 16:14:12 +0200175#Pods Service Account
176serviceAccount:
177 nameOverride: dcae-heartbeat
178 roles:
179 - read