Create HV-VES cloudify blueprint
[dcaegen2/platform/blueprints.git] / blueprints / k8s-hv-ves.yaml-template
1 # -*- indent-tabs-mode: nil -*- # vi: set expandtab:
2 #
3 # ============LICENSE_START====================================================
4 # =============================================================================
5 # Copyright (C) 2018 NOKIA
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.2/k8splugin_types.yaml
25
26 inputs:
27   tag_version:
28     type: string
29     default: "{{ ONAPTEMPLATE_DOCKERREGURL_org_onap_dcaegen2_releases }}/onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-main:latest"
30   replicas:
31     type: integer
32     description: number of instances
33     default: 1 
34 node_templates:
35   hv-ves:
36     properties:
37       docker_config:
38         healthcheck:
39           endpoint: /health/ready
40           interval: 15s
41           timeout: 1s
42           type: http
43       image:
44         get_input: tag_version
45       replicas: {get_input: replicas}
46       name: 'dcae-hv-ves-collector'
47       dns_name: 'dcae-hv-ves-collector'
48       log_info:
49         log_directory: "/opt/app/HvVesCollector/logs"
50     type: dcae.nodes.ContainerizedPlatformComponent