Disable VES/http from bootstrap
[dcaegen2/platform/blueprints.git] / blueprints / k8s-ves.yaml
1 # -*- indent-tabs-mode: nil -*- # vi: set expandtab:
2 #
3 # ============LICENSE_START====================================================
4 # =============================================================================
5 # Copyright (c) 2018-2020 AT&T Intellectual Property. All rights reserved.
6 # Copyright (c) 2020 Nokia. All rights reserved.
7 # =============================================================================
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 #
12 #      http://www.apache.org/licenses/LICENSE-2.0
13 #
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 # See the License for the specific language governing permissions and
18 # limitations under the License.
19 # ============LICENSE_END======================================================
20
21 tosca_definitions_version: cloudify_dsl_1_3
22
23 imports:
24   - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
25   - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/k8splugin/1.7.2/k8splugin_types.yaml
26
27 inputs:
28   ves_other_publish_url:
29     type: string
30     default: "http://message-router.onap.svc.cluster.local: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   ves_fault_publish_url:
35     type: string
36     default: "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.SEC_FAULT_OUTPUT"
37   ves_measurement_publish_url:
38     type: string
39     default: "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT"
40   ves_notification_publish_url:
41     type: string
42     default: "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_NOTIFICATION_OUTPUT"
43   ves_pnfRegistration_publish_url:
44     type: string
45     default: "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_PNFREG_OUTPUT"
46   tag_version:
47     type: string
48     default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:1.5.4"
49   internal_port:
50     type: string
51     description: Kubernetes node port on which collector is exposed
52     default: "8080"
53   external_port:
54     type: string
55     description: Kubernetes node port on which collector is exposed
56     default: "30235"
57   internal_port_tls:
58     type: string
59     description: Kubernetes node port on which collector is exposed
60     default: "8443"
61   external_port_tls:
62     type: string
63     description: Kubernetes node port on which collector is exposed
64     default: "30417"
65   auth_method:
66     type: string
67     default: "noAuth"
68   component_name:
69     type: string
70     default: "dcae-ves-collector"
71   dns_component_name:
72     type: string
73     default: "dcae-ves-collector"
74   enable_tls:
75     type: boolean
76     default: false
77   replicas:
78     type: integer
79     description: number of instances
80     default: 1
81   user_list:
82     type: string
83     description: List of user,password separated by pipe; pwd should be generated by using crypt-password tool (https://nexus.onap.org/#nexus-search;quick~crypt-password)
84     default: "sample1,$2a$10$0buh.2WeYwN868YMwnNNEuNEAMNYVU9.FSMJGyIKV3dGET/7oGOi6|demouser,$2a$10$1cc.COcqV/d3iT2N7BjPG.S6ZKv2jpb9a5MV.o7lMih/GpjJRX.Ce"
85  
86 node_templates:
87   ves:
88     interfaces:
89       cloudify.interfaces.lifecycle:
90         start:
91           inputs:
92             ports:
93               - concat: [{get_input: internal_port},":",{get_input: external_port}]
94               - concat: [{get_input: internal_port_tls},":",{get_input: external_port_tls}]
95     properties:
96       application_config:
97         collector.dmaap.streamid: fault=ves-fault|syslog=ves-syslog|heartbeat=ves-heartbeat|measurementsForVfScaling=ves-measurement|measurement=ves-measurement|mobileFlow=ves-mobileflow|other=ves-other|stateChange=ves-statechange|thresholdCrossingAlert=ves-thresholdCrossingAlert|voiceQuality=ves-voicequality|sipSignaling=ves-sipsignaling|notification=ves-notification|pnfRegistration=ves-pnfRegistration
98         collector.inputQueue.maxPending: "8096"
99         collector.keystore.file.location: /opt/app/dcae-certificate/cert.jks
100         collector.keystore.passwordfile: /opt/app/dcae-certificate/jks.pass
101         collector.truststore.file.location: /opt/app/dcae-certificate/trust.jks
102         collector.truststore.passwordfile: /opt/app/dcae-certificate/trust.pass
103         collector.schema.checkflag: "1"
104         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\",\"v7\":\"./etc/CommonEventFormat_30.1.1.json\"}"
105         collector.service.port: "8080"
106         collector.service.secure.port: "8443"
107         event.transform.flag: "0"
108         auth.method:
109           get_input: auth_method
110         header.authlist:
111           get_input: user_list 
112         services_calls: []
113         streams_publishes:
114           ves-fault:
115             dmaap_info:
116               topic_url:
117                 get_input: ves_fault_publish_url
118             type: message_router
119           ves-measurement:
120             dmaap_info:
121               topic_url:
122                 get_input: ves_measurement_publish_url
123             type: message_router
124           ves-notification:
125             dmaap_info:
126               topic_url:
127                 get_input: ves_notification_publish_url
128             type: message_router
129           ves-pnfRegistration:
130             dmaap_info:
131               topic_url:
132                 get_input: ves_pnfRegistration_publish_url
133             type: message_router
134           ves-heartbeat:
135             dmaap_info:
136               topic_url:
137                 get_input: ves_heartbeat_publish_url
138             type: message_router
139           ves-other:
140             dmaap_info:
141               topic_url:
142                 get_input: ves_other_publish_url
143             type: message_router
144         collector.dynamic.config.update.frequency: "5"
145       docker_config:
146         healthcheck:
147           endpoint: /healthcheck
148           interval: 15s
149           timeout: 1s
150           type: http
151       image:
152         get_input: tag_version
153       replicas: {get_input: replicas}
154       name:
155         get_input: component_name
156       dns_name:
157         get_input: dns_component_name
158       log_info:
159         log_directory: "/opt/app/VESCollector/logs"
160       tls_info:
161         cert_directory: '/opt/app/dcae-certificate/'
162         use_tls:
163           get_input: enable_tls
164     type: dcae.nodes.ContainerizedPlatformComponent