Jack Lucas | 98b9f73 | 2018-03-26 19:52:32 -0400 | [diff] [blame] | 1 | # |
vagrant | 58ea3d2 | 2018-04-03 18:01:23 +0000 | [diff] [blame] | 2 | # ============LICENSE_START==================================================== |
| 3 | # ============================================================================= |
Jack Lucas | 01d6019 | 2020-06-17 17:11:17 -0400 | [diff] [blame] | 4 | # Copyright (c) 2018-2020 AT&T Intellectual Property. All rights reserved. |
Grzegorz-Lis | 361de21 | 2020-08-31 14:56:18 +0200 | [diff] [blame] | 5 | # Copyright (c) 2020 Nokia Intellectual Property. All rights reserved. |
vagrant | 58ea3d2 | 2018-04-03 18:01:23 +0000 | [diff] [blame] | 6 | # ============================================================================= |
Jack Lucas | 98b9f73 | 2018-03-26 19:52:32 -0400 | [diff] [blame] | 7 | # 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 | # |
vagrant | 58ea3d2 | 2018-04-03 18:01:23 +0000 | [diff] [blame] | 11 | # http://www.apache.org/licenses/LICENSE-2.0 |
Jack Lucas | 98b9f73 | 2018-03-26 19:52:32 -0400 | [diff] [blame] | 12 | # |
| 13 | # Unless required by applicable law or agreed to in writing, software |
| 14 | # distributed under the License is distributed on an "AS IS" BASIS, |
vagrant | 58ea3d2 | 2018-04-03 18:01:23 +0000 | [diff] [blame] | 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Jack Lucas | 98b9f73 | 2018-03-26 19:52:32 -0400 | [diff] [blame] | 16 | # See the License for the specific language governing permissions and |
| 17 | # limitations under the License. |
vagrant | 58ea3d2 | 2018-04-03 18:01:23 +0000 | [diff] [blame] | 18 | # ============LICENSE_END====================================================== |
| 19 | |
Jack Lucas | 98b9f73 | 2018-03-26 19:52:32 -0400 | [diff] [blame] | 20 | tosca_definitions_version: cloudify_dsl_1_3 |
| 21 | |
| 22 | description: > |
| 23 | This blueprint deploys/manages the TCA module as a Docker container |
| 24 | |
| 25 | imports: |
Vijay Venkatesh Kumar | 2c662f2 | 2019-09-09 15:33:32 +0000 | [diff] [blame] | 26 | - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml |
Grzegorz-Lis | 361de21 | 2020-08-31 14:56:18 +0200 | [diff] [blame] | 27 | - plugin:k8splugin?version=3.3.0 |
Jack Lucas | 98b9f73 | 2018-03-26 19:52:32 -0400 | [diff] [blame] | 28 | inputs: |
vagrant | 58ea3d2 | 2018-04-03 18:01:23 +0000 | [diff] [blame] | 29 | aaiEnrichmentHost: |
Jack Lucas | 98b9f73 | 2018-03-26 19:52:32 -0400 | [diff] [blame] | 30 | type: string |
Lusheng Ji | 9bc6fd0 | 2018-04-29 19:45:23 -0400 | [diff] [blame] | 31 | default: "aai.onap.svc.cluster.local" |
vagrant | 272bf6c | 2018-04-08 08:16:13 +0000 | [diff] [blame] | 32 | aaiEnrichmentPort: |
Alex Shatov | f90017b | 2018-04-13 09:19:56 -0400 | [diff] [blame] | 33 | type: string |
Lusheng Ji | 9bc6fd0 | 2018-04-29 19:45:23 -0400 | [diff] [blame] | 34 | default: "8443" |
vagrant | 58ea3d2 | 2018-04-03 18:01:23 +0000 | [diff] [blame] | 35 | enableAAIEnrichment: |
| 36 | type: string |
Vijay Venkatesh Kumar | b9d1f7a | 2020-03-02 23:36:13 +0000 | [diff] [blame] | 37 | default: "true" |
Jack Lucas | 98b9f73 | 2018-03-26 19:52:32 -0400 | [diff] [blame] | 38 | dmaap_host: |
| 39 | type: string |
Vijay Venkatesh Kumar | b9d1f7a | 2020-03-02 23:36:13 +0000 | [diff] [blame] | 40 | default: "message-router.onap.svc.cluster.local" |
vagrant | f6e28be | 2018-04-05 22:06:13 +0000 | [diff] [blame] | 41 | dmaap_port: |
| 42 | type: string |
Lusheng Ji | 9bc6fd0 | 2018-04-29 19:45:23 -0400 | [diff] [blame] | 43 | default: "3904" |
vagrant | 58ea3d2 | 2018-04-03 18:01:23 +0000 | [diff] [blame] | 44 | enableRedisCaching: |
| 45 | type: string |
Vijay Venkatesh Kumar | b9d1f7a | 2020-03-02 23:36:13 +0000 | [diff] [blame] | 46 | default: "false" |
vagrant | 58ea3d2 | 2018-04-03 18:01:23 +0000 | [diff] [blame] | 47 | redisHosts: |
Alex Shatov | f90017b | 2018-04-13 09:19:56 -0400 | [diff] [blame] | 48 | type: string |
Lusheng Ji | 9bc6fd0 | 2018-04-29 19:45:23 -0400 | [diff] [blame] | 49 | default: dcae-redis.onap.svc.cluster.local:6379 |
vagrant | 58ea3d2 | 2018-04-03 18:01:23 +0000 | [diff] [blame] | 50 | tag_version: |
| 51 | type: string |
Jack Lucas | bad7720 | 2020-02-03 18:21:29 -0500 | [diff] [blame] | 52 | default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tca-cdap-container:1.2.2" |
Jack Lucas | 98b9f73 | 2018-03-26 19:52:32 -0400 | [diff] [blame] | 53 | consul_host: |
| 54 | type: string |
Vijay Venkatesh Kumar | b9d1f7a | 2020-03-02 23:36:13 +0000 | [diff] [blame] | 55 | default: "consul-server.onap" |
Jack Lucas | 98b9f73 | 2018-03-26 19:52:32 -0400 | [diff] [blame] | 56 | consul_port: |
| 57 | type: string |
| 58 | default: "8500" |
| 59 | cbs_host: |
| 60 | type: string |
Vijay Venkatesh Kumar | b9d1f7a | 2020-03-02 23:36:13 +0000 | [diff] [blame] | 61 | default: "config-binding-service" |
Jack Lucas | 98b9f73 | 2018-03-26 19:52:32 -0400 | [diff] [blame] | 62 | cbs_port: |
| 63 | type: string |
| 64 | default: "10000" |
vagrant | 58ea3d2 | 2018-04-03 18:01:23 +0000 | [diff] [blame] | 65 | policy_id: |
| 66 | type: string |
| 67 | default: "none" |
vagrant | f6e28be | 2018-04-05 22:06:13 +0000 | [diff] [blame] | 68 | external_port: |
| 69 | type: string |
| 70 | description: Kubernetes node port on which CDAPgui is exposed |
| 71 | default: "32010" |
Grzegorz-Lis | 361de21 | 2020-08-31 14:56:18 +0200 | [diff] [blame] | 72 | service_component_type: |
| 73 | type: string |
| 74 | default: "dcae-tca-analytics" |
| 75 | service_id: |
| 76 | type: string |
| 77 | default: "dcae-tca-analytics" |
Alex Shatov | f90017b | 2018-04-13 09:19:56 -0400 | [diff] [blame] | 78 | |
Jack Lucas | 98b9f73 | 2018-03-26 19:52:32 -0400 | [diff] [blame] | 79 | node_templates: |
vagrant | 58ea3d2 | 2018-04-03 18:01:23 +0000 | [diff] [blame] | 80 | tca_k8s: |
Grzegorz-Lis | 361de21 | 2020-08-31 14:56:18 +0200 | [diff] [blame] | 81 | type: dcae.nodes.ContainerizedServiceComponent |
Jack Lucas | 98b9f73 | 2018-03-26 19:52:32 -0400 | [diff] [blame] | 82 | properties: |
Grzegorz-Lis | 361de21 | 2020-08-31 14:56:18 +0200 | [diff] [blame] | 83 | service_component_type: { get_input: service_component_type } |
| 84 | service_id: { get_input: service_id } |
Alex Shatov | f90017b | 2018-04-13 09:19:56 -0400 | [diff] [blame] | 85 | image: |
vagrant | 58ea3d2 | 2018-04-03 18:01:23 +0000 | [diff] [blame] | 86 | get_input: tag_version |
Jack Lucas | 98b9f73 | 2018-03-26 19:52:32 -0400 | [diff] [blame] | 87 | log_info: |
vagrant | f6e28be | 2018-04-05 22:06:13 +0000 | [diff] [blame] | 88 | log_directory: "/opt/app/TCAnalytics/logs" |
Vijay Venkatesh Kumar | 7fe8dbc | 2019-09-12 20:59:20 +0000 | [diff] [blame] | 89 | resource_config: |
| 90 | limits: |
| 91 | cpu: '1' |
| 92 | requests: |
| 93 | cpu: '0.5' |
vagrant | 58ea3d2 | 2018-04-03 18:01:23 +0000 | [diff] [blame] | 94 | 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 Shatov | f90017b | 2018-04-13 09:19:56 -0400 | [diff] [blame] | 107 | aaiEnrichmentHost: |
vagrant | 58ea3d2 | 2018-04-03 18:01:23 +0000 | [diff] [blame] | 108 | get_input: aaiEnrichmentHost |
| 109 | aaiEnrichmentIgnoreSSLCertificateErrors: 'true' |
| 110 | aaiEnrichmentPortNumber: '8443' |
| 111 | aaiEnrichmentProtocol: https |
vagrant | 5e393d3 | 2018-09-17 06:55:17 +0000 | [diff] [blame] | 112 | aaiEnrichmentUserName: dcae@dcae.onap.org |
| 113 | aaiEnrichmentUserPassword: demo123456! |
vagrant | 58ea3d2 | 2018-04-03 18:01:23 +0000 | [diff] [blame] | 114 | aaiVMEnrichmentAPIPath: /aai/v11/search/nodes-query |
| 115 | aaiVNFEnrichmentAPIPath: /aai/v11/network/generic-vnfs/generic-vnf |
Alex Shatov | f90017b | 2018-04-13 09:19:56 -0400 | [diff] [blame] | 116 | enableAAIEnrichment: |
vagrant | 58ea3d2 | 2018-04-03 18:01:23 +0000 | [diff] [blame] | 117 | get_input: enableAAIEnrichment |
Alex Shatov | f90017b | 2018-04-13 09:19:56 -0400 | [diff] [blame] | 118 | enableRedisCaching: |
vagrant | 58ea3d2 | 2018-04-03 18:01:23 +0000 | [diff] [blame] | 119 | get_input: enableRedisCaching |
Alex Shatov | f90017b | 2018-04-13 09:19:56 -0400 | [diff] [blame] | 120 | redisHosts: |
vagrant | 58ea3d2 | 2018-04-03 18:01:23 +0000 | [diff] [blame] | 121 | get_input: redisHosts |
| 122 | enableAlertCEFFormat: 'false' |
| 123 | publisherContentType: application/json |
Alex Shatov | f90017b | 2018-04-13 09:19:56 -0400 | [diff] [blame] | 124 | publisherHostName: |
vagrant | 58ea3d2 | 2018-04-03 18:01:23 +0000 | [diff] [blame] | 125 | get_input: dmaap_host |
Alex Shatov | f90017b | 2018-04-13 09:19:56 -0400 | [diff] [blame] | 126 | publisherHostPort: |
| 127 | get_input: dmaap_port |
vagrant | 58ea3d2 | 2018-04-03 18:01:23 +0000 | [diff] [blame] | 128 | 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 Shatov | f90017b | 2018-04-13 09:19:56 -0400 | [diff] [blame] | 136 | subscriberHostName: |
vagrant | 58ea3d2 | 2018-04-03 18:01:23 +0000 | [diff] [blame] | 137 | get_input: dmaap_host |
vagrant | f6e28be | 2018-04-05 22:06:13 +0000 | [diff] [blame] | 138 | subscriberHostPort: |
Alex Shatov | f90017b | 2018-04-13 09:19:56 -0400 | [diff] [blame] | 139 | get_input: dmaap_port |
vagrant | 58ea3d2 | 2018-04-03 18:01:23 +0000 | [diff] [blame] | 140 | subscriberMessageLimit: '-1' |
| 141 | subscriberPollingInterval: '30000' |
| 142 | subscriberProtocol: http |
| 143 | subscriberTimeoutMS: '-1' |
Lusheng Ji | 42f9508 | 2018-05-11 11:16:27 -0400 | [diff] [blame] | 144 | subscriberTopicName: unauthenticated.VES_MEASUREMENT_OUTPUT |
Vijay Venkatesh Kumar | d8e7721 | 2019-05-17 10:24:30 +0000 | [diff] [blame] | 145 | 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 Lucas | 98b9f73 | 2018-03-26 19:52:32 -0400 | [diff] [blame] | 146 | interfaces: |
| 147 | cloudify.interfaces.lifecycle: |
| 148 | start: |
| 149 | inputs: |
| 150 | envs: |
Alex Shatov | f90017b | 2018-04-13 09:19:56 -0400 | [diff] [blame] | 151 | DMAAPHOST: |
vagrant | 272bf6c | 2018-04-08 08:16:13 +0000 | [diff] [blame] | 152 | { get_input: dmaap_host } |
Vijay Venkatesh Kumar | b9d1f7a | 2020-03-02 23:36:13 +0000 | [diff] [blame] | 153 | DMAAPPORT: "3904" |
vagrant | 272bf6c | 2018-04-08 08:16:13 +0000 | [diff] [blame] | 154 | DMAAPPUBTOPIC: "unauthenticated.DCAE_CL_OUTPUT" |
Lusheng Ji | 42f9508 | 2018-05-11 11:16:27 -0400 | [diff] [blame] | 155 | DMAAPSUBTOPIC: "unauthenticated.VES_MEASUREMENT_OUTPUT" |
Alex Shatov | f90017b | 2018-04-13 09:19:56 -0400 | [diff] [blame] | 156 | AAIHOST: |
vagrant | 272bf6c | 2018-04-08 08:16:13 +0000 | [diff] [blame] | 157 | { get_input: aaiEnrichmentHost } |
Vijay Venkatesh Kumar | b9d1f7a | 2020-03-02 23:36:13 +0000 | [diff] [blame] | 158 | AAIPORT: "8443" |
Alex Shatov | f90017b | 2018-04-13 09:19:56 -0400 | [diff] [blame] | 159 | CONSUL_HOST: |
vagrant | 272bf6c | 2018-04-08 08:16:13 +0000 | [diff] [blame] | 160 | { get_input: consul_host } |
Vijay Venkatesh Kumar | b9d1f7a | 2020-03-02 23:36:13 +0000 | [diff] [blame] | 161 | CONSUL_PORT: "8500" |
Alex Shatov | f90017b | 2018-04-13 09:19:56 -0400 | [diff] [blame] | 162 | CBS_HOST: |
vagrant | 272bf6c | 2018-04-08 08:16:13 +0000 | [diff] [blame] | 163 | { get_input: cbs_host } |
Vijay Venkatesh Kumar | b9d1f7a | 2020-03-02 23:36:13 +0000 | [diff] [blame] | 164 | CBS_PORT: "10000" |
Alex Shatov | f90017b | 2018-04-13 09:19:56 -0400 | [diff] [blame] | 165 | CONFIG_BINDING_SERVICE: "config_binding_service" |
Jack Lucas | 98b9f73 | 2018-03-26 19:52:32 -0400 | [diff] [blame] | 166 | ports: |
Vijay Venkatesh Kumar | 2c662f2 | 2019-09-09 15:33:32 +0000 | [diff] [blame] | 167 | - concat: ["11011:", "0"] |
| 168 | |
Vijay Venkatesh Kumar | b9d1f7a | 2020-03-02 23:36:13 +0000 | [diff] [blame] | 169 | |