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