Remove plugin uploads from bootstrap container
[dcaegen2/platform/blueprints.git] / blueprints / k8s-hv-ves.yaml
1 # -*- indent-tabs-mode: nil -*- # vi: set expandtab:
2 #
3 # ============LICENSE_START========================================================
4 # =================================================================================
5 # Copyright (C) 2018-2019 NOKIA
6 # Modifications copyright (c) 2020 AT&T Intellectual Property.  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   - plugin:k8splugin?version=2.0.0
26
27 inputs:
28   tag_version:
29     type: string
30     default: 'nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-main:1.4.0'
31   hv_ves_name:
32     type: string
33     default: 'dcae-hv-ves-collector'
34   replicas:
35     type: integer
36     description: number of instances
37     default: 1
38   host_port:
39     type: integer
40     description: Network port that the platform service is expecting to expose on the host
41     default: 30222
42   container_port:
43     type: integer
44     description: Network port that the platform service exposes in the container
45     default: 6061
46   kafka_bootstrap_servers:
47     type: string
48     default: 'message-router-kafka:9092'
49   kafka_username:
50     type: string
51     default: 'admin'
52   kafka_password:
53     type: string
54     default: 'admin_secret'
55   perf3gpp_kafka_topic:
56     type: string
57     default: 'HV_VES_PERF3GPP'
58   log_level:
59     type: string
60     default: 'INFO'
61   server_idle_timeout_sec:
62     type: integer
63     default: 300
64   cbs_request_interval_sec:
65     type: integer
66     default: 5
67   security_ssl_disable:
68     type: boolean
69     default: false
70   security_keys_key_store_file:
71     type: string
72     default: '/etc/ves-hv/ssl/cert.jks'
73   security_keys_key_store_password_file:
74     type: string
75     default: '/etc/ves-hv/ssl/jks.pass'
76   security_keys_trust_store_file:
77     type: string
78     default: '/etc/ves-hv/ssl/trust.jks'
79   security_keys_trust_store_password_file:
80     type: string
81     default: '/etc/ves-hv/ssl/trust.pass'
82   use_tls:
83     type: boolean
84     default: true
85 node_templates:
86   hv-ves:
87     interfaces:
88       cloudify.interfaces.lifecycle:
89         start:
90           inputs:
91             envs:
92               JAVA_OPTS: { concat: [ '-Dlogback.configurationFile=/etc/ONAP/', { get_input: hv_ves_name }, '/logback.xml' ] }
93     properties:
94       application_config:
95         logLevel: { get_input: log_level }
96         server.idleTimeoutSec: { get_input: server_idle_timeout_sec }
97         server.listenPort: { get_input: container_port }
98         cbs.requestIntervalSec: { get_input: cbs_request_interval_sec}
99         security.sslDisable: { get_input: security_ssl_disable }
100         security.keys.keyStoreFile: { get_input: security_keys_key_store_file }
101         security.keys.keyStorePasswordFile: { get_input: security_keys_key_store_password_file }
102         security.keys.trustStoreFile: { get_input: security_keys_trust_store_file }
103         security.keys.trustStorePasswordFile: { get_input: security_keys_trust_store_password_file }
104         streams_publishes:
105           perf3gpp:
106             type: kafka
107             aaf_credentials:
108               username: { get_input: kafka_username }
109               password: { get_input: kafka_password }
110             kafka_info:
111               bootstrap_servers: { get_input: kafka_bootstrap_servers }
112               topic_name: { get_input: perf3gpp_kafka_topic }
113       docker_config:
114         healthcheck:
115           type: script
116           script: "/opt/ves-hv-collector/healthcheck.sh"
117           interval: 15s
118           timeout: 2s
119       image: { get_input: tag_version }
120       replicas: { get_input: replicas }
121       name: { get_input: hv_ves_name }
122       dns_name: { get_input: hv_ves_name }
123       container_port: { get_input: container_port }
124       host_port: { get_input: host_port }
125       log_info:
126         log_directory: { concat: [ '/var/log/ONAP/', { get_input: hv_ves_name } ] }
127       tls_info:
128         cert_directory: '/etc/ves-hv/ssl'
129         use_tls: { get_input: use_tls }
130     type: dcae.nodes.ContainerizedPlatformComponent