blob: 627aee4fecfd16bc02cbe009eaa868288bd56e6f [file] [log] [blame]
Jack Lucas98b9f732018-03-26 19:52:32 -04001#
vagrant58ea3d22018-04-03 18:01:23 +00002# ============LICENSE_START====================================================
3# =============================================================================
Jack Lucas01d60192020-06-17 17:11:17 -04004# Copyright (c) 2018-2020 AT&T Intellectual Property. All rights reserved.
Grzegorz-Lis361de212020-08-31 14:56:18 +02005# Copyright (c) 2020 Nokia Intellectual Property. All rights reserved.
vagrant58ea3d22018-04-03 18:01:23 +00006# =============================================================================
Jack Lucas98b9f732018-03-26 19:52:32 -04007# Licensed under the Apache License, Version 2.0 (the "License");
8# you may not use this file except in compliance with the License.
9# You may obtain a copy of the License at
10#
vagrant58ea3d22018-04-03 18:01:23 +000011# http://www.apache.org/licenses/LICENSE-2.0
Jack Lucas98b9f732018-03-26 19:52:32 -040012#
13# Unless required by applicable law or agreed to in writing, software
14# distributed under the License is distributed on an "AS IS" BASIS,
vagrant58ea3d22018-04-03 18:01:23 +000015# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Jack Lucas98b9f732018-03-26 19:52:32 -040016# See the License for the specific language governing permissions and
17# limitations under the License.
vagrant58ea3d22018-04-03 18:01:23 +000018# ============LICENSE_END======================================================
19
Jack Lucas98b9f732018-03-26 19:52:32 -040020tosca_definitions_version: cloudify_dsl_1_3
21
22description: >
23 This blueprint deploys/manages the TCA module as a Docker container
24
25imports:
Vijay Venkatesh Kumar2c662f22019-09-09 15:33:32 +000026 - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
Grzegorz-Lis361de212020-08-31 14:56:18 +020027 - plugin:k8splugin?version=3.3.0
Jack Lucas98b9f732018-03-26 19:52:32 -040028inputs:
vagrant58ea3d22018-04-03 18:01:23 +000029 aaiEnrichmentHost:
Jack Lucas98b9f732018-03-26 19:52:32 -040030 type: string
Lusheng Ji9bc6fd02018-04-29 19:45:23 -040031 default: "aai.onap.svc.cluster.local"
vagrant272bf6c2018-04-08 08:16:13 +000032 aaiEnrichmentPort:
Alex Shatovf90017b2018-04-13 09:19:56 -040033 type: string
Lusheng Ji9bc6fd02018-04-29 19:45:23 -040034 default: "8443"
vagrant58ea3d22018-04-03 18:01:23 +000035 enableAAIEnrichment:
36 type: string
Vijay Venkatesh Kumarb9d1f7a2020-03-02 23:36:13 +000037 default: "true"
Jack Lucas98b9f732018-03-26 19:52:32 -040038 dmaap_host:
39 type: string
Vijay Venkatesh Kumarb9d1f7a2020-03-02 23:36:13 +000040 default: "message-router.onap.svc.cluster.local"
vagrantf6e28be2018-04-05 22:06:13 +000041 dmaap_port:
42 type: string
Lusheng Ji9bc6fd02018-04-29 19:45:23 -040043 default: "3904"
vagrant58ea3d22018-04-03 18:01:23 +000044 enableRedisCaching:
45 type: string
Vijay Venkatesh Kumarb9d1f7a2020-03-02 23:36:13 +000046 default: "false"
vagrant58ea3d22018-04-03 18:01:23 +000047 redisHosts:
Alex Shatovf90017b2018-04-13 09:19:56 -040048 type: string
Lusheng Ji9bc6fd02018-04-29 19:45:23 -040049 default: dcae-redis.onap.svc.cluster.local:6379
vagrant58ea3d22018-04-03 18:01:23 +000050 tag_version:
51 type: string
Jack Lucasbad77202020-02-03 18:21:29 -050052 default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tca-cdap-container:1.2.2"
Jack Lucas98b9f732018-03-26 19:52:32 -040053 consul_host:
54 type: string
Vijay Venkatesh Kumarb9d1f7a2020-03-02 23:36:13 +000055 default: "consul-server.onap"
Jack Lucas98b9f732018-03-26 19:52:32 -040056 consul_port:
57 type: string
58 default: "8500"
59 cbs_host:
60 type: string
Vijay Venkatesh Kumarb9d1f7a2020-03-02 23:36:13 +000061 default: "config-binding-service"
Jack Lucas98b9f732018-03-26 19:52:32 -040062 cbs_port:
63 type: string
64 default: "10000"
vagrant58ea3d22018-04-03 18:01:23 +000065 policy_id:
66 type: string
67 default: "none"
vagrantf6e28be2018-04-05 22:06:13 +000068 external_port:
69 type: string
70 description: Kubernetes node port on which CDAPgui is exposed
71 default: "32010"
Grzegorz-Lis361de212020-08-31 14:56:18 +020072 service_component_type:
73 type: string
74 default: "dcae-tca-analytics"
75 service_id:
76 type: string
77 default: "dcae-tca-analytics"
Alex Shatovf90017b2018-04-13 09:19:56 -040078
Jack Lucas98b9f732018-03-26 19:52:32 -040079node_templates:
vagrant58ea3d22018-04-03 18:01:23 +000080 tca_k8s:
Grzegorz-Lis361de212020-08-31 14:56:18 +020081 type: dcae.nodes.ContainerizedServiceComponent
Jack Lucas98b9f732018-03-26 19:52:32 -040082 properties:
Grzegorz-Lis361de212020-08-31 14:56:18 +020083 service_component_type: { get_input: service_component_type }
84 service_id: { get_input: service_id }
Alex Shatovf90017b2018-04-13 09:19:56 -040085 image:
vagrant58ea3d22018-04-03 18:01:23 +000086 get_input: tag_version
Jack Lucas98b9f732018-03-26 19:52:32 -040087 log_info:
vagrantf6e28be2018-04-05 22:06:13 +000088 log_directory: "/opt/app/TCAnalytics/logs"
Vijay Venkatesh Kumar7fe8dbc2019-09-12 20:59:20 +000089 resource_config:
90 limits:
91 cpu: '1'
92 requests:
93 cpu: '0.5'
vagrant58ea3d22018-04-03 18:01:23 +000094 application_config:
95 app_config:
96 appDescription: DCAE Analytics Threshold Crossing Alert Application
97 appName: dcae-tca
98 tcaAlertsAbatementTableName: TCAAlertsAbatementTable
99 tcaAlertsAbatementTableTTLSeconds: '1728000'
100 tcaSubscriberOutputStreamName: TCASubscriberOutputStream
101 tcaVESAlertsTableName: TCAVESAlertsTable
102 tcaVESAlertsTableTTLSeconds: '1728000'
103 tcaVESMessageStatusTableName: TCAVESMessageStatusTable
104 tcaVESMessageStatusTableTTLSeconds: '86400'
105 thresholdCalculatorFlowletInstances: '2'
106 app_preferences:
Alex Shatovf90017b2018-04-13 09:19:56 -0400107 aaiEnrichmentHost:
vagrant58ea3d22018-04-03 18:01:23 +0000108 get_input: aaiEnrichmentHost
109 aaiEnrichmentIgnoreSSLCertificateErrors: 'true'
110 aaiEnrichmentPortNumber: '8443'
111 aaiEnrichmentProtocol: https
vagrant5e393d32018-09-17 06:55:17 +0000112 aaiEnrichmentUserName: dcae@dcae.onap.org
113 aaiEnrichmentUserPassword: demo123456!
vagrant58ea3d22018-04-03 18:01:23 +0000114 aaiVMEnrichmentAPIPath: /aai/v11/search/nodes-query
115 aaiVNFEnrichmentAPIPath: /aai/v11/network/generic-vnfs/generic-vnf
Alex Shatovf90017b2018-04-13 09:19:56 -0400116 enableAAIEnrichment:
vagrant58ea3d22018-04-03 18:01:23 +0000117 get_input: enableAAIEnrichment
Alex Shatovf90017b2018-04-13 09:19:56 -0400118 enableRedisCaching:
vagrant58ea3d22018-04-03 18:01:23 +0000119 get_input: enableRedisCaching
Alex Shatovf90017b2018-04-13 09:19:56 -0400120 redisHosts:
vagrant58ea3d22018-04-03 18:01:23 +0000121 get_input: redisHosts
122 enableAlertCEFFormat: 'false'
123 publisherContentType: application/json
Alex Shatovf90017b2018-04-13 09:19:56 -0400124 publisherHostName:
vagrant58ea3d22018-04-03 18:01:23 +0000125 get_input: dmaap_host
Alex Shatovf90017b2018-04-13 09:19:56 -0400126 publisherHostPort:
127 get_input: dmaap_port
vagrant58ea3d22018-04-03 18:01:23 +0000128 publisherMaxBatchSize: '1'
129 publisherMaxRecoveryQueueSize: '100000'
130 publisherPollingInterval: '20000'
131 publisherProtocol: http
132 publisherTopicName: unauthenticated.DCAE_CL_OUTPUT
133 subscriberConsumerGroup: OpenDCAE-c12
134 subscriberConsumerId: c12
135 subscriberContentType: application/json
Alex Shatovf90017b2018-04-13 09:19:56 -0400136 subscriberHostName:
vagrant58ea3d22018-04-03 18:01:23 +0000137 get_input: dmaap_host
vagrantf6e28be2018-04-05 22:06:13 +0000138 subscriberHostPort:
Alex Shatovf90017b2018-04-13 09:19:56 -0400139 get_input: dmaap_port
vagrant58ea3d22018-04-03 18:01:23 +0000140 subscriberMessageLimit: '-1'
141 subscriberPollingInterval: '30000'
142 subscriberProtocol: http
143 subscriberTimeoutMS: '-1'
Lusheng Ji42f95082018-05-11 11:16:27 -0400144 subscriberTopicName: unauthenticated.VES_MEASUREMENT_OUTPUT
Vijay Venkatesh Kumard8e77212019-05-17 10:24:30 +0000145 tca_policy: '{"domain":"measurementsForVfScaling","metricsPerEventName":[{"eventName":"vFirewallBroadcastPackets","controlLoopSchemaType":"VM","policyScope":"DCAE","policyName":"DCAE.Config_tca-hi-lo","policyVersion":"v0.0.1","thresholds":[{"closedLoopControlName":"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta","thresholdValue":300,"direction":"LESS_OR_EQUAL","severity":"MAJOR","closedLoopEventStatus":"ONSET"},{"closedLoopControlName":"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta","thresholdValue":700,"direction":"GREATER_OR_EQUAL","severity":"CRITICAL","closedLoopEventStatus":"ONSET"}]},{"eventName":"vLoadBalancer","controlLoopSchemaType":"VM","policyScope":"DCAE","policyName":"DCAE.Config_tca-hi-lo","policyVersion":"v0.0.1","thresholds":[{"closedLoopControlName":"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta","thresholdValue":300,"direction":"GREATER_OR_EQUAL","severity":"CRITICAL","closedLoopEventStatus":"ONSET"}]},{"eventName":"Measurement_vGMUX","controlLoopSchemaType":"VNF","policyScope":"DCAE","policyName":"DCAE.Config_tca-hi-lo","policyVersion":"v0.0.1","thresholds":[{"closedLoopControlName":"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value","thresholdValue":0,"direction":"EQUAL","severity":"MAJOR","closedLoopEventStatus":"ABATED"},{"closedLoopControlName":"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value","thresholdValue":0,"direction":"GREATER","severity":"CRITICAL","closedLoopEventStatus":"ONSET"}]}]}'
Jack Lucas98b9f732018-03-26 19:52:32 -0400146 interfaces:
147 cloudify.interfaces.lifecycle:
148 start:
149 inputs:
150 envs:
Alex Shatovf90017b2018-04-13 09:19:56 -0400151 DMAAPHOST:
vagrant272bf6c2018-04-08 08:16:13 +0000152 { get_input: dmaap_host }
Vijay Venkatesh Kumarb9d1f7a2020-03-02 23:36:13 +0000153 DMAAPPORT: "3904"
vagrant272bf6c2018-04-08 08:16:13 +0000154 DMAAPPUBTOPIC: "unauthenticated.DCAE_CL_OUTPUT"
Lusheng Ji42f95082018-05-11 11:16:27 -0400155 DMAAPSUBTOPIC: "unauthenticated.VES_MEASUREMENT_OUTPUT"
Alex Shatovf90017b2018-04-13 09:19:56 -0400156 AAIHOST:
vagrant272bf6c2018-04-08 08:16:13 +0000157 { get_input: aaiEnrichmentHost }
Vijay Venkatesh Kumarb9d1f7a2020-03-02 23:36:13 +0000158 AAIPORT: "8443"
Alex Shatovf90017b2018-04-13 09:19:56 -0400159 CONSUL_HOST:
vagrant272bf6c2018-04-08 08:16:13 +0000160 { get_input: consul_host }
Vijay Venkatesh Kumarb9d1f7a2020-03-02 23:36:13 +0000161 CONSUL_PORT: "8500"
Alex Shatovf90017b2018-04-13 09:19:56 -0400162 CBS_HOST:
vagrant272bf6c2018-04-08 08:16:13 +0000163 { get_input: cbs_host }
Vijay Venkatesh Kumarb9d1f7a2020-03-02 23:36:13 +0000164 CBS_PORT: "10000"
Alex Shatovf90017b2018-04-13 09:19:56 -0400165 CONFIG_BINDING_SERVICE: "config_binding_service"
Jack Lucas98b9f732018-03-26 19:52:32 -0400166 ports:
Vijay Venkatesh Kumar2c662f22019-09-09 15:33:32 +0000167 - concat: ["11011:", "0"]
168
Vijay Venkatesh Kumarb9d1f7a2020-03-02 23:36:13 +0000169