[DCAEGEN2] Add Consul key delete job
[oom.git] / kubernetes / dcaegen2-services / components / dcae-heartbeat / values.yaml
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
8 #
9 #     http://www.apache.org/licenses/LICENSE-2.0
10 #
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 ==============================
17
18 #################################################################
19 # Global Configuration Defaults.
20 #################################################################
21 global:
22   nodePortPrefix: 302
23   nodePortPrefixExt: 304
24
25 #################################################################
26 # Filebeat Configuration Defaults.
27 #################################################################
28 filebeatConfig:
29   logstashServiceName: log-ls
30   logstashPort: 5044
31
32 #################################################################
33 # Secrets Configuration.
34 #################################################################
35 secrets:
36   - uid: &aafCredsUID aafcreds
37     type: basicAuth
38     login: '{{ .Values.aafCreds.identity }}'
39     password: '{{ .Values.aafCreds.password }}'
40     passwordPolicy: required
41   - uid: &pgUserCredsSecretUid pg-user-creds
42     name: &pgUserCredsSecretName '{{ include "common.release" . }}-heartbeat-pg-user-creds'
43     type: basicAuth
44     externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "heartbeat-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
45     login: '{{ .Values.postgres.config.pgUserName }}'
46     password: '{{ .Values.postgres.config.pgUserPassword }}'
47     passwordPolicy: generate
48
49 #################################################################
50 # InitContainer Images.
51 #################################################################
52 tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
53 consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.1.1
54
55 #################################################################
56 # Application Configuration Defaults.
57 #################################################################
58 # Application Image
59 image: onap/org.onap.dcaegen2.services.heartbeat:2.2.0
60 pullPolicy: Always
61
62 # Log directory where logging sidecar should look for log files
63 # if absent, no sidecar will be deployed
64 logDirectory: /var/log/ONAP/dcaegen2/services/heartbeat
65
66 # Directory where TLS certs should be stored
67 # if absent, no certs will be retrieved and stored
68 certDirectory: /opt/app/heartbeat/etc/certs
69
70 # TLS role -- set to true if microservice acts as server
71 # If true, an init container will retrieve a server cert
72 # and key from AAF and mount them in certDirectory.
73 tlsServer: true
74
75 # Dependencies
76 readinessCheck:
77   wait_for:
78     - dcae-config-binding-service
79     - aaf-cm
80     - &postgresName dcae-heartbeat-postgres
81
82 # Probe Configuration
83 readiness:
84   initialDelaySeconds: 10
85   periodSeconds: 15
86   timeoutSeconds: 1
87   path: /
88   scheme: HTTP
89   port: 10002
90
91 # Service Configuration
92 service:
93   type: ClusterIP
94   name: dcae-heartbeat
95   ports:
96     - name: http
97       port: 10002
98       port_protocol: http
99
100 # AAF Credentials
101 aafCreds:
102   identity: dcae@dcae.onap.org
103   password: demo123456!
104
105 credentials:
106 - name: AAF_IDENTITY
107   uid: *aafCredsUID
108   key: login
109 - name: AAF_PASSWORD
110   uid: *aafCredsUID
111   key: password
112 - name: HEARTBEAT_PG_USERNAME
113   uid: *pgUserCredsSecretUid
114   key: login
115 - name: HEARTBEAT_PG_PASSWORD
116   uid: *pgUserCredsSecretUid
117   key: password
118
119
120 # Initial Application Configuration
121 applicationConfig:
122    CBS_polling_allowed: "True"
123    CBS_polling_interval: "300"
124    consumerID: "1"
125    groupID: "hbgrpID"
126    pg_ipAddress: dcae-heartbeat-pg-primary
127    pg_passwd: ${HEARTBEAT_PG_PASSWORD}
128    pg_portNum: 5432
129    pg_userName: ${HEARTBEAT_PG_USERNAME}
130    pg_dbName: heartbeat
131    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"}]}'
132    streams_publishes:
133      dcae_cl_out:
134        dmaap_info:
135          topic_url: "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT"
136        type: message_router
137    streams_subscribes:
138      ves-heartbeat:
139        dmaap_info:
140          topic_url: "http://message-router:3904/events/unauthenticated.SEC_HEARTBEAT_OUTPUT"
141        type: message_router
142
143 #applicationEnv:
144 #  HEARTBEAT_PG_URL: &dcaeheartbeatPgPrimary dcae-heartbeat-pg-primary
145 #  HEARTBEAT_PG_USERNAME:
146 #     secretUid: *pgUserCredsSecretUid
147 #     key: login
148 #  HEARTBEAT_PG_PASSWORD:
149 #     secretUid: *pgUserCredsSecretUid
150 #     key: password
151
152 # Resource Limit Flavor -By Default Using Small
153 flavor: small
154
155 # Segregation for Different Environment (Small and Large)
156 resources:
157   small:
158     limits:
159       cpu: 1
160       memory: 1Gi
161     requests:
162       cpu: 1
163       memory: 1Gi
164   large:
165     limits:
166       cpu: 2
167       memory: 2Gi
168     requests:
169       cpu: 2
170       memory: 2Gi
171   unlimited: {}
172
173 #################################################################
174 # Application configuration Overriding Defaults in the Postgres.
175 #################################################################
176 postgres:
177   nameOverride: *postgresName
178   service:
179     name: *postgresName
180     name2: dcae-heartbeat-pg-primary
181     name3: dcae-heartbeat-pg-replica
182   container:
183     name:
184       primary: dcae-heartbeat-pg-primary
185       replica: dcae-heartbeat-pg-replica
186   persistence:
187     mountSubPath: heartbeat/data
188     mountInitPath: heartbeat
189   config:
190     pgUserName: heartbeat
191     pgDatabase: heartbeat
192     pgUserExternalSecret: *pgUserCredsSecretName