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 | c979732 | 2022-03-18 12:32:59 -0400 | [diff] [blame] | 4 | # Copyright (c) 2022 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: |
| 38 | - uid: &aafCredsUID aafcreds |
| 39 | type: basicAuth |
| 40 | login: '{{ .Values.aafCreds.identity }}' |
| 41 | password: '{{ .Values.aafCreds.password }}' |
| 42 | passwordPolicy: required |
| 43 | - uid: &pgUserCredsSecretUid pg-user-creds |
| 44 | name: &pgUserCredsSecretName '{{ include "common.release" . }}-heartbeat-pg-user-creds' |
| 45 | type: basicAuth |
| 46 | externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "heartbeat-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}' |
| 47 | login: '{{ .Values.postgres.config.pgUserName }}' |
| 48 | password: '{{ .Values.postgres.config.pgUserPassword }}' |
| 49 | passwordPolicy: generate |
| 50 | |
| 51 | ################################################################# |
| 52 | # InitContainer Images. |
| 53 | ################################################################# |
| 54 | tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0 |
Vijay Venkatesh Kumar | 27dc2e5 | 2021-05-21 21:54:13 -0400 | [diff] [blame] | 55 | |
| 56 | ################################################################# |
| 57 | # Application Configuration Defaults. |
| 58 | ################################################################# |
| 59 | # Application Image |
Vijay Venkatesh Kumar | e39bad1 | 2023-01-09 13:21:19 -0500 | [diff] [blame] | 60 | image: onap/org.onap.dcaegen2.services.heartbeat:2.6.0 |
Vijay Venkatesh Kumar | 27dc2e5 | 2021-05-21 21:54:13 -0400 | [diff] [blame] | 61 | pullPolicy: Always |
| 62 | |
| 63 | # Log directory where logging sidecar should look for log files |
Maciej Wereski | 7000a7c | 2021-12-16 12:24:06 +0100 | [diff] [blame] | 64 | # if path is set to null sidecar won't be deployed in spite of |
| 65 | # global.centralizedLoggingEnabled setting. |
| 66 | log: |
| 67 | path: /var/log/ONAP/dcaegen2/services/heartbeat |
| 68 | logConfigMapNamePrefix: '{{ include "common.fullname" . }}' |
Vijay Venkatesh Kumar | 27dc2e5 | 2021-05-21 21:54:13 -0400 | [diff] [blame] | 69 | |
| 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 |
| 73 | |
| 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. |
rope252 | 5a7fbee | 2022-07-25 20:00:36 +0100 | [diff] [blame] | 77 | tlsServer: false |
Vijay Venkatesh Kumar | 27dc2e5 | 2021-05-21 21:54:13 -0400 | [diff] [blame] | 78 | |
| 79 | # Dependencies |
| 80 | readinessCheck: |
| 81 | wait_for: |
Vijay Venkatesh Kumar | 27dc2e5 | 2021-05-21 21:54:13 -0400 | [diff] [blame] | 82 | - &postgresName dcae-heartbeat-postgres |
rope252 | 5a7fbee | 2022-07-25 20:00:36 +0100 | [diff] [blame] | 83 | - message-router |
Vijay Venkatesh Kumar | 27dc2e5 | 2021-05-21 21:54:13 -0400 | [diff] [blame] | 84 | |
| 85 | # Probe Configuration |
| 86 | readiness: |
| 87 | initialDelaySeconds: 10 |
| 88 | periodSeconds: 15 |
| 89 | timeoutSeconds: 1 |
| 90 | path: / |
| 91 | scheme: HTTP |
| 92 | port: 10002 |
| 93 | |
| 94 | # Service Configuration |
| 95 | service: |
| 96 | type: ClusterIP |
| 97 | name: dcae-heartbeat |
| 98 | ports: |
| 99 | - name: http |
| 100 | port: 10002 |
| 101 | port_protocol: http |
| 102 | |
| 103 | # AAF Credentials |
| 104 | aafCreds: |
| 105 | identity: dcae@dcae.onap.org |
| 106 | password: demo123456! |
| 107 | |
| 108 | credentials: |
| 109 | - name: AAF_IDENTITY |
| 110 | uid: *aafCredsUID |
| 111 | key: login |
| 112 | - name: AAF_PASSWORD |
| 113 | uid: *aafCredsUID |
| 114 | key: password |
| 115 | - name: HEARTBEAT_PG_USERNAME |
| 116 | uid: *pgUserCredsSecretUid |
| 117 | key: login |
| 118 | - name: HEARTBEAT_PG_PASSWORD |
| 119 | uid: *pgUserCredsSecretUid |
| 120 | key: password |
| 121 | |
| 122 | |
| 123 | # Initial Application Configuration |
| 124 | applicationConfig: |
| 125 | CBS_polling_allowed: "True" |
| 126 | CBS_polling_interval: "300" |
| 127 | consumerID: "1" |
| 128 | groupID: "hbgrpID" |
| 129 | pg_ipAddress: dcae-heartbeat-pg-primary |
| 130 | pg_passwd: ${HEARTBEAT_PG_PASSWORD} |
| 131 | pg_portNum: 5432 |
| 132 | pg_userName: ${HEARTBEAT_PG_USERNAME} |
| 133 | pg_dbName: heartbeat |
| 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"}]}' |
| 135 | streams_publishes: |
| 136 | dcae_cl_out: |
| 137 | dmaap_info: |
| 138 | topic_url: "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT" |
| 139 | type: message_router |
| 140 | streams_subscribes: |
| 141 | ves-heartbeat: |
| 142 | dmaap_info: |
| 143 | topic_url: "http://message-router:3904/events/unauthenticated.SEC_HEARTBEAT_OUTPUT" |
| 144 | type: message_router |
| 145 | |
| 146 | #applicationEnv: |
| 147 | # HEARTBEAT_PG_URL: &dcaeheartbeatPgPrimary dcae-heartbeat-pg-primary |
| 148 | # HEARTBEAT_PG_USERNAME: |
| 149 | # secretUid: *pgUserCredsSecretUid |
| 150 | # key: login |
| 151 | # HEARTBEAT_PG_PASSWORD: |
| 152 | # secretUid: *pgUserCredsSecretUid |
| 153 | # key: password |
| 154 | |
| 155 | # Resource Limit Flavor -By Default Using Small |
| 156 | flavor: small |
| 157 | |
| 158 | # Segregation for Different Environment (Small and Large) |
| 159 | resources: |
| 160 | small: |
| 161 | limits: |
| 162 | cpu: 1 |
| 163 | memory: 1Gi |
| 164 | requests: |
| 165 | cpu: 1 |
| 166 | memory: 1Gi |
| 167 | large: |
| 168 | limits: |
| 169 | cpu: 2 |
| 170 | memory: 2Gi |
| 171 | requests: |
| 172 | cpu: 2 |
| 173 | memory: 2Gi |
| 174 | unlimited: {} |
| 175 | |
| 176 | ################################################################# |
| 177 | # Application configuration Overriding Defaults in the Postgres. |
| 178 | ################################################################# |
| 179 | postgres: |
| 180 | nameOverride: *postgresName |
| 181 | service: |
| 182 | name: *postgresName |
| 183 | name2: dcae-heartbeat-pg-primary |
| 184 | name3: dcae-heartbeat-pg-replica |
| 185 | container: |
| 186 | name: |
| 187 | primary: dcae-heartbeat-pg-primary |
| 188 | replica: dcae-heartbeat-pg-replica |
| 189 | persistence: |
| 190 | mountSubPath: heartbeat/data |
| 191 | mountInitPath: heartbeat |
| 192 | config: |
| 193 | pgUserName: heartbeat |
| 194 | pgDatabase: heartbeat |
| 195 | pgUserExternalSecret: *pgUserCredsSecretName |
farida azmy | cb03ac7 | 2021-09-12 16:14:12 +0200 | [diff] [blame] | 196 | |
| 197 | #Pods Service Account |
| 198 | serviceAccount: |
| 199 | nameOverride: dcae-heartbeat |
| 200 | roles: |
| 201 | - read |