Update to k8s plugin 1.1.0
[dcaegen2/platform/blueprints.git] / blueprints / k8s-ves.yaml-template
1 # -*- indent-tabs-mode: nil -*- # vi: set expandtab:
2 #
3 # ============LICENSE_START====================================================
4 # =============================================================================
5 # Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
6 # =============================================================================
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 #
11 #      http://www.apache.org/licenses/LICENSE-2.0
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,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 # ============LICENSE_END======================================================
19
20 tosca_definitions_version: cloudify_dsl_1_3
21
22 imports:
23   - "http://www.getcloudify.org/spec/cloudify/3.4/types.yaml"
24   - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/k8splugin/1.1.0/k8splugin_types.yaml
25
26 inputs:
27   ves_other_publish_url:
28     type: string
29     default: "http://10.0.11.1:3904/events/unauthenticated.SEC_OTHER_OUTPUT"
30   ves_heartbeat_publish_url:
31     type: string
32     default: "http://10.0.11.1:3904/events/unauthenticated.SEC_HEARTBEAT_OUTPUT"
33   ves_fault_publish_url:
34     type: string
35     default: "http://10.0.11.1:3904/events/unauthenticated.SEC_FAULT_OUTPUT"
36   ves_measurement_publish_url:
37     type: string
38     default: "http://10.0.11.1:3904/events/unauthenticated.SEC_MEASUREMENT_OUTPUT"
39   tag_version:
40     type: string
41     default: "{{ ONAPTEMPLATE_DOCKERREGURL_org_onap_dcaegen2_releases }}/onap/org.onap.dcaegen2.collectors.ves.vescollector:1.2.0"
42   external_port:
43     type: string
44     description: Kubernetes node port on which collector is exposed
45     default: "30235"
46   replicas:
47     type: integer
48     description: number of instances
49     default: 1   
50 node_templates:
51   ves:
52     interfaces:
53       cloudify.interfaces.lifecycle:
54         start:
55           inputs:
56            ports:
57              - concat: ["8080:", { get_input: external_port }]             
58     properties:
59       application_config:
60         collector.dmaap.streamid: fault=ves_fault|syslog=ves_syslog|heartbeat=ves_heartbeat|measurementsForVfScaling=ves_measurement|mobileFlow=ves_mobileflow|other=ves_other|stateChange=ves_statechange|thresholdCrossingAlert=ves_thresholdCrossingAlert|voiceQuality=ves_voicequality|sipSignaling=ves_sipsignaling
61         collector.inputQueue.maxPending: "8096"
62         collector.keystore.alias: "dynamically generated"
63         collector.keystore.file.location: /opt/app/VESCollector/etc/keystore
64         collector.keystore.passwordfile: /opt/app/VESCollector/etc/passwordfile
65         collector.schema.checkflag: "1"
66         collector.schema.file: "{\"v1\":\"./etc/CommonEventFormat_27.2.json\",\"v2\":\"./etc/CommonEventFormat_27.2.json\",\"v3\":\"./etc/CommonEventFormat_27.2.json\",\"v4\":\"./etc/CommonEventFormat_27.2.json\",\"v5\":\"./etc/CommonEventFormat_28.4.json\"}"
67         collector.service.port: "8080"
68         collector.service.secure.port: "8443"
69         event.transform.flag: "0"
70         header.authflag: "0"
71         header.authlist: "userid1,base64encodepwd1|userid2,base64encodepwd2"
72         services_calls: []
73         streams_publishes:
74             ves_fault:
75               dmaap_info:
76                 topic_url:
77                   get_input: ves_fault_publish_url
78               type: message_router
79             ves_measurement:
80               dmaap_info:
81                 topic_url:
82                   get_input: ves_measurement_publish_url
83               type: message_router
84             ves_heartbeat:
85               dmaap_info:
86                 topic_url:
87                   get_input: ves_heartbeat_publish_url
88               type: message_router
89             ves_other:
90               dmaap_info:
91                 topic_url:
92                   get_input: ves_other_publish_url
93               type: message_router              
94         tomcat.maxthreads: "200"
95       docker_config:
96         healthcheck:
97           endpoint: /healthcheck
98           interval: 15s
99           timeout: 1s
100           type: http
101       image:
102         get_input: tag_version
103       replicas: {get_input: replicas}
104       name: 'dcae-ves-collector'
105       dns_name: 'dcae-ves-collector'
106       log_info:
107         log_directory: "/opt/app/VESCollector/logs/ecomp"
108     type: dcae.nodes.ContainerizedPlatformComponent
109     
110