Update k8splugin type file version
[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.4.0/k8splugin_types.yaml
25
26 inputs:
27   ves_other_publish_url:
28     type: string
29     default: "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.SEC_OTHER_OUTPUT"
30     #default: "http://10.0.11.1:3904/events/unauthenticated.SEC_OTHER_OUTPUT"
31   ves_heartbeat_publish_url:
32     type: string
33     default: "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.SEC_HEARTBEAT_OUTPUT"
34     #default: "http://10.0.11.1:3904/events/unauthenticated.SEC_HEARTBEAT_OUTPUT"
35   ves_fault_publish_url:
36     type: string
37     default: "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.SEC_FAULT_OUTPUT"
38     #default: "http://10.0.11.1:3904/events/unauthenticated.SEC_FAULT_OUTPUT"
39   ves_measurement_publish_url:
40     type: string
41     default: "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT"
42     #default: "http://10.0.11.1:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT"
43   tag_version:
44     type: string
45     default: "{{ ONAPTEMPLATE_DOCKERREGURL_org_onap_dcaegen2_releases }}/onap/org.onap.dcaegen2.collectors.ves.vescollector:1.2.0"
46   external_port:
47     type: string
48     description: Kubernetes node port on which collector is exposed
49     default: "30235"
50   replicas:
51     type: integer
52     description: number of instances
53     default: 1   
54 node_templates:
55   ves:
56     interfaces:
57       cloudify.interfaces.lifecycle:
58         start:
59           inputs:
60            ports:
61              - concat: ["8080:", { get_input: external_port }]             
62     properties:
63       application_config:
64         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
65         collector.inputQueue.maxPending: "8096"
66         collector.keystore.alias: "dynamically generated"
67         collector.keystore.file.location: /opt/app/VESCollector/etc/keystore
68         collector.keystore.passwordfile: /opt/app/VESCollector/etc/passwordfile
69         collector.schema.checkflag: "1"
70         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.1.json\"}"
71         collector.service.port: "8080"
72         collector.service.secure.port: "8443"
73         event.transform.flag: "0"
74         header.authflag: "0"
75         header.authlist: "userid1,base64encodepwd1|userid2,base64encodepwd2"
76         services_calls: []
77         streams_publishes:
78             ves_fault:
79               dmaap_info:
80                 topic_url:
81                   get_input: ves_fault_publish_url
82               type: message_router
83             ves_measurement:
84               dmaap_info:
85                 topic_url:
86                   get_input: ves_measurement_publish_url
87               type: message_router
88             ves_heartbeat:
89               dmaap_info:
90                 topic_url:
91                   get_input: ves_heartbeat_publish_url
92               type: message_router
93             ves_other:
94               dmaap_info:
95                 topic_url:
96                   get_input: ves_other_publish_url
97               type: message_router              
98         tomcat.maxthreads: "200"
99       docker_config:
100         healthcheck:
101           endpoint: /healthcheck
102           interval: 15s
103           timeout: 1s
104           type: http
105       image:
106         get_input: tag_version
107       replicas: {get_input: replicas}
108       name: 'dcae-ves-collector'
109       dns_name: 'dcae-ves-collector'
110       log_info:
111         log_directory: "/opt/app/VESCollector/logs/ecomp"
112     type: dcae.nodes.ContainerizedPlatformComponent
113     
114