Merge "PRH blueprint update for BBS"
[dcaegen2/platform/blueprints.git] / blueprints / k8s-deployment_handler.yaml-template
1 # -*- indent-tabs-mode: nil -*- # vi: set expandtab:
2 #
3 # ============LICENSE_START==========================================
4 # org.onap.dcae
5 # ===================================================================
6 # Copyright © 2017-2018 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 description: >
24   This blueprint deploys/manages the DCAE deployment handler as a Docker container
25
26 imports:
27   - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
28   - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/k8splugin/1.4.5/k8splugin_types.yaml
29
30 inputs:
31
32   deployment_handler_image:
33     description: Docker image for deployment handler
34     default: {{ ONAPTEMPLATE_DOCKERREGURL_org_onap_dcaegen2_releases }}/onap/org.onap.dcaegen2.platform.deployment-handler:3.2.0
35   application_config:
36     description: deployment handler application configuration (to override defaults)
37     default: {}
38   host_port:
39     description: port on Kubernetes host where DH API will be exposed
40     default: 0
41   host_log_root:
42     description: root directory for logs in the Docker host file system
43     default: '/opt/onap/log'
44
45 node_templates:
46
47   # Deployment Handler
48   deployment-handler:
49     type: dcae.nodes.ContainerizedPlatformComponent
50     properties:
51         name:
52             'deployment_handler'
53         dns_name:
54             'deployment-handler'
55         image:
56             { get_input: deployment_handler_image }
57         application_config:
58             { get_input: application_config }
59         host_port:
60             { get_input: host_port }
61         container_port:
62           8443
63         docker_config:
64           healthcheck:
65             type: 'https'
66             interval: '300s'
67             timeout: '5s'
68             endpoint: '/'
69         msb_registration:
70           port: '8443'
71           url_path: '/'
72           version: 'v4'
73         log_info:
74           log_directory: '/opt/app/dh/log'
75         tls_info:
76           cert_directory: '/opt/app/dh/etc/cert/'
77           use_tls: true
78     # Inject CM password through environment variable
79     # so that it does not appear in Consul
80     interfaces:
81       cloudify.interfaces.lifecycle:
82         start:
83           inputs:
84             envs:
85               CLOUDIFY_PASSWORD: { get_secret: cmpass }
86               CLOUDIFY_USER: admin
87